|
-
Dec 18th, 2002, 10:54 AM
#1
Thread Starter
Junior Member
edit a usercontrol at design time
hi evrybody,
i'm designing an ACTIVEX control for containing navigation buttons for a database recordset.
i want it to be able to be resized(the nagivation buttons should be moved anywhere i like on the control when i create an instance of the usercontrol on the form)
how to do that ?
thanx in adv.
vhgopal.
-
Dec 18th, 2002, 04:54 PM
#2
New Member
Resize a control
You might try:
Private Sub UserControl_Resize()
With txtTextBox
.Height = UserControl.ScaleHeight
.Top = UserControl.ScaleTop
.Left = UserControl.ScaleLeft
.Width = UserControl.ScaleWidth
End With
End Sub
Here, we're resizing the dimensions of the text box depending on various properties of the UserControl object.
The UserControl object is there to tell you how your user is playing with the control. So if they resize it, the Resize event fires and you grab the new ScaleHeight, etc. properties, reorganising your controls as such.
However if we were dealing with more complex items and all the controls within it you'd need to get much more technical. Trust me, resizing work can get pretty complicated. So you might want to think about purchasing one of the many resize controls available that simply does it all for you.
charcoal 
-
Dec 18th, 2002, 10:35 PM
#3
Thread Starter
Junior Member
thanx but
sorry for my poor english .. seems the problem is not understood
when i create an instance of my ACTIVEX control on a form, how can i just move(drag) the buttons in the activex control to the positions i like(arrange them like an intrinsic control on a form)
hope now it is understood
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|