Click here to Skip to main content
15,928,109 members
Home / Discussions / C#
   

C#

 
GeneralRe: RegisterClass in C# ? Pin
S. Senthil Kumar11-May-05 1:21
S. Senthil Kumar11-May-05 1:21 
GeneralRe: RegisterClass in C# ? Pin
Vitaly Tomilov11-May-05 3:43
Vitaly Tomilov11-May-05 3:43 
Generalcollision checking in a game Pin
Anonymous10-May-05 23:36
Anonymous10-May-05 23:36 
GeneralStoring List of Integer values. Pin
sugunet10-May-05 23:14
sugunet10-May-05 23:14 
GeneralRe: Storing List of Integer values. Pin
S. Senthil Kumar10-May-05 23:24
S. Senthil Kumar10-May-05 23:24 
GeneralIs the PC connected to the internet Pin
Roggey10-May-05 22:55
Roggey10-May-05 22:55 
GeneralRe: Is the PC connected to the internet Pin
Polis Pilavas11-May-05 0:54
Polis Pilavas11-May-05 0:54 
GeneralMultiple validating events Pin
Morrgan10-May-05 22:19
Morrgan10-May-05 22:19 
Hi,

The setup is as follows: I have a UserControl where the user can enter some data which I want to check using the validating event. The validation code does two things. First it tries to correct as many errors as it can (this involves giving focus to the UserControl if one or more errors are found). If all errors could not be corrected it highlights them in the UserControl and pops up a MessageBox. If no errors are corrected or highlighted during validation everything is fine (Leave -> Validating). If any error is corrected the validating event is fired one (Leave -> Validating -> Enter (Still Validating)) or two times depending on where I click in the Form (other components). If the validation occurs twice the following events are fired in the following order.

Leave -> Validating -> Enter (Still Validating) -> Leave (After First Validation is finished) -> Validating

This problem does not occur if the UserControl is not given the focus when validating. However, for the UserControl to function correctly it is necessary to give it focus when errors are corrected during validation.

If no error is corrected (or focus is not given to the UserControl) but highlighted the validating event may also fire twice depending on where I click in the Form (this always happens when closing the form).

Leave -> Validating -> Enter -> Leave -> Validating -> Enter

Any help explaining what is going on would be greatly appriciated.
GeneralRe: Multiple validating events Pin
Marc Clifton11-May-05 1:46
mvaMarc Clifton11-May-05 1:46 
GeneralRe: Multiple validating events Pin
Morrgan16-May-05 4:48
Morrgan16-May-05 4:48 
GeneralC# : Windows Service Pin
heeloowoo10-May-05 21:42
heeloowoo10-May-05 21:42 
GeneralRe: C# : Windows Service Pin
pubududilena10-May-05 23:16
pubududilena10-May-05 23:16 
GeneralRe: C# : Windows Service Pin
heeloowoo11-May-05 21:19
heeloowoo11-May-05 21:19 
GeneralStarting C# Pin
Member 191747310-May-05 21:15
Member 191747310-May-05 21:15 
GeneralRe: Starting C# Pin
pubududilena10-May-05 22:12
pubududilena10-May-05 22:12 
GeneralRe: Starting C# Pin
Polis Pilavas11-May-05 0:52
Polis Pilavas11-May-05 0:52 
GeneralRe: Starting C# Pin
Christian Graus11-May-05 12:55
protectorChristian Graus11-May-05 12:55 
Questionwhat is advantage of Microsoft Enterprise Library(pattern and practice)? Pin
pubududilena10-May-05 19:35
pubududilena10-May-05 19:35 
AnswerRe: what is advantage of Microsoft Enterprise Library(pattern and practice)? Pin
Polis Pilavas11-May-05 0:50
Polis Pilavas11-May-05 0:50 
GeneralGetting user inactivity time in a process Pin
G_Zola10-May-05 19:12
G_Zola10-May-05 19:12 
GeneralCoordination values in different monitors Pin
luckyeagle10-May-05 18:15
luckyeagle10-May-05 18:15 
GeneralRe: Coordination values in different monitors Pin
Christian Graus10-May-05 18:19
protectorChristian Graus10-May-05 18:19 
QuestionIn c#, how to managed the 2 dimension array? Pin
welsrping10-May-05 17:17
welsrping10-May-05 17:17 
AnswerRe: In c#, how to managed the 2 dimension array? Pin
Christian Graus10-May-05 17:27
protectorChristian Graus10-May-05 17:27 
GeneralRe: In c#, how to managed the 2 dimension array? Pin
welsrping10-May-05 19:34
welsrping10-May-05 19:34 

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.