Click here to Skip to main content
15,920,031 members
Home / Discussions / C#
   

C#

 
GeneralRe: User Control function C# Pin
Gerry Schmitz29-Jul-20 7:11
mveGerry Schmitz29-Jul-20 7:11 
GeneralRe: User Control function C# Pin
Ismael_199929-Jul-20 10:02
Ismael_199929-Jul-20 10:02 
GeneralRe: User Control function C# Pin
Gerry Schmitz30-Jul-20 0:10
mveGerry Schmitz30-Jul-20 0:10 
GeneralRe: User Control function C# Pin
Ralf Meier30-Jul-20 0:43
mveRalf Meier30-Jul-20 0:43 
GeneralRe: User Control function C# Pin
Ismael_199930-Jul-20 4:09
Ismael_199930-Jul-20 4:09 
GeneralRe: User Control function C# Pin
Gerry Schmitz30-Jul-20 7:21
mveGerry Schmitz30-Jul-20 7:21 
AnswerRe: User Control function C# Pin
Gerry Schmitz28-Jul-20 6:53
mveGerry Schmitz28-Jul-20 6:53 
AnswerRe: User Control function C# Pin
BillWoodruff28-Jul-20 16:55
professionalBillWoodruff28-Jul-20 16:55 
I suggest you handle field validation inside the UserControl, and only enable the 'Save Button when all fields have appropriate values ... assuming the validation code can be located inside.

There are several strategies you can use including using the built-in validation facilities in WinForms [^], [^]. A valuable discussion here: [^].

A simple strategy is to define Event Handlers for all the input fields for 'Enter and 'Leave, and check for values. Use a boolean flag to keep track of whether all fields are valid.

For an example of a complex full-featured validator see CP article: [^]
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali


modified 29-Jul-20 10:31am.

AnswerRe: User Control function C# Pin
Ralf Meier28-Jul-20 21:04
mveRalf Meier28-Jul-20 21:04 
GeneralRe: User Control function C# Pin
Ismael_199929-Jul-20 10:04
Ismael_199929-Jul-20 10:04 
GeneralRe: User Control function C# Pin
Ralf Meier29-Jul-20 20:30
mveRalf Meier29-Jul-20 20:30 
GeneralRe: User Control function C# Pin
Ismael_199930-Jul-20 4:03
Ismael_199930-Jul-20 4:03 
GeneralRe: User Control function C# Pin
Ralf Meier30-Jul-20 6:15
mveRalf Meier30-Jul-20 6:15 
GeneralRe: User Control function C# Pin
Ismael_199931-Jul-20 6:47
Ismael_199931-Jul-20 6:47 
GeneralRe: User Control function C# Pin
Gerry Schmitz31-Jul-20 7:48
mveGerry Schmitz31-Jul-20 7:48 
GeneralRe: User Control function C# Pin
Ismael_199931-Jul-20 10:36
Ismael_199931-Jul-20 10:36 
GeneralRe: User Control function C# Pin
Ralf Meier31-Jul-20 8:22
mveRalf Meier31-Jul-20 8:22 
GeneralRe: User Control function C# Pin
Ismael_199931-Jul-20 10:39
Ismael_199931-Jul-20 10:39 
GeneralRe: User Control function C# Pin
Ralf Meier31-Jul-20 11:20
mveRalf Meier31-Jul-20 11:20 
GeneralRe: User Control function C# Pin
Ismael_19991-Aug-20 1:57
Ismael_19991-Aug-20 1:57 
GeneralRe: User Control function C# Pin
Ralf Meier1-Aug-20 22:49
mveRalf Meier1-Aug-20 22:49 
Questioncall a jquery function inside html returned by ajax Pin
Peq 227-Jul-20 21:36
Peq 227-Jul-20 21:36 
AnswerRe: call a jquery function inside html returned by ajax Pin
OriginalGriff27-Jul-20 22:02
mveOriginalGriff27-Jul-20 22:02 
QuestionAdd a listview cell Pin
ago248627-Jul-20 1:34
ago248627-Jul-20 1:34 
AnswerRe: Add a listview cell Pin
OriginalGriff27-Jul-20 2:28
mveOriginalGriff27-Jul-20 2:28 

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.