Results 1 to 9 of 9

Thread: Scrolling Form down

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    37

    Post

    Hi guys,

    I have a long child form in an MDI Form. Since I wrote the program on my computer at a high resolution, I can see the whole child form.

    When I try it at school (where resolution is low 800x600 on a 15-inch), I can't see the whole form. Also for some reason I can't scroll down the form. NOTE: I can't change resolution at school computers.

    How do I make a scroll bar come automatically if the form isn't fitting the whole screen? BTW, the properties are set to resizable.

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    You could grap the screen resolution then simply resize the form on loading to the resolution (or a little less) using...

    Me.Height = Screen.Height / Screen.TwipsPerPixelY
    Me.Width = Screen.Width / Screen.TwipsPerPixelX

    Any good?

    Regards,

    ------------------
    - Chris
    [email protected]
    If it ain't broke - don't fix it


    [This message has been edited by chrisjk (edited 01-12-2000).]

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    37

    Post

    but this is an child form within a MDI form.

    How would I get a scrollbar to come automatically and let the user scroll down?

  4. #4
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Make sure the MDIForm has the ScrollBars Property set to True.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


  5. #5

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    37

    Post

    it is set to "true".

    The other forms don't have the scroll bar property though.

  6. #6
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    You must have a physco copy of VB coz I've done several VB apps, and if the screen res is too low, it simply shows scroll bars in the MDI form!

    Sorry, but other than the ScrollBars property and what I wrote previously, I can't think of anything else.

    Regards,

    ------------------
    - Chris
    [email protected]
    If it ain't broke - don't fix it


    [This message has been edited by chrisjk (edited 01-12-2000).]

  7. #7

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    37

    Post

    Aw man, I tried it on two different copies of VB.

    I have a few other questions also.

    1) I made a help (*.HLP) file using a program called WebTwin. I also added the HLP file to the Project Properties and a Menu called Help Topics. What code would I put in "mnuHelpTopics_Click()" to show the HLP file? I tried commonDialog.showHelp but that didn't work.
    So what do I do to make VB show that HELP file when the person clicks on the menu?


  8. #8
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    Call Shell(App.Path & "Whatever.hlp", vbNormalNoFocus)

  9. #9

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    37

    Post

    Thanks I got that working.

    Now what about doing copying and pasting? I know users can use shortcut but what about putting code in for it? Like in the Edit -> Copy menu. So when a user clicks on it it will do the copying and pasting? Remember this MDI FOrm has many textobxes and forms so how will the program know which textbox to copy/cut from?

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