Questions tagged as 'winforms'

1
answer

ConnectionStrings: Write in app.config or windows registry?

My question is the best way to keep ConnectionString of my system on disk to be read as needed, ie what is the best way to do this by writing it to the file app.config , or writing to record of Windows ? What are the a...
asked by 24.01.2017 / 23:32
1
answer

Load C # combobox from another in Load ()

It's been so long since I was working with WinForms that I'm letting something go. In Load from my Form I call this method below: private void CarregarEstados() { cboEstado.DataSource = Listas.ListaEstados(); cboEstado.DisplayMember =...
asked by 19.10.2018 / 15:38
2
answers

Error Backing Up Windows Forms Database

I have problems with this problem! My application is in Windows Forms. I need to back up the data through the application itself, but when I run to perform it it informs me of this error. https://i.stack.imgur.com/e5cq8.jpg "> Note: My backu...
asked by 21.06.2018 / 18:04
2
answers

Error inserting a "SELECT" item in the Combobox

How do I add an item in the Combobox? The item has to be first in the list with the text "SELECT": I'm doing this: private void PreencherCmbIndicacao() { try { this.cmbIndicacao.Items.Cl...
asked by 04.03.2018 / 23:36
4
answers

Validate TextBox content

I have the TextBox fields, for example: txtValorCompra would have to be typed by user 98,90 and can not be letters txtNumero entry with integers % with only letters. Would you like to do this on the form?...
asked by 03.11.2014 / 22:44
1
answer

Missing Assembly Reference C #

I have a non-usage error of Directive or a Assembly Reference pointed to KeyCod and Modifiers Does anyone know what it would be and how can I upload it? private void lblAutoCod_MouseClick(object sender, Mouse...
asked by 22.09.2016 / 17:38
2
answers

Webservice consumption only runs on debugging under the Visual Studio IDE

My WinForms VB.NET application consumes a webservice to perform some queries. When running in debug or release mode under the Visual Studio IDE, it works perfectly, but once distributed on client computers (or even on my own, running straight fr...
asked by 22.02.2017 / 14:51
3
answers

C # Make Enter key jump to either textBox or comboBox field

How can I do in a function, that when the person gives enter, it jumps to the field below, which can be both a combobox and a textbox? I currently have this function, but it jumps to the last textbox, thus logging in, without going through th...
asked by 23.02.2017 / 14:06
1
answer

How to display an image hosted in my App?

I would like to display a promotional image within a PicutreBox in my app, but this image will vary depending on the promotion the Company is making. Is there any code that PictureBox shows a certain image that is hosted somewhe...
asked by 18.01.2017 / 20:09
2
answers

How to reference an html button in C #

I have the following HTML code snippet: ThiscodebelongstoapageofanAirOS(internetradio)radio.IneedtoreferencethisbuttoninsideaprogrammadeinWindowsFormsandmakeafunctionforittobeexecutedandtheradioreboot.Iwasonlyabletogetelementswithanidattribu...
asked by 11.01.2017 / 19:47