Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
GeneralRe: BackColor Pin
half-life6-Nov-07 5:28
half-life6-Nov-07 5:28 
AnswerRe: BackColor Pin
Christian Wikander6-Nov-07 3:57
Christian Wikander6-Nov-07 3:57 
GeneralRe: BackColor Pin
half-life6-Nov-07 5:25
half-life6-Nov-07 5:25 
QuestionTabPage (Or - What's Wrong With that Control??) Pin
half-life6-Nov-07 1:09
half-life6-Nov-07 1:09 
AnswerRe: TabPage (Or - What's Wrong With that Control??) Pin
Anthony Mushrow6-Nov-07 1:14
professionalAnthony Mushrow6-Nov-07 1:14 
GeneralRe: TabPage (Or - What's Wrong With that Control??) Pin
half-life6-Nov-07 1:31
half-life6-Nov-07 1:31 
GeneralRe: TabPage (Or - What's Wrong With that Control??) Pin
Nagy Vilmos6-Nov-07 1:57
professionalNagy Vilmos6-Nov-07 1:57 
GeneralRe: TabPage (Or - What's Wrong With that Control??) Pin
half-life6-Nov-07 2:31
half-life6-Nov-07 2:31 
AnswerRe: TabPage (Or - What's Wrong With that Control??) Pin
Tamimi - Code6-Nov-07 3:46
Tamimi - Code6-Nov-07 3:46 
GeneralRe: TabPage (Or - What's Wrong With that Control??) Pin
half-life6-Nov-07 5:23
half-life6-Nov-07 5:23 
AnswerRe: TabPage (Or - What's Wrong With that Control??) Pin
snorkie6-Nov-07 4:59
professionalsnorkie6-Nov-07 4:59 
GeneralRe: TabPage (Or - What's Wrong With that Control??) Pin
half-life6-Nov-07 5:19
half-life6-Nov-07 5:19 
QuestionFile Creation Time Pin
telha6-Nov-07 1:02
telha6-Nov-07 1:02 
AnswerRe: File Creation Time Pin
Anthony Mushrow6-Nov-07 1:17
professionalAnthony Mushrow6-Nov-07 1:17 
AnswerRe: File Creation Time Pin
Rob Philpott6-Nov-07 1:18
Rob Philpott6-Nov-07 1:18 
QuestionTextBox validating e.cancel=true does not cancel button event Pin
fracalifa6-Nov-07 0:48
fracalifa6-Nov-07 0:48 
Hi all,

In my .NET 1.1 Windows application I am using the validating event to check the correct field contents of a TextBox. When the contents was wrong I used e.cancel=true; and set the Focus on the TextBox again. I am leaving the TextBox by a button click event.
I would expect that the validating event comes before a button click event occurs, but that's wrong. The button click will not be canceled.

What must be done to cancel the button click when the e.cancel event of the TextBox becomes true ?
Or can I check in my button click function if a cancel has happend anywhere ?

Thanks in advance
Frank

AnswerRe: TextBox validating e.cancel=true does not cancel button event Pin
telha6-Nov-07 1:07
telha6-Nov-07 1:07 
AnswerRe: TextBox validating e.cancel=true does not cancel button event Pin
Nagy Vilmos6-Nov-07 1:25
professionalNagy Vilmos6-Nov-07 1:25 
GeneralRe: TextBox validating e.cancel=true does not cancel button event Pin
fracalifa6-Nov-07 3:00
fracalifa6-Nov-07 3:00 
GeneralRe: TextBox validating e.cancel=true does not cancel button event Pin
Nagy Vilmos6-Nov-07 4:24
professionalNagy Vilmos6-Nov-07 4:24 
QuestionDelegate for a field function Pin
manustone6-Nov-07 0:45
manustone6-Nov-07 0:45 
AnswerRe: Delegate for a field function Pin
TJoe6-Nov-07 1:42
TJoe6-Nov-07 1:42 
GeneralRe: Delegate for a field function Pin
manustone6-Nov-07 2:23
manustone6-Nov-07 2:23 
AnswerRe: Delegate for a field function Pin
MarkusStr6-Nov-07 1:46
MarkusStr6-Nov-07 1:46 
GeneralRe: Delegate for a field function Pin
manustone6-Nov-07 2:24
manustone6-Nov-07 2:24 

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.