B
bj7lewis
I am trying to setup a Windows Form app using C# in VS.NET 2003 that will
display 1 or 2 forms but both must shared a set of controls that interact
with shared data 100% the same way...
Here is what it looksed like before...
Main Form(Smaller Size of the 2)
--------------------------------
| | |
| It's | Shared |
| Data | Data |
| Controls | Controls |
--------------------------------
Child Form(But is Maximize)
--------------------------------
| |
| It's |
| Data |
| Controls |
--------------------------------
But this did work good but when I use the app as an user I ended up part way
thur using Child Form and I needed to close Child Form to go back to Main to
edit Shared data controls to update the data before I forget what I need to
change then reopen Child Form to continue where I was... This could also
repeat several time while app is opened so I desided to try this...
Main Form(Smaller Size of the 2)
--------------------------------
| | |
| It's | Shared |
| Data | Data |
| Controls | Controls |
--------------------------------
Child Form(But is Maximize)
--------------------------------
| | |
| It's | Shared |
| Data | Data |
| Controls | Controls |
--------------------------------
I have two forms(Main, Child) and a panel/usercontrol to hold
Shared Data Contols so when app opens main form *_Load() calls
Controls.Add() and assocates Shared Data Contols panel/usercontrol to main
form and Docking setting sets the docking and when child form
is invoke Controls.Remove() is called and Controls.Add() of child form is
call and again docking is fixed to expand to max...
Trying this I can Controls.Add() then Controls.Remove() the shared data
panel on the Main Form all I want but when I call
ChildForm.Controls.Remove() this set the panel visibility to false and below
doesn't change it to true... Note: Nowhere else in project is panel ever
hidden except this adding and removing and when form is closed...
ChildFormObj.Controls.Add(Shared DataContolsPanel.Shared
DataContolsPanelObj);
Shared DataContolsPanel.Shared DataContolsPanel.Visible = true;
MessageBox.Show(Shared DataContolsPanel.Shared
DataContolsPanel.Visible.ToString());
This Shows "False"...
What going on here... Why isn't "....Visible = true;" line working and
giving the wrong value to MessageBox.Show()...
Any help here...
display 1 or 2 forms but both must shared a set of controls that interact
with shared data 100% the same way...
Here is what it looksed like before...
Main Form(Smaller Size of the 2)
--------------------------------
| | |
| It's | Shared |
| Data | Data |
| Controls | Controls |
--------------------------------
Child Form(But is Maximize)
--------------------------------
| |
| It's |
| Data |
| Controls |
--------------------------------
But this did work good but when I use the app as an user I ended up part way
thur using Child Form and I needed to close Child Form to go back to Main to
edit Shared data controls to update the data before I forget what I need to
change then reopen Child Form to continue where I was... This could also
repeat several time while app is opened so I desided to try this...
Main Form(Smaller Size of the 2)
--------------------------------
| | |
| It's | Shared |
| Data | Data |
| Controls | Controls |
--------------------------------
Child Form(But is Maximize)
--------------------------------
| | |
| It's | Shared |
| Data | Data |
| Controls | Controls |
--------------------------------
I have two forms(Main, Child) and a panel/usercontrol to hold
Shared Data Contols so when app opens main form *_Load() calls
Controls.Add() and assocates Shared Data Contols panel/usercontrol to main
form and Docking setting sets the docking and when child form
is invoke Controls.Remove() is called and Controls.Add() of child form is
call and again docking is fixed to expand to max...
Trying this I can Controls.Add() then Controls.Remove() the shared data
panel on the Main Form all I want but when I call
ChildForm.Controls.Remove() this set the panel visibility to false and below
doesn't change it to true... Note: Nowhere else in project is panel ever
hidden except this adding and removing and when form is closed...
ChildFormObj.Controls.Add(Shared DataContolsPanel.Shared
DataContolsPanelObj);
Shared DataContolsPanel.Shared DataContolsPanel.Visible = true;
MessageBox.Show(Shared DataContolsPanel.Shared
DataContolsPanel.Visible.ToString());
This Shows "False"...
What going on here... Why isn't "....Visible = true;" line working and
giving the wrong value to MessageBox.Show()...
Any help here...