Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms detect function ??
Message
From
11/01/1999 17:19:59
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174553
Message ID:
00174868
Views:
21
>>i have my project with 3 forms in it
>>
>>and I am trying to center them in the screen thru a function
>>say formcntr(formname)
>>
>>I created the function in a separate module and call it PUBLIC
>>thinking that the only thing you need is the active form "name"
>>and do :
>>--- module routine
>>function formcntr(formx)
>>forx.top = some value
>>forx.left = some value
>>----- end
>>and then you will be able to acces Its prop. but then the Debug comes
>>backt with Mismatch data type errors..
>>
>>Is is possible to do this or I am better of coding the center routines
>>on the Load events for each of the forms??
>>
>>Mark Oliva
>
>I know it doesn't answer your question but why don't you use the StartUpPosition property of the form to center your forms? You can center it on the screen or on the owner!


Thanks for your suggestion, I did know about how to use it there,, and also
because I want to create a procedural way of centering any N-number of forms
and just put one line code in the LoadEvent and to be as generic as possible
and also becouse I am a newbie with VB 6.0

mark Oliva
Previous
Reply
Map
View

Click here to load this message in the networking platform