|
-
Jan 11th, 2000, 11:59 AM
#1
Thread Starter
Member
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.
-
Jan 11th, 2000, 12:27 PM
#2
PowerPoster
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).]
-
Jan 12th, 2000, 05:38 AM
#3
Thread Starter
Member
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?
-
Jan 12th, 2000, 05:51 AM
#4
Make sure the MDIForm has the ScrollBars Property set to True.
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Jan 12th, 2000, 09:46 AM
#5
Thread Starter
Member
it is set to "true".
The other forms don't have the scroll bar property though.
-
Jan 12th, 2000, 11:04 AM
#6
PowerPoster
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).]
-
Jan 13th, 2000, 08:30 AM
#7
Thread Starter
Member
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?
-
Jan 13th, 2000, 09:06 AM
#8
Addicted Member
Call Shell(App.Path & "Whatever.hlp", vbNormalNoFocus)
-
Jan 13th, 2000, 10:44 AM
#9
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|