Questions tagged as 'c#'

1
answer

Launch a Custom Exception

I have a method in my Webservice that throws an exception if the code of the card is already in use, ie when trying to release the access the system checks if it is already in use and returns the Exception . > Code in Webservice ... t...
asked by 12.11.2015 / 14:00
1
answer

Run something after an animation - WPF

I have the following animation when I initialize my project: public ConfigInicial_Empresa() { InitializeComponent(); brush = (Brush)bc.ConvertFrom("#444"); window.Background = brush; DoubleAnimation fa...
asked by 07.01.2016 / 16:29
1
answer

Problem in View (details)

I'm repeating the Letragroup in the View, how can I use the .first in the query in the controller? View Error: link View (details): @model IEnumerable<WebAppCatechesis2.ViewModels.GrupoViewModel> <dl class="dl-horizontal"&...
asked by 07.01.2016 / 18:11
1
answer

Synchronize ProgressBar with Execution of methods of a class

In my project I have a class that has three methods: static List<string> ListaArquivos(string path){...} static void CriaArquivoUnico(List<string> listaArquivos){...} static void AbreArquivoUnico(string pathArquivoUnico){...} Wh...
asked by 15.09.2015 / 19:42
1
answer

Change the .NET Frameworks application

I developed an app in C # using sqlite. But when compiling and installing on another computer running OS XP, I came across the following error:    CreateProcess failed cod. 193% 1 is not a valid win32 application When searching google, I...
asked by 20.08.2015 / 16:17
1
answer

Doubt to Load ComboBox from an account with the subaccount

I made a select to fetch an account and load the sub account and would like your opinion to see if this is how it does if it is correct code private void cbbConta_SelectedIndexChanged(object sender, EventArgs e) { PlanoCont...
asked by 20.08.2015 / 15:32
1
answer

Validating CheckBox in another form

Hello, everyone. Probably my doubt is a little silly, but I did not find much of it on the internet ... Could you please explain to me how I can call the value of CheckBox to another form? My idea is to get pre-determined informa...
asked by 18.10.2015 / 16:18
1
answer

How to generate PDF with Crystal Reports and send it by email?

I am making an application where I have to generate a report with Crystal Reports and send it by email. Would anyone have some way to do this? Sending and generating reports are already working, but I'm not able to convert and send them to email...
asked by 10.08.2015 / 22:46
1
answer

How to generate the EAD code for PAF-ECF in C #, according to ATO COTEPE 23/15?

I would like to know if anyone could assist in generating the EAD code in C # for registration type Rxx according to the documentation of Act Cotepe 23/15. See the link link , subject discussed in requirement XXXI of Annex I. The documentation...
asked by 14.07.2015 / 19:11
1
answer

How to limit the number of rows after sorting the datatable vb.net/C#

How do I limit the amount of rows in a datagrid after DefaultView.Sort Follow the code: da = New OleDbDataAdapter(MySQL, Conexao) dt = New DataTable("Pedidos") da.Fill(dt) dt.DefaultView.Sort = "Data Desc"...
asked by 15.07.2015 / 18:07