blah blah blah is here! blah blah » Close

0
votes
4 answers

How to clear TextBoxes

sanjib
226

This is my code: [code]protected void Button1_Click(object sender, EventArgs e) { string s1 = TextBox1.Text; string s2 = TextBox2.Text; string s3 = TextBox3.Text; blog b = new blog(); if ...

0
votes
1 answers

textbox made public?

ivan
-3

ok... say I have Form1 and Form2. Form1 has a button that opens Form2. Within Form2, the user types in their info. When the user is finished, he/she clicks on a Save button on Form2. That save button collects the data entered in the tex ...

1
votes
1 answers

Clearing a Masked Textbox in C#

Hi, Can someone help me figuring out how to clear a Masked Textbox when I click a clear button? The mask is set to zip code. "_____-____" Thank you.

0
votes
1 answers

How can I handle an empty textbox for the following code?

private void setSingleDACVoltage(TextBox tb_OutputNumber_DAC, TextBox tb_Voltage_DAC) { double Volt_Value_DAC = Convert.ToDouble(tb_Voltage_DAC.Text); String hexNumber = tb_OutputN ...

0
votes
1 answers

Testing for textbox Focus

I am trying to test if my textbox has focus in visual C#. Does anybody know how I could do this? it would really help, I'm trying to make it so that when you press enter while the textbox has focus, It will preform the same command as press ...

1
votes
1 answers

C# question - textBox1.text needs to have dots inserted every 3 char for IP Address

Hello, I have a textBox1.text that I would like to have it insert a . every three characters. For an IP Address, like 192.168.001.016 [code]private void tbIPVM_TextChanged(object sender, EventArgs e) { if (tbI ...

Feedback