Click here to Skip to main content
14,359,781 members
   

C#

 
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 
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 
Thanks Bill and RenJerDan for your replies.

To go more into detail.
Once the user has pressed the start button a d the question is displayed to the user then the user has a choice of clicking on the YES or the NO buttons.

For a forms program once the program has displayed the question it is waiting for the user to press a button on the form, but if the user pressed the YES button then control switches to the Yes_Click code which is just YN=1 but then I need to return to the main code to make a decision depending on what button was pressed. It's not like the main code will wait for the user to make a choice before continuing.
I tried to create a loop that continues until YN is equal to anything other than zero but while in the loop it is not checking on the buttons on the form, which Makes me wonder how arcade games work as they are looping to provide animation.
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 
AnswerRe: How to get the Websocketdata from server? Pin
OriginalGriff13-Sep-19 1:25
protectorOriginalGriff13-Sep-19 1:25 
QuestionWPF or Winforms Pin
N.Subramanian12-Sep-19 1:12
memberN.Subramanian12-Sep-19 1:12 
AnswerRe: WPF or Winforms Pin
OriginalGriff12-Sep-19 1:15
protectorOriginalGriff12-Sep-19 1:15 
AnswerRe: WPF or Winforms Pin
Richard MacCutchan12-Sep-19 4:18
protectorRichard MacCutchan12-Sep-19 4:18 
AnswerRe: WPF or Winforms Pin
Gerry Schmitz12-Sep-19 7:13
mveGerry Schmitz12-Sep-19 7:13 

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.