Questions tagged as 'c#'

1
answer

Object reference not defined, what could it be?

"" " Button[,] botoes = new Button[(int)numericUpDownLinhas.Value, (int)numericUpDownColunas.Value]; for(int i = 0; i < (int)numericUpDownLinhas.Value; i++) { for(int j = 0; j < (int)numericUpDownColunas.Value; j++)...
asked by 06.08.2016 / 16:34
2
answers

Find file in multiple folders from a home folder, except the folder

string[] arquivos = Directory.GetFiles(@"C:\Teste_Zip\web", "*", SearchOption.AllDirectories); The question is: I need to get the files, except in a folder. I could not get past the folder. The folder is Fixed, does not vary. I did this and...
asked by 29.02.2016 / 20:00
1
answer

Error compiling: Error 4 The assembly [...] must contain a strong signature to be marked as a prerequisite

Error 4 The assembly '......' must contain a strong signature to be marked as a prerequisite.     
asked by 20.07.2015 / 14:27
1
answer

Date Formats API + C #

I developed the system in layers, and I have 2 layers, where layer number 1 is my API and number 2 is where I store my classes. In one of the classes I have a field of type DateTime . I created a method in my API that receives an o...
asked by 25.10.2018 / 17:10
1
answer

Parameter error when saving data

I can not save some data, probably the error is in the parameters. My Controller: public ActionResult SalvarMilestone(Milestone milestone, int CodigoProjeto) { //if (ModelState.IsValid) //{ try {...
asked by 20.10.2015 / 02:04
1
answer

Add in BD in C # [closed]

I'm doing a little project in my college and started messing with C # classes, but I'm having problems inserting (my amount of values in insert does not match values) in my DB and I'm not understanding. my User class: private int _codigo;...
asked by 14.11.2016 / 18:08
1
answer

Send email to different servers [duplicate]

I want my program, done in C # using a web service, send an email every day with an attachment to some email addresses from different servers. I was watching a tutorial and I had a question. The guy set up the hotmail server (smtp.live.com:587...
asked by 13.11.2015 / 12:04
2
answers

Installing a WinForms C # application on the client

Developed an application in WinForms C # in 03 layers with Access.MDB Database: Now the questions so that the Application can be installed on the client and work correctly. The files I send to the client are as follows: 1.1 - Executáve...
asked by 25.11.2014 / 18:17
1
answer

Connect with Mysql universal win 10 [closed]

I would like a help, as I would like to know how do I get information from a Mysql database and which will be assumed by a textblock. would they be able to help me with the code that does this? EX: In the database name = John the textblock wi...
asked by 09.03.2017 / 00:44
1
answer

Loading data in listview C # [closed]

I'm developing a solution in C # windows forms and would like an idea to be able to fetch the data from the database and load it into a listview. This loading would come from a combobox, in which I select an item and it brings related data from...
asked by 05.10.2017 / 15:23