Click here to Skip to main content
15,910,787 members
Home / Discussions / C#
   

C#

 
AnswerRe: Database Update Error Pin
Guffa9-Sep-08 6:04
Guffa9-Sep-08 6:04 
GeneralRe: Database Update Error Pin
MumbleB9-Sep-08 6:10
MumbleB9-Sep-08 6:10 
GeneralRe: Database Update Error Pin
Guffa9-Sep-08 10:38
Guffa9-Sep-08 10:38 
GeneralRe: Database Update Error Pin
MumbleB9-Sep-08 6:19
MumbleB9-Sep-08 6:19 
QuestionWOrd Automation Pin
burrows.stephen9-Sep-08 5:41
burrows.stephen9-Sep-08 5:41 
AnswerRe: WOrd Automation Pin
dan!sh 9-Sep-08 5:51
professional dan!sh 9-Sep-08 5:51 
GeneralRe: WOrd Automation Pin
burrows.stephen9-Sep-08 5:56
burrows.stephen9-Sep-08 5:56 
GeneralRe: WOrd Automation Pin
dan!sh 9-Sep-08 6:06
professional dan!sh 9-Sep-08 6:06 
GeneralRe: WOrd Automation Pin
burrows.stephen9-Sep-08 6:27
burrows.stephen9-Sep-08 6:27 
GeneralRe: WOrd Automation Pin
Dan Neely9-Sep-08 6:57
Dan Neely9-Sep-08 6:57 
GeneralRe: WOrd Automation Pin
dan!sh 9-Sep-08 9:05
professional dan!sh 9-Sep-08 9:05 
GeneralRe: WOrd Automation Pin
Dan Neely9-Sep-08 9:50
Dan Neely9-Sep-08 9:50 
GeneralRe: WOrd Automation Pin
vikas amin9-Sep-08 7:47
vikas amin9-Sep-08 7:47 
Questionhow can i draw a rectangle from a separate antoher winForm? Pin
maifs9-Sep-08 5:23
maifs9-Sep-08 5:23 
AnswerRe: how can i draw a rectangle from a separate antoher winForm? Pin
zafersavas9-Sep-08 5:49
zafersavas9-Sep-08 5:49 
AnswerRe: how can i draw a rectangle from a separate antoher winForm? Pin
DaveyM699-Sep-08 6:59
professionalDaveyM699-Sep-08 6:59 
QuestionValidating event in a Dialog form Pin
Gareth H9-Sep-08 5:21
Gareth H9-Sep-08 5:21 
AnswerRe: Validating event in a Dialog form Pin
Wendelius9-Sep-08 7:25
mentorWendelius9-Sep-08 7:25 
GeneralRe: Validating event in a Dialog form Pin
Gareth H9-Sep-08 22:28
Gareth H9-Sep-08 22:28 
GeneralRe: Validating event in a Dialog form Pin
Wendelius10-Sep-08 8:02
mentorWendelius10-Sep-08 8:02 
Question[Message Deleted] Pin
Yathish hatter9-Sep-08 4:29
Yathish hatter9-Sep-08 4:29 
AnswerRe: please Help me C# Pin
Anthony Mushrow9-Sep-08 4:33
professionalAnthony Mushrow9-Sep-08 4:33 
AnswerRe: please Help me C# [modified] Pin
BillW339-Sep-08 5:32
professionalBillW339-Sep-08 5:32 
AnswerRe: please Help me C# Pin
zafersavas9-Sep-08 5:58
zafersavas9-Sep-08 5:58 
The answers above are all quite helpful and here is the source code to help you:
In Form1:
private void myButton_Click(object sender, EventArgs e)
{
   changeMyButton(false);
   Form2 frm2 = new Form2(this);
   frm2.Show();
}
public void changeMyButton(bool state)
{
   myButton.Enabled = state;
}

In Form2:
Form1 form1Ref;
public Form2(Form1 fRef)
{
   InitializeComponent();
   form1Ref = fRef;
}
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
   form1Ref.changeMyButton(true);
}

Good luck
zafer
GeneralRe: please Help me C# Pin
DaveyM699-Sep-08 7:10
professionalDaveyM699-Sep-08 7:10 

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.