Results 1 to 9 of 9

Thread: Really stupid question.

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2001
    Location
    Phoenix, AZ
    Posts
    44

    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.

  2. #2
    Just change the Form's borderstyle to something other than the current one.

  3. #3
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Check out This Post

  4. #4

    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.

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2001
    Location
    Phoenix, AZ
    Posts
    44
    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.

  6. #6

  7. #7
    Megatron
    Guest
    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.

  8. #8
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  9. #9
    Member
    Join Date
    May 2001
    Posts
    52
    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
  •  



Click Here to Expand Forum to Full Width