Questions tagged as 'windows-forms'

2
answers

Read HTML from a WebBrowser

I have a Form with a WebBrowser, two text boxes (1 and 2) and a button. In the text box 1 I enter a URL, press the button and execute: private void button1_Click(object sender, EventArgs e) { Uri myUri = new Uri(textBox1.Text); webBrow...
asked by 04.02.2017 / 13:48
3
answers

How to convert a ComboBox from String to Int?

I need to converge a ComboBox to which I call cmbmes . The reality is that it does not work with Convert.ToInt32() or with Int.Parse() . The error that gives me in specific is System.FormatException . What I want to a...
asked by 30.05.2018 / 17:13
3
answers

C #, 3 Layers, Windows Forms - Improve Performance

I need to fill out a datagridview with more than 7,000 records that I get through a method that returns a generic list of objects. My problem is that when I assign it to datagriview.DataSource = LN.ObtainAll () positions; through the load method...
asked by 16.07.2017 / 20:08
2
answers

C # convert Control to UIElement

How can I convert a Control to UIElement in Windows forms with c # ? I'm extracting Controls from FlowLayoutPanel with Controls but I want to convert them to UIElement     
asked by 24.12.2015 / 01:24
2
answers

How to know if a textbox.text is number or character in c #?

I want to know if it is a number or letter the textbox that you enter by keyboard if (txtCodigo.Text) { MessageBox.Show("son numeros"); } else {...
asked by 10.10.2017 / 18:12
3
answers

Load two or more rows to a DataTable by means of a Button

Good morning everyone, I'm using the following method to load a DataTable that in turn will show this information within a DataGridView , the problem I have is that by pressing the button I should add each new record to the Data...
asked by 28.11.2017 / 19:37
2
answers

Format 001-000001 in a textbox (editbox)

I want to enter data into a text box the app is windows forms, what I want to enter is in this format 001-000001 the first two digits are zero the third digit of 1 to 9 the fourth digit a - of the fifth digit to the t...
asked by 27.07.2016 / 03:13
2
answers

Pass boolean value between custom forms - Windows Form

I am developing a Windows Form type solution that contains two forms: Form frm_open_window : Fields: (1) Button "Open": Open the form called frm_nueva_ventana . When this button is pressed, it must be locked. Example: Abrir.E...
asked by 19.08.2016 / 01:03
2
answers

Hide or close an MDI Children form

Hi, I have an MDI form (frmPrincipal) where I open an MDI Children form (frmListerateClients). Within this mdi children when closing the form I launch a form (frmOpciones) that allows you to make a couple of quick procedures that you can eith...
asked by 04.07.2017 / 09:58
1
answer

File txt does not store the path of another txt

What I try to do is create 2 files in the system, one where the user can choose where he wants to save his database file where all the records of his products will be stored. The other file txt would be created without the user's permissi...
asked by 27.11.2018 / 18:39