控件以相同的形式返回(与vb.net-vs2005相关) [英] control returns back on the same form (related to vb.net - vs2005)

查看:82
本文介绍了控件以相同的形式返回(与vb.net-vs2005相关)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下以初始屏幕形式在计时器中编写的代码
================================================== =====

following code written in timer in splash screen form
=======================================================

Me.Close()
LoginForm1.Show()


问题是我想使用me.close()语句关闭启动屏幕表单,并想激活(显示)登录表单.但两种形式都已关闭.请建议我该怎么办?


problem is that i want to close splash screen form using me.close() statement and want to activate (show) the login form. but both forms are shutting down. please suggest what should i do?

推荐答案

Me.Visible=false
LoginForm1.Show()
Me.Close()


此提示/技巧可能适用:

C#Apps中的多个后续主"表单 [ ^ ]

当然,您实际上必须在VB中创建一个文件和一个main方法,但是相同的想法应该适用.
This tip/trick might be applicable:

Multiple Subsequent "Main" Forms in C# Apps[^]

Of course, you have to actually create a file and a main method in VB, but the same idea should be applicable.


这篇关于控件以相同的形式返回(与vb.net-vs2005相关)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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