|
-
Aug 22nd, 2001, 01:17 PM
#1
Thread Starter
Member
Really stupid question.
Since I am new, I should be entitled to some dumb questions.
I don't want my user to be able to resize the form. In looking at past post, I found some code to do that but I saw a bunch of references to something called "subclassing".
What is that? Why would you want or not want to use it?
Thanks for your patience.
-
Aug 22nd, 2001, 01:19 PM
#2
Member
Just change the Form's borderstyle to something other than the current one.
-
Aug 22nd, 2001, 01:22 PM
#3
-
Aug 22nd, 2001, 01:23 PM
#4
Member
Re: Really stupid question.
Originally posted by BidForYourBiz
I don't want my user to be able to resize the form.
That's all he wants, Serge, don't go nuts with the API.
-
Aug 22nd, 2001, 01:33 PM
#5
Thread Starter
Member
Acually guys, all I wanted to know was what subclassing was and when you would want to use it vs not wanting to use it. All the other stuff it great. Thanks a bunch.
-
Aug 22nd, 2001, 01:34 PM
#6
Member
-
Aug 22nd, 2001, 01:55 PM
#7
Subclassing gives VB more power and control over what you're doing. For example. It can give you a change to intercept messages, and not have VB process them, or it can give you a chance to gain access to events that you normally don't have access to in VB.
-
Aug 22nd, 2001, 01:57 PM
#8
Frenzied Member
you use it when you need information from other places (other windows, windows itself.....) and you don't want to use it when the function is easier (usually not faster though :'(...) in VB
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Aug 22nd, 2001, 02:20 PM
#9
Member
Simply, simply way
in the for resize event said that ANy of the control in the form MUST have only one size.
-------------------------------------------------------------------------------------
Exampol
private sub form_resize()
form2.whith = 5000
form2.height = 1500 ' the form cant be anymore smaller or bigher
' then the controls
text1.top= 350
text1.left= 350
'text1.whith = 5000
text1.height = 5000
text2.top = text1.top + text1.height
'and so one
' remember for each control to specify the top and the left from the left and top of the form, plus the height and whit from the other control. like: text1.top + text1.height
end sub
you jave to play a litle whit the "hieght" and "whith" value, renmember the title bar hieght value is around 350. This is the real top of the form's working area.
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
|