Click here to Skip to main content
15,867,995 members
Home / Discussions / C#
   

C#

 
GeneralRe: answer Pin
OriginalGriff29-Jul-20 10:12
mveOriginalGriff29-Jul-20 10:12 
GeneralRe: answer Pin
Gerry Schmitz29-Jul-20 22:47
mveGerry Schmitz29-Jul-20 22:47 
GeneralRe: answer Pin
Richard MacCutchan29-Jul-20 22:56
mveRichard MacCutchan29-Jul-20 22:56 
GeneralRe: answer Pin
Gerry Schmitz29-Jul-20 23:03
mveGerry Schmitz29-Jul-20 23:03 
AnswerRe: answer Pin
Dave Kreskowiak29-Jul-20 11:14
mveDave Kreskowiak29-Jul-20 11:14 
AnswerRe: answer Pin
Eddy Vluggen30-Jul-20 0:50
professionalEddy Vluggen30-Jul-20 0:50 
AnswerRe: answer Pin
jsc4230-Jul-20 6:10
professionaljsc4230-Jul-20 6:10 
QuestionUser Control function C# Pin
Ismael_199928-Jul-20 4:46
Ismael_199928-Jul-20 4:46 
I created a UserControl with 5 buttons: New, Edit, Delete, Save, Cancel. All buttons have functions associated to them, programable by the user. Normally the 3 first buttons are enabled and the 2 other are disabled. When the user clicks on New or Edit, the 3 first buttons become disabled and the 2 others, enabled. When the user clicks on Save, or Cancel, it returns to the original state. It's working fine, but there is an issue.
In an application, when the user clicks on the Save button, the program must first verify if the fields are all filled. If yes, OK. But if not, the function should do nothing. So, what I need is a way of, in the main program, test the fields and pass this information to the control. But I don't know how. I tried to create a funtion in the control type virtual and in the main program I tried to create the same function with override, but it didn't work. Can anyone help me?
Thanks.
Ismael

AnswerRe: User Control function C# Pin
Richard Andrew x6428-Jul-20 5:11
professionalRichard Andrew x6428-Jul-20 5:11 
GeneralRe: User Control function C# Pin
Ismael_199929-Jul-20 5:32
Ismael_199929-Jul-20 5:32 
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
professionalRalf 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 
AnswerRe: User Control function C# Pin
Ralf Meier28-Jul-20 21:04
professionalRalf 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
professionalRalf 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
professionalRalf 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 

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.