A
A.C. Jetter
I am using C# in Visual Studio.Net to create an
application. The problem I
am having is when the main form is moved around on the
screen, the "panel"
form that is displayed on the tab control does not move
with the main form.
How can I "anchor" them so they move together? I do not
want to put the
panels directly on the tab control, as I want to keep
them separate to allow
a more modular approach.
I have tried to make a main form that is a MdiContainer
(attempting to force
them to stay together), but have been unsuccessful at
making the "panel"
form show on top of the tab control. The MdiParent for
the "panel" form is
being set to the correct form, but when I use "Show"
and "BringToFront" on
the "panel" form, it gives me an error... " Cannot create
a child list for
field Contact." I am unable to locate where
the "Contact" field is that the
error is indicating. The tab control has a
ContactsTabPage, and displays
"Contacts" on the tab, but all fields have a different
naming convention so
a one word field like this does not exist. I am not
using menus in the
application in order to simplify the approach and would
like to stay with
the tab control.
application. The problem I
am having is when the main form is moved around on the
screen, the "panel"
form that is displayed on the tab control does not move
with the main form.
How can I "anchor" them so they move together? I do not
want to put the
panels directly on the tab control, as I want to keep
them separate to allow
a more modular approach.
I have tried to make a main form that is a MdiContainer
(attempting to force
them to stay together), but have been unsuccessful at
making the "panel"
form show on top of the tab control. The MdiParent for
the "panel" form is
being set to the correct form, but when I use "Show"
and "BringToFront" on
the "panel" form, it gives me an error... " Cannot create
a child list for
field Contact." I am unable to locate where
the "Contact" field is that the
error is indicating. The tab control has a
ContactsTabPage, and displays
"Contacts" on the tab, but all fields have a different
naming convention so
a one word field like this does not exist. I am not
using menus in the
application in order to simplify the approach and would
like to stay with
the tab control.