Click here to Skip to main content
14,639,458 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
Member 1479239329-Jul-20 10:02
MemberMember 1479239329-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
professionalRalf Meier30-Jul-20 0:43 
GeneralRe: User Control function C# Pin
Member 1479239330-Jul-20 4:09
MemberMember 1479239330-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
mveBillWoodruff28-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
professionalRalf Meier28-Jul-20 21:04 
GeneralRe: User Control function C# Pin
Member 1479239329-Jul-20 10:04
MemberMember 1479239329-Jul-20 10:04 
GeneralRe: User Control function C# Pin
Ralf Meier29-Jul-20 20:30
professionalRalf Meier29-Jul-20 20:30 
GeneralRe: User Control function C# Pin
Member 1479239330-Jul-20 4:03
MemberMember 1479239330-Jul-20 4:03 
GeneralRe: User Control function C# Pin
Ralf Meier30-Jul-20 6:15
professionalRalf Meier30-Jul-20 6:15 
GeneralRe: User Control function C# Pin
Member 1479239331-Jul-20 6:47
MemberMember 1479239331-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
Member 1479239331-Jul-20 10:36
MemberMember 1479239331-Jul-20 10:36 
GeneralRe: User Control function C# Pin
Ralf Meier31-Jul-20 8:22
professionalRalf Meier31-Jul-20 8:22 
GeneralRe: User Control function C# Pin
Member 1479239331-Jul-20 10:39
MemberMember 1479239331-Jul-20 10:39 
GeneralRe: User Control function C# Pin
Ralf Meier31-Jul-20 11:20
professionalRalf Meier31-Jul-20 11:20 
GeneralRe: User Control function C# Pin
Member 147923931-Aug-20 1:57
MemberMember 147923931-Aug-20 1:57 
GeneralRe: User Control function C# Pin
Ralf Meier1-Aug-20 22:49
professionalRalf Meier1-Aug-20 22:49 
Questioncall a jquery function inside html returned by ajax Pin
taiielmehdi00127-Jul-20 21:36
Membertaiielmehdi00127-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
Memberago248627-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.