Groups | Blog | Home
all groups > vb.net controls > november 2005 >

vb.net controls : UserControls Problem .NET 2005



João Santa Bárbara
11/8/2005 12:00:00 AM
Hi all.
i have a strange problem
i have done a User Control, in wich i have placed a few buttons inside it
and place it in an form.
in the previous version of .NET (2003), i have try to access the controls
property of my usercontrol and there were no controls inside it
but now in .NET 2005 i have access the same controls property and it have
there all buttons that i have put inside.

this is very strange, because anyone can have access to my control buttons.

is there any workarround ? for this, or its a microsoft bug ?

thks
JSB


Ken Halter
11/10/2005 11:16:42 AM
[quoted text, click to view]

I have no idea if this is the issue but.... when using that "upgrade wizard"
on a VB6 project, all controls 'Modifiers' properties are set = Public. Make
sure they're set to Private.

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..

AddThis Social Bookmark Button