![]() |
| | #1 |
| Registered User Join Date: Jul 2007
Posts: 7
| how to read property of external form? Code: if (this.WindowState == FormWindowState.Minimized == true)
{
notifyIcon1.Visible = true;
this.WindowState = FormWindowState.Minimized;
this.ShowInTaskbar = false;
}
but i want to do something like Code: if (this.WindowState == FormWindowState.Minimized == true && Options.checkBox1.Checked == true)
{
notifyIcon1.Visible = true;
this.WindowState = FormWindowState.Minimized;
this.ShowInTaskbar = false;
}
|
| Look- is offline | |
| | #2 |
| Registered User Join Date: Jun 2008 Location: RING 0
Posts: 462
| Do you have an object of the form in scope to be able to call? Usually I prefer to update some global Settings or Preferences structure that my application can pull from, so I don't keep checking the forms controls. If you indeed have your controls public (which is not the best way to retrieve data), then there should be no reason you can't call members of it. |
| valaris is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| read only folder on Windows | George2 | Windows Programming | 2 | 11-05-2007 09:18 AM |
| Installing Direct X | bumfluff | Game Programming | 36 | 11-15-2006 07:18 PM |
| C++ std routines | siavoshkc | C++ Programming | 33 | 07-28-2006 12:13 AM |
| My UserControls dissapear off my form | zMan | C# Programming | 2 | 09-15-2004 08:55 AM |
| Unknown Memory Leak in Init() Function | CodeHacker | Windows Programming | 3 | 07-09-2004 09:54 AM |