Please tell me what wrong in that code.
I had many forms in MDI Child, which i want to adjust height and widht by the use of function. I had made the following function and put in in moudule at start
Now at the child form, the form name is crsale.frm i had called the funtion by
I am getting error
Run time error 13 , Type mismatch
I had many forms in MDI Child, which i want to adjust height and widht by the use of function. I had made the following function and put in in moudule at start
Code:
Public formname1 As Form
Code:
Public Function bigformalgfun(formname1 As Form) formname1.Left = Screen.Width - (Screen.Width - formname1.Width) formname1.Top = Screen.Height - (Screen.Height - formname1.Height) - ((Screen.Height - formname1.Height) / 3) formname1.Height = 6750 formname1.Width = 10200 End Function
Code:
Private Sub Form_Activate() bigformalgfun (crsale) End Sub
Run time error 13 , Type mismatch
Comment