Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how can i make a form visible by the **Text name** not the name and thanks .
Posted
Comments
Sergey Alexandrovich Kryukov 17-Jun-15 18:20pm    
Not clear. What does it mean?
—SA
Member 11653274 17-Jun-15 18:23pm    
FormX.text = "TEST"

i want to show this form by calling it by "Test"
Sergey Alexandrovich Kryukov 17-Jun-15 21:54pm    
Don't do it! (Sigh...)
—SA
Philippe Mori 17-Jun-15 23:30pm    
It does not make any sense to do that.

This is a horrible method because what if the form you're looking for hasn't been created yet? How about a case where you've got multiple copies of the same form?

Seriously, if you think you have to do this at all you REALLY need to rethink your design.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 17-Jun-15 21:54pm    
Trivial, but... a 5.
—SA
You could iterate through the Application.OpenForms-Collection.
Now you could compare, which one has the desired name and make it Visible.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900