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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form.AcriveForm Doesn't work Like I Expected

Status
Not open for further replies.

SeanGriffin

Programmer
Feb 23, 2001
99
US
I have an application with a form. On this form I have a button. In the Button's Click event I check Form.ActiveForm and it is null.

How is Form.ActiveForm null in this instance. I know I have a form because thats where button I clicked is.

-Sean
 
You just want to get the parent of the button you pressed?

button1.ParentForm;

 
No I'm actualy aiming to use this elsewhere to get the Active form. This was the simple test I tried and it failed so I decided not to make it more complicated.

-Sean
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top