Solved

Large Fonts

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

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 50 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Copy a row 12 69
Passing a Text Box name to a Sub 6 102
I need help embedding an image as HTML in my vb.net application 3 79
How to read File Date Created using VB6 8 61
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

713 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