Hi Sander,
only the UserControl object can be the container of user-added
controls. If you drag and drop a control on your bordless
picture box, the container will always be the usercontrol itself.
I remember having seen scrollable viewports in the
internet, but I do not know if they were third party components
or code examples.
The good news is that in your usercontrol you can access the added
controls through the ContainedControls property
m.
-----Original Message-----
From: svdkooij [mailto:svdkooij@c...]
Sent: Friday, September 21, 2001 1:24 AM
To: professional vb
Subject: [pro_vb] Help needed with usercontrols
Dear friends.
I'm having trouble with a usercontrol i'm working on.
It contains a picturebox that I use to be the border of the control. In
that box I placed an other picturebox (borderless) and a vertical scrolbar.
What should it do ?
Well, the height on the borderless picture box is a lot heiger that the
picturebox that is used as a border. With the scrollbar I can scroll the
borderless picturebox up and down. "a propertie sheet that saves spaces"
I place other objects such as labels and textboxs on the borderless
picturebox the they move with it.
Problem: When i place the label, textboxes, listboxes and so on on it and
run it, they won't move with it. However when i don't use the usercontrol
but just create it on a form it works fine.
Why isn't the usercontrol 'sticky' ? I did set the ControlContainer
prperty to True..
Plz help
Regards
Sander