Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Changin container of a control

Reply
 
Old 06-04-2009   #1 (permalink)
Young


 
 

Changin container of a control

I loaded a button at run time and this button correspond to a text box.

The textbox can be on a form or a panel control.

In VB6, I can do this to make the button's container the same as the textbox
without worrying about whether the textbox is on a panel or a form:

mybutton.container = mytxt.container.

Can someone please tell me how I can do the same in VB.Net



My System SpecsSystem Spec
Old 06-10-2009   #2 (permalink)
Dale Atkin


 
 

Re: Changin container of a control

> In VB6, I can do this to make the button's container the same as the
Quote:

> textbox without worrying about whether the textbox is on a panel or a
> form:
>
> mybutton.container = mytxt.container.
>
> Can someone please tell me how I can do the same in VB.Net
Have you looked at 'getcontainercontrol'?

Dale

My System SpecsSystem Spec
Old 06-11-2009   #3 (permalink)
Jack Jackson


 
 

Re: Changin container of a control

On Thu, 4 Jun 2009 17:56:23 +1000, "Young" <young10000@xxxxxx>
wrote:
Quote:

>I loaded a button at run time and this button correspond to a text box.
>
>The textbox can be on a form or a panel control.
>
>In VB6, I can do this to make the button's container the same as the textbox
>without worrying about whether the textbox is on a panel or a form:
>
>mybutton.container = mytxt.container.
>
>Can someone please tell me how I can do the same in VB.Net
>
mybutton.Parent = mytxt.Parent
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
vista help regarding changin the display picture of my mp3 file and album folder Media Center
Difficulty in changin frm IDE to AHCI mode? Vista installation & setup
-container in Copy-Item PowerShell
WMPlayer open a song slowly after 5 sec with status "Media changin Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46