|
-
Nov 7th, 2006, 03:21 AM
#1
Thread Starter
Junior Member
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
-
Nov 8th, 2006, 12:11 AM
#2
Member
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
-
Nov 17th, 2006, 10:20 AM
#3
Addicted Member
Re: Activex control resize Problem
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|