Questions tagged as 'winforms'

0
answers

Error: Configuration system failed to initialize

I'm developing an application in C# and during development I came across the following error: Inthefile:Settings.settingsthereisastringthatstorestheusername.Apparentlythismaybetheproblem,butIneedthisstring.Whatisthesolution?Code:names...
asked by 04.01.2019 / 12:05
3
answers

Form opening another form inside a splitcontainer

I have a main form divided by a splitcontaniner . When I click on a panel1 button, a form is loaded into panel2 . private void btnCadastrarConta_Click(object sender, EventArgs e) { stcMenuPrincipal.Panel2.Con...
asked by 04.02.2014 / 16:55
0
answers

dataGridView with line break, however when exporting to excel it does not break

Galera, I have a dataGridView that I used the following code snippet to break the text: dataGridView1.Columns[0].DefaultCellStyle.WrapMode = DataGridViewTriState.True; dataGridView1.Columns[1].DefaultCellStyle.WrapMode = DataGridV...
asked by 23.10.2018 / 17:52
1
answer

Error saving monetary values in MySQL database

I have a table column of my bank called salario_base where it is of type Decimal(7,2) . I insert the value into a textbox , convert it and pass this and other variables to an insert class to complete this operation. The other...
asked by 23.11.2018 / 17:32
0
answers

Form child gets in front of everything including other windows Windows Forms C #

I need my child forms to be in front of the parent form, up to there blz. Only they stay on top of any other window or program. I would like to know if the child forms are just in front of the parent form and when other windows or programs are o...
asked by 30.06.2018 / 03:32
1
answer

Progress bar for stored procedure in C # windows form

I have a project that updates data through a stored procedure (delete, insert, update) with undefined long duration. I would like to display a progress bar with undetermined time during the procedure execution period. I have no experience in pro...
asked by 07.06.2018 / 20:41
1
answer

VB.NET - Automatic TextChanged

Talk, guys! I am trying to perform automatic date. For example, if I choose the field year "Up" in case 2018. The "From" field automatically calculates for year 2013. As print below: Ihavemanagedtoautomatejustthisone.ButwhenIwanttochanget...
asked by 18.04.2018 / 21:06
0
answers

Identify child control resize

Hello. I'm going through the following scenario. I have a UserControl that has dynamic width based on the text typed in a TextBox inside it. For this in the TextChanged event of this TextBox, the following algorithm is done: private void Mensu...
asked by 28.12.2017 / 20:50
1
answer

anyone can help with this message here Failed to locate or load the registered .Net Framework Data Provider?

I created an application with Windows forms connecting to firebird, where on my development machine everything works perfectly, but when I put it on the client machine, the following error occurs: System.ArgumentException: Unable to find the...
asked by 07.02.2018 / 18:38
2
answers

Search for C # file path?

I need to find the path of a .wav file in C# . I can find and run .wav with the full path "c: \\ pathx ...", however, I need the application to find the file in any directory it is strong>. I tried to do this: var file = ne...
asked by 09.12.2017 / 14:32