Results 1 to 3 of 3

Thread: edit a usercontrol at design time

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2002
    Posts
    27

    Unhappy 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.

  2. #2
    New Member
    Join Date
    Dec 2002
    Location
    Phoenix
    Posts
    8

    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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2002
    Posts
    27

    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
  •  



Click Here to Expand Forum to Full Width