G
Guest
In VS 2005 I have a base form that is designed to be inherited by many other
forms within an application. This base form contains a tab control with two
tab pages, among several other controls. The second tab page (lets call it
TabPage2) has the Modifiers property set to Protected so that any inherited
forms can add controls to the tab.
When I create an inherited form, I can drag new controls from the toolbar to
TabPage2 without a problem. However, what I would really like to do is drag
a table (or selected fields) from the Data Sources pane so that the data
bound form fields are created automatically. That would be a wonderful
convenience. The only problem is, when I try to drag a field over TabPage2,
I get the "not allowed" cursor symbol and the drop operation does nothing.
As another point of interest, this base form was brought over from a VS 2003
project that is being converted and upgraded using VS 2005. I'm not sure if
the version change is affecting the outcome or not. The base form and its
related code are a little complex.
In an effort to isolate the problem, I started a new project and created a
very simple form with the same tab control design. When I inherited this
simple base form and tried to drag from the Data Source window, it worked
perfectly. Very mysterious. Something in the old base form is preventing
the drag and drop operation from working (although not for regular toolbar
controls).
Any ideas on how to isolate or debug this?
Thanks.
forms within an application. This base form contains a tab control with two
tab pages, among several other controls. The second tab page (lets call it
TabPage2) has the Modifiers property set to Protected so that any inherited
forms can add controls to the tab.
When I create an inherited form, I can drag new controls from the toolbar to
TabPage2 without a problem. However, what I would really like to do is drag
a table (or selected fields) from the Data Sources pane so that the data
bound form fields are created automatically. That would be a wonderful
convenience. The only problem is, when I try to drag a field over TabPage2,
I get the "not allowed" cursor symbol and the drop operation does nothing.
As another point of interest, this base form was brought over from a VS 2003
project that is being converted and upgraded using VS 2005. I'm not sure if
the version change is affecting the outcome or not. The base form and its
related code are a little complex.
In an effort to isolate the problem, I started a new project and created a
very simple form with the same tab control design. When I inherited this
simple base form and tried to drag from the Data Source window, it worked
perfectly. Very mysterious. Something in the old base form is preventing
the drag and drop operation from working (although not for regular toolbar
controls).
Any ideas on how to isolate or debug this?
Thanks.