Questions tagged as 'c#'

2
answers

How to close all forms I want in C #

Suppose I have 4 forms: form1 , form2 , form3 and form4 . Knowing that the form1 window will always open first and when I give .close() to form2 it, along with the others, should close. How do I achi...
asked by 04.06.2018 / 05:31
1
answer

Leave selected specific item ComboBox C # WinForms Visual Studio 2017

I'm developing an application that contains a customer registry. In this register there is a ComboBox that lists the cities of the database. My question is: How do I leave ' setado ' the name of a specific city? For example, the fir...
asked by 04.06.2018 / 02:11
2
answers

How to read only one line of a file in C #

I know how to read the whole file but how can I read only one line EX: read line 3 only     
asked by 02.04.2018 / 03:32
1
answer

Message Warning CS0108!

Because when I inherit an interface and implement the same methods I get Warning CS0108.    Active A variable was declared with the same name as a variable in a   base class. However, the new keyword was not used. This warning   informs you t...
asked by 29.03.2018 / 17:12
1
answer

How to print a double with 4 houses after the point in C #

static void Main(string[] args) { double area, raio , pi; pi = 3.14159; raio = Convert.ToDouble(Console.ReadLine()); area = pi * Math.Pow(raio,2); Console.WriteLine("A={0}\n",area.ToString("N0")); } The input value i...
asked by 24.03.2018 / 18:18
2
answers

My software in C # with SQLEXPRESS database LocalDB does not open on another PC, even installing all dependencies

1 - My software in C # with SQLEXPRESS database LocalDB does not open on another PC, even installing all dependencies. NOTE: In my PC Development works perfectly. 2 - Programs that I have already installed on the Client: Microsoft SQL Server...
asked by 23.03.2018 / 21:40
1
answer

Ajax in MVC - Select

I have a problem loading the select fields in my project. My forms are all done with Razor and only the select's (combobox) I load by ajax. Problem: When I start the form the ajax event to load the combos is triggered before I get the d...
asked by 21.03.2018 / 15:09
1
answer

DateTime object only with DAY, MONTH, TIME

I need to create an object of type DateTime that contains only Day , Month and Time . It may even take minutes and seconds but can not have Year. How do I do this?     
asked by 24.03.2018 / 21:04
1
answer

Instantiate method on instantiated Form

Hello, I have the following question, I instantiated a new form with the following code: Form frmDialog = new Form(); Well, I want to do the following, in the form where I instantiated this new Form, I can use the following code: protecte...
asked by 16.03.2018 / 16:18
1
answer

.Wav audio file conversion to .Mp3

I would like help, I have the following situation. I have a web application in which to return an audio file according to the requests. However (I believe) because these audios are of .wav format I could not listen to them, however when retur...
asked by 08.06.2018 / 21:46