Click here to Skip to main content
15,922,574 members
Home / Discussions / C#
   

C#

 
QuestionOnSystemColorsChanged never fired? Pin
mike montagne19-Feb-07 13:51
mike montagne19-Feb-07 13:51 
AnswerIDE Dysfunctionality Discovered Pin
mike montagne20-Feb-07 9:16
mike montagne20-Feb-07 9:16 
QuestionServer Error : same “type” in two different DLLs Pin
tedhill1319-Feb-07 12:41
tedhill1319-Feb-07 12:41 
AnswerRe: Server Error : same “type” in two different DLLs Pin
mike montagne19-Feb-07 14:02
mike montagne19-Feb-07 14:02 
QuestionAdding to multi dimension array Pin
digsy_19-Feb-07 9:46
digsy_19-Feb-07 9:46 
AnswerRe: Adding to multi dimension array Pin
Leslie Sanford19-Feb-07 10:11
Leslie Sanford19-Feb-07 10:11 
AnswerRe: Adding to multi dimension array Pin
Christian Graus19-Feb-07 10:16
protectorChristian Graus19-Feb-07 10:16 
GeneralRe: Adding to multi dimension array Pin
Leslie Sanford19-Feb-07 10:24
Leslie Sanford19-Feb-07 10:24 
GeneralRe: Adding to multi dimension array Pin
Christian Graus19-Feb-07 10:43
protectorChristian Graus19-Feb-07 10:43 
AnswerRe: Adding to multi dimension array Pin
Aaron VanWieren19-Feb-07 17:32
Aaron VanWieren19-Feb-07 17:32 
QuestionTeam Foundation Server Pin
mihksoft19-Feb-07 6:19
mihksoft19-Feb-07 6:19 
AnswerRe: Team Foundation Server Pin
Christian Graus19-Feb-07 8:55
protectorChristian Graus19-Feb-07 8:55 
QuestionInterface Properties Pin
santhony719-Feb-07 6:08
santhony719-Feb-07 6:08 
AnswerRe: Interface Properties Pin
Leslie Sanford19-Feb-07 6:27
Leslie Sanford19-Feb-07 6:27 
GeneralRe: Interface Properties Pin
santhony719-Feb-07 8:58
santhony719-Feb-07 8:58 
GeneralRe: Interface Properties Pin
mike montagne19-Feb-07 14:09
mike montagne19-Feb-07 14:09 
QuestionBusiness Object Properties in Random Order Pin
Thomas Wells19-Feb-07 5:47
Thomas Wells19-Feb-07 5:47 
AnswerRe: Business Object Properties in Random Order Pin
tgrt19-Feb-07 13:12
tgrt19-Feb-07 13:12 
GeneralRe: Business Object Properties in Random Order Pin
Thomas Wells20-Feb-07 8:12
Thomas Wells20-Feb-07 8:12 
GeneralRe: Business Object Properties in Random Order Pin
tgrt20-Feb-07 9:37
tgrt20-Feb-07 9:37 
QuestionInteraction Pin
ugrasamam19-Feb-07 5:24
ugrasamam19-Feb-07 5:24 
AnswerRe: Interaction Pin
sharpiesharpie19-Feb-07 6:08
sharpiesharpie19-Feb-07 6:08 
AnswerRe: Interaction Pin
NanaAM19-Feb-07 19:53
NanaAM19-Feb-07 19:53 
AnswerRe: Interaction Pin
ugrasamam20-Feb-07 20:03
ugrasamam20-Feb-07 20:03 
QuestionNeed Help with Strange TextBox.Leave behavior Pin
Rabbit1719-Feb-07 5:05
Rabbit1719-Feb-07 5:05 
I have a textbox and two radio buttons. If the value in the textbox is negative, radiobtn2 should be selected otherwise if it is positive radiobtn1 should be selected.

First, the code:

this.textbox1.Leave += new System.EventHandler(this.textbox1_Leave);

private void textbox1_Leave(object sender, System.EventArgs e)
{
string firstchar = textbox1.Text.Trim().Substring(0, 1);
//MessageBox.Show("function called");
if(firstchar == "-")
radiobtn2.Select();
else
radiobtn1.Select();
}

The strange behavior is:
1) that his works if I Tab out of the textbox but not if I click out of the textbox.
2) I put a simple messagebox.show in the textbox1_Leave function to see if it was being called, and the messagebox appears when I click out of the textbox and the code then works with a radiobtn being selected! This tells me the function is being called, but when I remove messagebox.show the function again no longer works!
I also tried changing the EventHandler from Leave to LostFocus and the same behavior exists.

Any ideas why this is or what I can do to work around it without having the user's progress be interrupted?

Thanks,

RABB17

"Nothing fancy needed, please just solve all our problems as quickly as possible."

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.