Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Basic 3 problems!!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
The first problem:
Where can i get my hands on "ole2ui.dll"
The SetupWizard program is asking for the file but i
don't have got it. Anyone who knows where i can get the
file?

The second problem:
How do i do when i want the "form" in the center of
the screen when i run the program?
Which code should i use?

Thanks to the one who can help me!
 
Question 1: Try searching you "C" drive for the file
Question 2: Use this code when in the Form Load event

Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2

or but the following function in a code module

Sub CenterForm(frm As Form)

frm.Left = (Screen.Width - frm.Width) / 2
frm.Top = (Screen.Height - frm.Height) / 2
End Sub

and call it from the Form_Load event like this

CenterForm Me [sig]<p>Bruce Voelp<br><a href=mailto:bvoelp@if.rmci.net>bvoelp@if.rmci.net</a><br><a href= > </a><br>Earn AS in 1976 and BS in 1986. Learn to talk with computers when the only interface was 80 column punch cards, and paper tape.[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top