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