Click here to Skip to main content
14,362,507 members
   

C#

 
GeneralRe: HOW TO Auto Install Devexpress Windows PowerShell Pin
Member 1404636316-Sep-19 6:46
memberMember 1404636316-Sep-19 6:46 
QuestionHow can I software-trigger WndProc(ref Message m) to execute? Pin
arnold_w16-Sep-19 1:40
memberarnold_w16-Sep-19 1:40 
AnswerRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
Richard MacCutchan16-Sep-19 2:26
protectorRichard MacCutchan16-Sep-19 2:26 
GeneralRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
arnold_w16-Sep-19 23:00
memberarnold_w16-Sep-19 23:00 
GeneralRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
Richard MacCutchan16-Sep-19 23:45
protectorRichard MacCutchan16-Sep-19 23:45 
GeneralRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
BillWoodruff17-Sep-19 18:49
mveBillWoodruff17-Sep-19 18:49 
AnswerRe: How can I software-trigger WndProc(ref Message m) to execute? Pin
BillWoodruff17-Sep-19 18:57
mveBillWoodruff17-Sep-19 18:57 
QuestionUsing buttons on a form. Pin
Brian_TheLion15-Sep-19 18:48
memberBrian_TheLion15-Sep-19 18:48 
A lot of books deal with the console side of c# more than the form side.

Question.
I have a form that has a start, yes, no button.
When I click on start a question is displayed on the form and the user click on either the yes or the no button.
How do I tell the main program what button has been pressed?
When I say 'main program' I mean the part of the program that's ran when the start button is pressed.

At the start the program YN = 0. If the No button is pressed then YN = 1 and if the Yes button is pressed then YN = 2.
What happens next depends on what button is pressed so I need to get this information but to the main program.
AnswerRe: Using buttons on a form. Pin
OriginalGriff15-Sep-19 21:43
protectorOriginalGriff15-Sep-19 21:43 
AnswerRe: Using buttons on a form. Pin
GenJerDan15-Sep-19 21:55
memberGenJerDan15-Sep-19 21:55 
GeneralRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 5:32
mveBillWoodruff16-Sep-19 5:32 
AnswerRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 5:30
mveBillWoodruff16-Sep-19 5:30 
AnswerRe: Using buttons on a form. Pin
Brian_TheLion16-Sep-19 17:20
memberBrian_TheLion16-Sep-19 17:20 
GeneralRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 17:36
mveBillWoodruff16-Sep-19 17:36 
GeneralRe: Using buttons on a form. Pin
Brian_TheLion16-Sep-19 21:40
memberBrian_TheLion16-Sep-19 21:40 
AnswerRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 23:49
mveBillWoodruff16-Sep-19 23:49 
GeneralRe: Using buttons on a form. Pin
Brian_TheLion17-Sep-19 21:03
memberBrian_TheLion17-Sep-19 21:03 
QuestionFile format not proper for excel mail attachment in c# Pin
Member 1225501213-Sep-19 9:33
memberMember 1225501213-Sep-19 9:33 
AnswerRe: File format not proper for excel mail attachment in c# Pin
MadMyche13-Sep-19 12:59
mveMadMyche13-Sep-19 12:59 
QuestionHow to get the Websocketdata from server? Pin
Member 1457084312-Sep-19 7:46
memberMember 1457084312-Sep-19 7:46 
AnswerRe: How to get the Websocketdata from server? Pin
Richard MacCutchan12-Sep-19 7:49
protectorRichard MacCutchan12-Sep-19 7:49 
GeneralRe: How to get the Websocketdata from server? Pin
Member 1457084312-Sep-19 8:14
memberMember 1457084312-Sep-19 8:14 
GeneralRe: How to get the Websocketdata from server? Pin
Richard MacCutchan12-Sep-19 12:15
protectorRichard MacCutchan12-Sep-19 12:15 
AnswerRe: How to get the Websocketdata from server? Pin
ZurdoDev12-Sep-19 10:48
professionalZurdoDev12-Sep-19 10:48 
AnswerRe: How to get the Websocketdata from server? Pin
Gerry Schmitz12-Sep-19 21:36
mveGerry Schmitz12-Sep-19 21:36 

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.