-
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.
-
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).]
-
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?
-
Make sure the MDIForm has the ScrollBars Property set to True.
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
it is set to "true".
The other forms don't have the scroll bar property though.
-
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).]
-
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?
-
Call Shell(App.Path & "Whatever.hlp", vbNormalNoFocus)
-
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?