动态菜单链接重定向到特定表单 [英] Dynamic Menu Link Redirect to particular Form

查看:80
本文介绍了动态菜单链接重定向到特定表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好朋友,我必须从database(sql)创建动态菜单,然后重定向到c#.net中的特定表单.我创建了动态菜单,现在必须重定向到其他表单.

例如,当我单击登录"时,我在菜单"中有登录",如果登录页面不可用,则应显示登录表单",这意味着它应该简单地说表单登录"不可用.

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.

推荐答案

如果我正确理解了问题(请在评论中回答我的问题),这是关于表单协作的流行问题.

最健壮的方法是在表单类中实现相关的接口.
请在这里查看我过去的回答的更多详细信息:
如何在列表框之间复制所有项目两种形式 [ ^ ].

-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


[ ^ ]可能也有帮助.
This[^] might help too.


这篇关于动态菜单链接重定向到特定表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆