Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends I have to create dynamic menu from database(sql) and redirect to particular form in c#.net. I created dynamic menu and now i have to redirect to other form.

For example I have Login in Menu when i click Login,Login Form should display if login page does not available means it should simply say that the Form Login not available.
Posted
Comments
Sergey Alexandrovich Kryukov 1-Jul-11 2:43am    
What does it mean: "redirect" for a menu? Commands are send from one form and handled in another one? Is that right?
--SA

If I understand the problem correctly (please answer my question from my comment to the question), this is a popular question about form collaboration.

The most robust way is implementing relevant interface in form class.
Please see more detail in my past answer here:

How to copy all the items between listboxes in two forms[^].

—SA
 
Share this answer
 
Comments
Abhinav S 1-Jul-11 2:48am    
Best possible answer given the question. My 5.
Sergey Alexandrovich Kryukov 1-Jul-11 2:53am    
Thank you, Abhinav. I'm very glad my method I posted many times gets appreciation. It's really useful technique.
--SA
This[^] might help too.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Jul-11 2:55am    
Yes, this is another aspect of the problem, not from the title of the question but about the problem itself. Sure, a 5.
Teamwork! :-)
--SA
Abhinav S 1-Jul-11 3:03am    
Thank you :).

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