473,320 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Communication between forms

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.
Jul 21 '05 #1
1 1064

"Stéphane Roucheray" <St**************@discussions.microsoft.com> wrote in
message news:C8**********************************@microsof t.com...
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.
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically...
3
by: rammohan | last post by:
hello my task is to show only one form at a time.if click some button in one form the other must be displayed and viceversa. i try it but i got debugger exception. can u give me the reason why...
3
by: pnp | last post by:
Hi all, I want to develop an app that during it's installation it activates itself by making a request to a page online (aspx), than runs a script and provides an activation string for the app....
4
by: Dean L. Howen | last post by:
Please show me advise. My problem is: how to communication between forms? I have 3 forms: The 1st: parent form: is MDI --> I call parentForm The 2nd: child form is called by parentForm...
3
by: Maheshkumar.R | last post by:
Hi groups, How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT. Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI...
2
by: Jim Shank | last post by:
I am really trying to find the best OOP way of doing this. I have a parent MDI form with multiple children and I am trying to communicate variables between them. I have been able to successfully...
21
by: dast | last post by:
Hi, I'm having trouble letting my background thread tell my main thread what to do. I'm trying to tell my main thread to open a form, but when my background thread ends, the form that I...
5
by: Mo | last post by:
Hi, I have an application where I read a serial port data from a barcode and set the labels on a form. I also have a textbox and button where you can enter the data and here is the problem. if I...
0
by: zb | last post by:
Here is the page architecture: Page loads multiple user controls (including nested user controls) dynamically based on parameters provided into place holders. Note: The page only has the logic to...
6
by: ecir.hana | last post by:
Hi, let's say I have two scripts: one does some computations and the other one is a graphical front end for launching the first one. And both run in separate processes (front end runs and that it...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.