多种形式的访问 [英] multiple form access

查看:62
本文介绍了多种形式的访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在使用多表单访问时遇到了一些问题.我正在使用可视c ++ Windows窗体来创建我的应用程序.我有一个form1(初始形式)和login(第二个形式,只是一个登录检查).在填写表格中,用户需要输入他的级别(0-4)和密码.如果他们匹配,那么我读了一个文件.该文件只能在form1下更改,而不能在登录表单内更改.因此,基于文件和用户级别的值,我启用了选项卡页面视图和控件.这使我具有多级安全性.但是在我的主窗体(form1)中也有一个注销按钮.当我单击此控件时,控件将返回到登录表单.因此,如果登录成功,我将再次读取该文件,检查优先级是否已更改.如果更改了,那么我需要在主屏幕(form1)上显示/隐藏适当的选项卡.如何在loginform中访问form1的选项卡.
谢谢,

hello i  am facing some problems with multiple form access. I am using visual c++ windows form to create my app. I have a form1(initial form) and login(second form which is just a login check). In the loing form the user needs to enter his level(0-4) and password. if they match then i read a file. This file can be changed only under form1 and not inside login form. So based on the values on the file and user level i enable the tab page view and controls. This allows me to have multi level security. But there is also a logoff button in my main form(form1). when i click this the control comes back to login form.So if login is successful i again read the file check whether priorities have changed. If changed then i need to show/hide appropriate tabs on my main screen(form1). How do i access tabs of my form1 in loginform. Plesae advice me of the procedure.
Thanks,

推荐答案

MSDN 论坛首页> Visual C ++ > Visual C ++语言位于此处: http: //social.msdn.microsoft.com/Forums/zh-CN/vclanguage/threads/.

Thank you for your post!  I would suggest posting your question in one of the MSDN > Forums Home > Visual C++ > Visual C++ Language located here:  http://social.msdn.microsoft.com/Forums/en-US/vclanguage/threads/.


这篇关于多种形式的访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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