Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Large Fonts

Posted on 2002-04-16
5
Medium Priority
?
219 Views
Last Modified: 2013-12-02
Hi,

I have a splash screen form which has its picture property set to a bitmap. When the user has large fonts enabled, the form resizes so that it is larger than the bitmap. How can I prevent this from occurring, basically I want the form to stay the same size no matter what the user's font settings are.

Thanks,

Zaphod.
0
Comment
Question by:Z_Beeblebrox
  • 2
  • 2
5 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 6945691
You can sedt the form size in the load event.

Me.Left = 100
Me.Top = 100
Me.Width = 1000
Me.Height = 1000

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 6945700
The form will probably not be fully visible so you might need to add scroll bars to it so a user can scroll right and down.

mlmcc
0
 
LVL 7

Author Comment

by:Z_Beeblebrox
ID: 6945796
That does not seem to work, I still get the same behaviour.

Zaphod.
0
 
LVL 1

Accepted Solution

by:
olx earned 200 total points
ID: 6945843

if you want to autoresize the form according to the bitmap, put the bmp into a picturebox
picture1.autosize = true
picture1.left = 0
picture1.top = 0 'or 440, depending on form1.borderstyle
form1.width = picture1.width
form1.height = picture1.height

'- run it, write down the form1.width
'- run it with large fonts enabled and write down the 'form1.width

if form1.width = 1000 then 'form1.width in largefonts
   me.label1.top = ...
   me.label2.left = ...
else
   'small fonts
   me.label1.top = ...
   me.label2.top = ...
end if

0
 
LVL 7

Author Comment

by:Z_Beeblebrox
ID: 6945925
Perfect, thanks.

Zaphod.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question