Click here to Skip to main content
15,895,538 members
Home / Discussions / C#
   

C#

 
AnswerRe: Semi automatic forground video segmentation Pin
Ed.Poore12-Sep-07 2:09
Ed.Poore12-Sep-07 2:09 
QuestionDownload multiple files? [modified] Pin
bug_aonz12-Sep-07 0:35
bug_aonz12-Sep-07 0:35 
AnswerRe: Download multiple files? Pin
Mark Swaanenburg12-Sep-07 2:23
Mark Swaanenburg12-Sep-07 2:23 
AnswerRe: Download multiple files? Pin
Scott Dorman12-Sep-07 8:18
professionalScott Dorman12-Sep-07 8:18 
QuestionRe: Download multiple files? Pin
bug_aonz12-Sep-07 17:11
bug_aonz12-Sep-07 17:11 
AnswerRe: Download multiple files? Pin
Scott Dorman13-Sep-07 4:16
professionalScott Dorman13-Sep-07 4:16 
GeneralRe: Download multiple files? Pin
bug_aonz13-Sep-07 16:56
bug_aonz13-Sep-07 16:56 
QuestionHow to check in form2 if a button on form1 has been clicked Pin
Lucy12-Sep-07 0:20
Lucy12-Sep-07 0:20 
I have two forms. Form1 has a textbox and a button. Form2 has a label. When the button on form1 is clicked, form2 is opened and the text in the textbox in form1 is shown in the label of form2. To get the text in the textbox to appear in the label, the code I have for this is in the Form load event. In this event I want to check if the button on form 1 has been clicked. How do I do this?

I can access the button (located on form1) from form 2 by firstly making this public and then using this code:

((Form1)frm1).button1.

I do not know how to finish this line of code while it is in an IF statement.

Lucy

AnswerRe: How to check in form2 if a button on form1 has been clicked Pin
blackjack215012-Sep-07 0:33
blackjack215012-Sep-07 0:33 
GeneralRe: How to check in form2 if a button on form1 has been clicked Pin
Lucy12-Sep-07 0:54
Lucy12-Sep-07 0:54 
AnswerRe: How to check in form2 if a button on form1 has been clicked Pin
Malcolm Smart12-Sep-07 1:00
Malcolm Smart12-Sep-07 1:00 
AnswerRe: How to check in form2 if a button on form1 has been clicked Pin
Xmen Real 12-Sep-07 1:24
professional Xmen Real 12-Sep-07 1:24 
GeneralRe: How to check in form2 if a button on form1 has been clicked Pin
Lucy12-Sep-07 1:29
Lucy12-Sep-07 1:29 
GeneralRe: How to check in form2 if a button on form1 has been clicked Pin
Xmen Real 12-Sep-07 1:31
professional Xmen Real 12-Sep-07 1:31 
GeneralRe: How to check in form2 if a button on form1 has been clicked Pin
Lucy12-Sep-07 1:32
Lucy12-Sep-07 1:32 
GeneralRe: How to check in form2 if a button on form1 has been clicked Pin
Xmen Real 12-Sep-07 1:35
professional Xmen Real 12-Sep-07 1:35 
GeneralRe: How to check in form2 if a button on form1 has been clicked Pin
Pete O'Hanlon12-Sep-07 1:49
mvePete O'Hanlon12-Sep-07 1:49 
AnswerRe: How to check in form2 if a button on form1 has been clicked Pin
Anthony Mushrow12-Sep-07 2:02
professionalAnthony Mushrow12-Sep-07 2:02 
AnswerRe: How to check in form2 if a button on form1 has been clicked Pin
Paras Kaneriya12-Sep-07 22:32
Paras Kaneriya12-Sep-07 22:32 
Question[Message Deleted] Pin
P_Elza12-Sep-07 0:12
P_Elza12-Sep-07 0:12 
AnswerRe: Go to a particular node. Pin
Mark Churchill12-Sep-07 0:14
Mark Churchill12-Sep-07 0:14 
GeneralRe: Go to a particular node. Pin
P_Elza12-Sep-07 0:56
P_Elza12-Sep-07 0:56 
AnswerRe: Go to a particular node. Pin
Xmen Real 12-Sep-07 1:29
professional Xmen Real 12-Sep-07 1:29 
GeneralRe: Go to a particular node. Pin
P_Elza12-Sep-07 2:12
P_Elza12-Sep-07 2:12 
AnswerRe: Go to a particular node. Pin
Scott Dorman12-Sep-07 8:20
professionalScott Dorman12-Sep-07 8:20 

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.