Solved

Large Fonts

Posted on 2002-04-16
5
208 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 100

Expert Comment

by:mlmcc
Comment Utility
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 100

Expert Comment

by:mlmcc
Comment Utility
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
Comment Utility
That does not seem to work, I still get the same behaviour.

Zaphod.
0
 
LVL 1

Accepted Solution

by:
olx earned 50 total points
Comment Utility

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
Comment Utility
Perfect, thanks.

Zaphod.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now