Results 1 to 3 of 3

Thread: Activex control resize Problem

  1. #1

    Thread Starter
    Junior Member agpasam's Avatar
    Join Date
    Nov 2006
    Posts
    31

    Exclamation Activex control resize Problem

    Hi
    i have created activex control like textbox.
    But when use that control in my application
    i cant resize
    If anyone knows help me
    I have written the code in usercontrol resize event

    UserControl.Text1.Move 0, 0, UserControl.ScaleWidth, UserControl.ScaleHeight


    But its not working

  2. #2
    Member
    Join Date
    Oct 2006
    Location
    Noida,India
    Posts
    49

    Re: Activex control resize Problem

    USE Something like

    UserControl.Text1.Width = UserControl.ScaleWidth
    UserControl.Text1.Height = UserControl.ScaleHeight
    IN Vb6.0

    I guess in Vb.net it would be

    UserControl.Text1.Size(UserControl.ScaleWidth,UserControl.ScaleHeight)
    Rajneesh

  3. #3
    Addicted Member
    Join Date
    Nov 2006
    Posts
    132

    Re: Activex control resize Problem

    Quote Originally Posted by agpasam
    Hi
    i have created activex control like textbox.
    But when use that control in my application
    i cant resize
    If anyone knows help me
    I have written the code in usercontrol resize event

    UserControl.Text1.Move 0, 0, UserControl.ScaleWidth, UserControl.ScaleHeight


    But its not working
    Your code should be working. The Move method does the same thing as setting the individual left, right, height and width properties. I did a simple test to verify you have coded this correctly, and it worked fine. There might be other code that is preventing the resizing from happening.
    Last edited by woodyz; Nov 17th, 2006 at 02:58 PM.

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