Questions tagged as 'c#'

2
answers

How can I do a C # query in a SQL Server database [closed]

I have a project under development on this internship and so I am working on new things. I would like to know how I can do in C # a data query present in SQL Server tables. Sorry if you're being too lazy.     
asked by 23.01.2017 / 15:34
1
answer

what is the intention of the foreach? [closed]

private List<Evento> ListaDeEventos = new List<Evento>();//cria a lista public void AddEvento(Evento e)//adiciona na lista { this.ListaDeEventos.Add(e); } public void CadastrarEvento()//adiciona valor nas...
asked by 02.12.2016 / 03:29
2
answers

Publication of a site [closed]

I'd like to know, what is the average amount spent to publish an e-commerce site on the internet, with database, domain purchase and etc ... and what exactly would have to do to stay completely in the Air. I'm an IT student and I'm starting in t...
asked by 11.11.2016 / 13:58
1
answer

How to cancel action with key [closed]

How to cancel an action, the code below is just an example : Console.WriteLine("Digite algo"); string text = Console.ReadLine(); switch (){ case "comando": // > Aqui seria para cancelar com a...
asked by 30.08.2017 / 14:57
3
answers

Validating and counting days of a date [closed]

Consider an informed date on a form. Build a function that checks whether the date is correct (considering leap year, April 31, etc). You need to pass the date entered on the form as a parameter. If the date is correct, build another function...
asked by 06.09.2017 / 04:54
1
answer

Builder without parameters is not working, is leaving the object as null [closed]

I have a class with two constructors. The empty constructor (no arguments) is not working. The program does not display an error. One of the constructors receives the parameters nome and limitedecredito ; and another, empty, initial...
asked by 07.05.2018 / 00:00
2
answers

Working with images in C #; [closed]

So, working on a hangman's game, it's almost done. The images need to be displayed via code. And that's my problem. For example: I want the error to be equal to 1, the head appears, and so on. Can you help me?     
asked by 14.06.2017 / 20:28
1
answer

Solution for GetRange error accessing elements off the list

When calling the GetRange of a list, where it calls 10 in 10 list values at a time, however, it gives the following error:    Offset and length were out of bounds for the array or count greater   than the number of elements from index...
asked by 04.10.2016 / 13:38
1
answer

MessageBox appears twice [closed]

I have the following code which is fired by Handles Button1.Click . Dim X, Cf As Double Dim A, B, C, D, J As String A = TextBox2.Text B = TextBox3.Text C = TextBox4.Text D = TextBox9.Text J = ComboBox2.Text If...
asked by 15.12.2015 / 15:59
1
answer

Catch the return of a WebAPI method? [closed]

I have the following code and I want to get a return on the result variable if it is true or false, how could I do this? //http://localhost:1608/api/ApiCidade/deletar/cliente/10 [HttpDelete] [Route("deletar/cliente/{id:int}")] public HttpRespo...
asked by 06.11.2015 / 02:50