PC Review


Reply
Thread Tools Rate Thread

Adding a control with code at Design Time

 
 
ZorpiedoMan
Guest
Posts: n/a
 
      24th Nov 2004
I'm trying to recreate similar behavior that a Tabcontrol offers at
design time. Once you add your TabControl, you can right-click and add
a page which adds the TabPage control to the form. I can't seem to
figure out how to add a control via code...

Anyone done this before?


--Zorpie

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Marina
Guest
Posts: n/a
 
      24th Nov 2004
All the designer does is generate code. So go look in the generated code
section and reproduce whatever happens there.

"ZorpiedoMan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm trying to recreate similar behavior that a Tabcontrol offers at
> design time. Once you add your TabControl, you can right-click and add
> a page which adds the TabPage control to the form. I can't seem to
> figure out how to add a control via code...
>
> Anyone done this before?
>
>
> --Zorpie
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
=?Utf-8?B?Wm9ycGllZG9tYW4=?=
Guest
Posts: n/a
 
      30th Nov 2004
Marina -

Thanks, I think! What is the 'generated code' section? How would you make
the designer write lines of code? I cant find any documentation on this at
all..

-Zorpy



"Marina" wrote:

> All the designer does is generate code. So go look in the generated code
> section and reproduce whatever happens there.
>
> "ZorpiedoMan" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I'm trying to recreate similar behavior that a Tabcontrol offers at
> > design time. Once you add your TabControl, you can right-click and add
> > a page which adds the TabPage control to the form. I can't seem to
> > figure out how to add a control via code...
> >
> > Anyone done this before?
> >
> >
> > --Zorpie
> >
> > *** Sent via Developersdex http://www.developersdex.com ***
> > Don't just participate in USENET...get rewarded for it!

>
>
>

 
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
Adding controls to a Web User Control at Design Time in VS POPone Microsoft ASP .NET 0 12th Sep 2006 09:14 PM
Renaming a control in design time via code =?Utf-8?B?Wm9ycGllZG9tYW4=?= Microsoft VB .NET 0 29th Jul 2005 08:56 PM
Adding Controls to a User Control at Design Time Jeff Gaines Microsoft Dot NET Framework Forms 2 2nd Sep 2004 04:18 PM
A control, that generates code at design-time M Wagner Microsoft C# .NET 0 14th Jan 2004 01:52 PM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com Microsoft ASP .NET 0 1st Jul 2003 10:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:36 AM.