Board index » Visual Studio » control encapsulation (like a subform)

control encapsulation (like a subform)

Visual Studio128
I would like to group a number of controls together, similar to an Access

subform or asp.net's web user control. Is there an approximation in vb6? I

know I can use frames to keep controls together, but is there a way to

encapuslate these controls? Perhaps using an ActiveX control?



thanks,



Craig


-
 

Re:control encapsulation (like a subform)



"Craig Buchanan" <someone@microsoft.com>wrote in message



Quote
I would like to group a number of controls together, similar to an Access

subform or asp.net's web user control. Is there an approximation in vb6?



Yes. It's called a--wait for it--UserControl!





-

Re:control encapsulation (like a subform)

Craig Buchanan wrote:

Quote
I would like to group a number of controls together, similar to an Access

subform or asp.net's web user control. Is there an approximation in vb6? I

know I can use frames to keep controls together, but is there a way to

encapuslate these controls? Perhaps using an ActiveX control?



You can add them to an AX Control but that'll require that you expose

all of the properties/events that your parent form will need.



If you're going to end up using a group of controls that need to look

and act the same way no matter what app you're writing, an AX control

sounds like your best bet.



--

Ken Halter - MS-MVP-VB - www.vbsight.com">www.vbsight.com

Please keep all discussions in the groups..

-