Click here to Skip to main content
15,921,606 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Using a custom string to cacls Pin
Johan1312-May-08 0:05
Johan1312-May-08 0:05 
GeneralRe: Using a custom string to cacls Pin
Johan1312-May-08 0:10
Johan1312-May-08 0:10 
QuestionRe: Using a custom string to cacls Pin
Johan137-May-08 21:10
Johan137-May-08 21:10 
QuestionDrawing Sunpath in my WinForms Pin
Member 38458153-May-08 0:05
Member 38458153-May-08 0:05 
AnswerRe: Drawing Sunpath in my WinForms Pin
Christian Graus3-May-08 1:39
protectorChristian Graus3-May-08 1:39 
QuestionDrawing Sunpath in my WinForms Pin
Member 38458153-May-08 19:30
Member 38458153-May-08 19:30 
AnswerRe: Drawing Sunpath in my WinForms Pin
Christian Graus4-May-08 11:34
protectorChristian Graus4-May-08 11:34 
QuestionTwo TextBoxs and only one can contain any text at a given time [modified] Pin
Steve Messer1-May-08 9:11
Steve Messer1-May-08 9:11 
I have a Winforms application where I have to Textboxes.

I only want one of them to have text at any given time. So, I added
a TextedChange event to each of these TextBoxes that empties the text
of TextBox that is not receiving text.

The problem is this. If TextBox1 has the text "UT" and I then enter text
into TextBox2. The text is correctly removed but the first press in TextBox2
is ignored so the user has to enter it in twice. Once to empty the text of the
other TextBox and then again to actually have it show up in the TextBox being
typed to.

private void VIN_CHANGED(object sender, EventArgs e)
{
    tbPlate.Text = string.Empty;
}

private void PLATE_CHANGED(object sender, EventArgs e)
{
    tbVin.Text = string.Empty;
}


Anyone know how to get around the first stroke getting ignored?

modified on Thursday, May 1, 2008 3:41 PM

AnswerRe: Two TextBoxs and only one can contain any text at a given time Pin
SomeGuyThatIsMe2-May-08 8:46
SomeGuyThatIsMe2-May-08 8:46 
GeneralRe: Two TextBoxs and only one can contain any text at a given time Pin
Steve Messer2-May-08 11:57
Steve Messer2-May-08 11:57 
Questioncalling event from inside another event Pin
raydona1-May-08 7:34
raydona1-May-08 7:34 
AnswerRe: calling event from inside another event Pin
Luc Pattyn1-May-08 9:45
sitebuilderLuc Pattyn1-May-08 9:45 
QuestionConvert txt to sysmbols!! Pin
s3rk430-Apr-08 23:46
s3rk430-Apr-08 23:46 
AnswerRe: Convert txt to sysmbols!! Pin
Kschuler1-May-08 3:43
Kschuler1-May-08 3:43 
GeneralRe: Convert txt to sysmbols!! [modified] Pin
s3rk41-May-08 6:52
s3rk41-May-08 6:52 
GeneralRe: Convert txt to sysmbols!! Pin
Kschuler1-May-08 7:27
Kschuler1-May-08 7:27 
GeneralRe: Convert txt to sysmbols!! Pin
s3rk41-May-08 9:56
s3rk41-May-08 9:56 
QuestionEnumChildWindows Pin
mehmetned30-Apr-08 20:59
mehmetned30-Apr-08 20:59 
AnswerRe: EnumChildWindows Pin
Christian Graus30-Apr-08 23:20
protectorChristian Graus30-Apr-08 23:20 
QuestionHow to display a Winform as rounded rectangle Pin
Member 391904930-Apr-08 9:08
Member 391904930-Apr-08 9:08 
AnswerRe: How to display a Winform as rounded rectangle Pin
Giorgi Dalakishvili30-Apr-08 9:17
mentorGiorgi Dalakishvili30-Apr-08 9:17 
GeneralRe: How to display a Winform as rounded rectangle Pin
Member 391904930-Apr-08 10:55
Member 391904930-Apr-08 10:55 
QuestionDATABOUND DATAGRIDVIEW Pin
Linn7230-Apr-08 2:46
Linn7230-Apr-08 2:46 
AnswerRe: DATABOUND DATAGRIDVIEW Pin
SomeGuyThatIsMe2-May-08 8:54
SomeGuyThatIsMe2-May-08 8:54 
QuestionRegarding Message Box size Pin
mrcsn30-Apr-08 0:29
mrcsn30-Apr-08 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.