Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms detect function ??
Message
 
To
10/01/1999 21:32:53
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174553
Message ID:
00174575
Views:
22
I think that your problem comes from the fact you pass the form's name to the sub instead of a reference to the object. Simply write :
Sub FormCentr(Frm as Form) 'Frm is an object variable, passed by refernce
 With Frm
   .Top = X
   .Left = Y
 End With
End Sub
And call FormCentr Me 'Or any other form instance

Hope it helps
VB Developer
Servilog Concept
jmb@octalfrance.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform