Click here to Skip to main content
15,902,275 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: operator overloding in VB Pin
Link260024-Sep-03 12:26
Link260024-Sep-03 12:26 
GeneralRe: operator overloding in VB Pin
Dave Kreskowiak24-Sep-03 15:40
mveDave Kreskowiak24-Sep-03 15:40 
GeneralRe: operator overloding in VB Pin
Nick Seng24-Sep-03 17:09
Nick Seng24-Sep-03 17:09 
GeneralRe: operator overloding in VB Pin
Dave Kreskowiak24-Sep-03 17:38
mveDave Kreskowiak24-Sep-03 17:38 
GeneralRe: operator overloding in VB Pin
Anthony_Yio3-Oct-03 21:29
Anthony_Yio3-Oct-03 21:29 
GeneralRe: operator overloding in VB Pin
Anonymous24-Oct-03 8:54
Anonymous24-Oct-03 8:54 
GeneralAudit log Pin
24-Sep-03 1:32
suss24-Sep-03 1:32 
GeneralControl Designer & Child Controls Issue Pin
scott@otech.com23-Sep-03 4:15
scott@otech.com23-Sep-03 4:15 
Does anyone have a solution to this problem: Confused | :confused: Confused | :confused: Confused | :confused:

When implementing a ControlDesigner or ParentControlDesigner, if one has a
UserControl that contains child controls as follows:

+========UserControl=========+
| +-----------------------------------+ |
| | Caption Panel | |
| +-----------------------------------+ |
| +---------------------------------- + |
| | Content Panel | |
| +-----------------------------------+ |
+=========================+

My desire is to have ToolboxItems that are added to the UserControl at
design-time be added as children of the ContentPanel.

- Using a ControlDesigner and invoking CreateComponent() adds the control to
the current design document (the UserControl).
- If one attempts to "re-parent" the control being "dropped" within the
designer for the UserControl by doing the following

Control target = ((myUserControl)this.Control).ContentPanel;
// the (child) Control where the dropped control should be moved-to

this.Control.Controls.RemoveAt(this.Control.Controls.IndexOf(ctl));
// remove the control from the UserControl (top-level parent)

ctl.Parent = target;
// assign the .Parent property of the control

target.Controls.Add(ctl);
// add the dropped control to the ContentPanel Controls collection

The error "Object reference not set to an instance of an object" occurs.

Do I need to create a(nother) designer for the ContentPanel so that IT can
serve as the target of the DragDrop? Is there some other (more expedient)
way to do this? Initiate an additional DesignerTransaction that makes the
re-parenting change? Making the .Parent and Controls[] change, and then
using the ComponentChangeService to make Changing/Changed notifications on
the "Parent" and "Controls" PropertyDescriptors ?
GeneralProblem with Web Client Pin
КфВ22-Sep-03 21:05
sussКфВ22-Sep-03 21:05 
GeneralRe: Problem with Web Client Pin
Jim Taylor25-Sep-03 4:19
Jim Taylor25-Sep-03 4:19 
GeneralHelp Pin
Anonymous22-Sep-03 6:58
Anonymous22-Sep-03 6:58 
GeneralRe: Help Pin
NetPointerIN22-Sep-03 11:14
NetPointerIN22-Sep-03 11:14 
GeneralRestoring of DB Pin
Anonymous22-Sep-03 3:27
Anonymous22-Sep-03 3:27 
GeneralAccess Report Printing from VB Pin
Dangleberry21-Sep-03 22:26
sussDangleberry21-Sep-03 22:26 
QuestionIs it possible??? Pin
Doominator21-Sep-03 12:04
Doominator21-Sep-03 12:04 
GeneralPrinting Software - Please Help Me .... Pin
Wism Chan20-Sep-03 14:28
sussWism Chan20-Sep-03 14:28 
GeneralCalendar & DropDown boxes for changing Calendar Month, Day, Year Pin
iamalexCode20-Sep-03 11:24
iamalexCode20-Sep-03 11:24 
Generalusing vb6 crystal reports 7 in .net Pin
Anonymous20-Sep-03 10:15
Anonymous20-Sep-03 10:15 
GeneralXPath problem Pin
raf franco20-Sep-03 3:39
raf franco20-Sep-03 3:39 
GeneralRe: XPath problem Pin
Jan Tielens22-Sep-03 20:07
Jan Tielens22-Sep-03 20:07 
GeneralRe: XPath problem Pin
raf franco22-Sep-03 20:45
raf franco22-Sep-03 20:45 
GeneralResizing Columns in a DataGrid Pin
Emile Jacobs20-Sep-03 1:15
Emile Jacobs20-Sep-03 1:15 
GeneralRe: Resizing Columns in a DataGrid Pin
ami-uhle26-Sep-03 5:39
ami-uhle26-Sep-03 5:39 
GeneralAdding controls to a child control of a UserControl at design time Pin
jplocster19-Sep-03 22:15
jplocster19-Sep-03 22:15 
QuestionHow to Use API AddForm in VB.net Pin
allanli19-Sep-03 0:22
allanli19-Sep-03 0:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.