|
-
Nov 25th, 2002, 11:25 AM
#1
Thread Starter
Lively Member
how to make ocx not resizable?
How can i make my active x control not sizeable at design-time? By 'design time' i don't mean when I'm designing the control, but after the control is compiled and being used in another program (the other program's design time). Like how the timer and common dialog box control are not sizable.
Thanks
Darrin@CB69
-----------------------------------------------
Arrogance kills brain cells
-----------------------------------------------
Private Sub Sandwich (big As Byte)
On Error GoTo Pub
-
Nov 25th, 2002, 03:54 PM
#2
New Member
Yes, I was asking the same thing, but nobody replyed. Is must be verry hard to do that.
http://www.vbforums.com/showthread.p...hreadid=214263
-
Nov 25th, 2002, 11:00 PM
#3
VB Code:
Private Const STD_WIDTH = 200
Private Const STD_HEIGHT = STD_WIDTH
Private Sub Usercontrol_Resize()
With Usercontrol
.Width = STD_WIDTH
.Height = STD_HEIGHT
End With
End Sub
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 26th, 2002, 08:29 AM
#4
New Member
Yes, but how can you do that in Visual C++?
-
Dec 5th, 2002, 03:31 PM
#5
Thread Starter
Lively Member
crptcblade, yeah, i thought about that, but that's not what i want. Using your code, the user still has the ability to drag the edges out, it just snaps back when they let their finger off the mouse. Sorry bud, but that's ugly. I don't even want that little double-ended arrow to appear when the cursor hovers over the boarder. Like I said "Like how the timer and common dialog box control are not sizable." (i.e., no little resizing cursor). Thanks for the reply, any more ideas?
Darrin@CB69
-----------------------------------------------
Arrogance kills brain cells
-----------------------------------------------
Private Sub Sandwich (big As Byte)
On Error GoTo Pub
-
Dec 15th, 2002, 02:48 AM
#6
Fanatic Member
Originally posted by cargobay69
Like I said "Like how the timer and common dialog box control are not sizable." (i.e., no little resizing cursor). Thanks for the reply, any more ideas?
Are you sure? I just placed a timer and a common dialog box on my form and I have little arrows to resize. Of course, it snaps back to the original size afterward.
Anyhow, I usually use the same code that crptcblade post. I figure that once it is on a form, it just snaps back to the set size. By the way, I think that is how the timer and common dialog box work too because I can resize those controls but it just snaps back to the original size.
Bird of Prey
Mr. Bald Eagle.
[img][/img]
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
|