Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Large Fonts

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

856 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