PC Review


Reply
Thread Tools Rate Thread

Visual Studio 2005, User Controls

 
 
fourteenone@gmail.com
Guest
Posts: n/a
 
      3rd Apr 2006
I have a few classes that extend UserControl:
MyNodePanel: some "fancy" panel
MyBaseDataPanel: a base panel with some generic functionality (has a
collection of MyNodePanels)

Both of those are in a generic library.

I have another UserControl:
OneSpecificDataPanel: extends MyBaseDataPanel
(there will be many of these specific data panels, all contain several
MyNodePanels (among other things)).

So far, I've got all the "designer" variables showing up correctly,
however there's one part I haven't figured out yet.
When I add a few 'MyNodePanel's to 'OneSpecificDataPanel,' I'd like for
it to automatically add a line:
"this.NodePanels.Add(this.newNodePanel);" similar to when you add any
controls to a gui, there's this line:
"this.Controls.Add(this.newControlYouJustAdded);" Except I'd like to
have a collection of the MyNodePanels contained on the specific panels
so I can manipulate them through methods in the MyBaseDataPanel.

Anyone know how to do this? Am I just missing something simple?
Thanks,
PKSII

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft Dot NET 4 17th May 2007 08:56 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft C# .NET 0 14th May 2007 08:45 PM
RE: Visual Studio 2005 Missing Web Controls =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?= Microsoft C# .NET 1 29th Dec 2006 01:54 PM
Dragging User Controls in Visual Studio 2005 =?Utf-8?B?cmFuZHkxMjAw?= Microsoft Dot NET 1 25th Jan 2006 09:13 PM
Visual Studio 2005 Beta 1 Refresh vs Visual Studio 2005 CTP vs Visual C++ 2005 Express Beta1 Peter Nimmo Microsoft VC .NET 1 16th Dec 2004 04:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:01 PM.