Click here to Skip to main content
15,903,030 members
Home / Discussions / C#
   

C#

 
GeneralRe: WOrd Automation Pin
dan!sh 9-Sep-08 9:05
professional dan!sh 9-Sep-08 9:05 
GeneralRe: WOrd Automation Pin
Dan Neely9-Sep-08 9:50
Dan Neely9-Sep-08 9:50 
GeneralRe: WOrd Automation Pin
vikas amin9-Sep-08 7:47
vikas amin9-Sep-08 7:47 
Questionhow can i draw a rectangle from a separate antoher winForm? Pin
maifs9-Sep-08 5:23
maifs9-Sep-08 5:23 
AnswerRe: how can i draw a rectangle from a separate antoher winForm? Pin
zafersavas9-Sep-08 5:49
zafersavas9-Sep-08 5:49 
AnswerRe: how can i draw a rectangle from a separate antoher winForm? Pin
DaveyM699-Sep-08 6:59
professionalDaveyM699-Sep-08 6:59 
QuestionValidating event in a Dialog form Pin
Gareth H9-Sep-08 5:21
Gareth H9-Sep-08 5:21 
AnswerRe: Validating event in a Dialog form Pin
Wendelius9-Sep-08 7:25
mentorWendelius9-Sep-08 7:25 
Hi,

Validating is a bit problematic when using default events. As you noticed, you cannot move the focus from the control as long as it's not validated.

However, you can resolve this in many ways. One that comes first in mind is that you create a single validation method where you actually do the validations. This method can be called whenever you want that validation occurs and it can use error providers or such to indicate problem controls. If you return a boolean from this method indicating if validation was succesfull, you can use that boolean for example in OK button so that it doesn't perform it's actions if validation has failed. However, cancel button doesn't use the return value since it's going to cancel the whole operation. Make validation events to call this method, but nevermind the return value and never set cancel to false in validation event.

Hope this helps (and was understandable),

Mika
GeneralRe: Validating event in a Dialog form Pin
Gareth H9-Sep-08 22:28
Gareth H9-Sep-08 22:28 
GeneralRe: Validating event in a Dialog form Pin
Wendelius10-Sep-08 8:02
mentorWendelius10-Sep-08 8:02 
Question[Message Deleted] Pin
Yathish hatter9-Sep-08 4:29
Yathish hatter9-Sep-08 4:29 
AnswerRe: please Help me C# Pin
Anthony Mushrow9-Sep-08 4:33
professionalAnthony Mushrow9-Sep-08 4:33 
AnswerRe: please Help me C# [modified] Pin
BillW339-Sep-08 5:32
professionalBillW339-Sep-08 5:32 
AnswerRe: please Help me C# Pin
zafersavas9-Sep-08 5:58
zafersavas9-Sep-08 5:58 
GeneralRe: please Help me C# Pin
DaveyM699-Sep-08 7:10
professionalDaveyM699-Sep-08 7:10 
GeneralRe: please Help me C# Pin
zafersavas9-Sep-08 8:31
zafersavas9-Sep-08 8:31 
GeneralRe: please Help me C# Pin
DaveyM699-Sep-08 8:53
professionalDaveyM699-Sep-08 8:53 
GeneralRe: please Help me C# Pin
zafersavas9-Sep-08 10:00
zafersavas9-Sep-08 10:00 
GeneralRe: please Help me C# Pin
DaveyM699-Sep-08 10:27
professionalDaveyM699-Sep-08 10:27 
GeneralRe: please Help me C# Pin
Mycroft Holmes9-Sep-08 15:46
professionalMycroft Holmes9-Sep-08 15:46 
GeneralRe: please Help me C# Pin
DaveyM699-Sep-08 23:07
professionalDaveyM699-Sep-08 23:07 
AnswerRe: please Help me C# Pin
nelsonpaixao9-Sep-08 14:11
nelsonpaixao9-Sep-08 14:11 
Questionis there any body in all the world can help me Pin
Miss_hacker9-Sep-08 3:42
Miss_hacker9-Sep-08 3:42 
AnswerRe: is there any body in all the world can help me Pin
Pete O'Hanlon9-Sep-08 4:06
mvePete O'Hanlon9-Sep-08 4:06 
AnswerRe: is there any body in all the world can help me Pin
J4amieC9-Sep-08 4:07
J4amieC9-Sep-08 4:07 

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.