PC Review


Reply
Thread Tools Rate Thread

Communication between forms

 
 
=?Utf-8?B?U3TDqXBoYW5lIFJvdWNoZXJheQ==?=
Guest
Posts: n/a
 
      21st Jul 2004
Hi all,

I have two forms a MainForm which is the entry point of my application and I created a 'Settings..' dialog box which appears when I click on my itemmenu 'Setting'.

I had no problem to get the results from the 'setting' form into my MainForm when I use :
if (SettingForm.ShowDialog() == DialogResult.OK)
{
//I process the results
}

But I want my results to be handled by the MainForm without the SettingForm disappearing. Just like if I had an 'Apply' button. With this feature I could change several time my settings and directly observe the effect in the MainForm.

May you help me please.
 
Reply With Quote
 
 
 
 
Matt Burland
Guest
Posts: n/a
 
      21st Jul 2004

"Stéphane Roucheray" <(E-Mail Removed)> wrote in
message news:C82B8ADD-B84E-4C82-8F1D-(E-Mail Removed)...
> Hi all,
>
> I have two forms a MainForm which is the entry point of my application and

I created a 'Settings..' dialog box which appears when I click on my
itemmenu 'Setting'.
>
> I had no problem to get the results from the 'setting' form into my

MainForm when I use :
> if (SettingForm.ShowDialog() == DialogResult.OK)
> {
> //I process the results
> }
>
> But I want my results to be handled by the MainForm without the

SettingForm disappearing. Just like if I had an 'Apply' button. With this
feature I could change several time my settings and directly observe the
effect in the MainForm.
>
> May you help me please.


You could have your "Apply" button fire an event that the main form could
subscribe to.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Communication between forms Selva Chinnasamy Microsoft VB .NET 8 25th Apr 2006 06:17 AM
communication between two C# forms satender kumar via .NET 247 Microsoft C# .NET 1 15th Mar 2005 09:15 AM
Communication between forms =?KOI8-R?Q?=E1=CE=D4=CF=CE_=F4=F5=D0=C9=CA?= Microsoft C# .NET 4 13th Jun 2004 06:10 PM
communication between two forms rammohan Microsoft C# .NET 3 28th Feb 2004 01:31 AM
Communication between 2 forms Reza Microsoft Dot NET Framework 0 28th Nov 2003 10:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:49 PM.