多个论坛? [英] Multiple Forums?

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

问题描述

你好,


我是VB.Net的新手,所以对我很轻松,现在问我的问题。我想要在我的应用程序中使用多个表单,但是我需要帮助这样做才能获得
。我知道我可以继承一个表格,但我相信我正在寻找

一些不同的东西。


例如:


Form1将显示radPick按钮和btnEnter。如果用户选择了

radPick并单击了btnEnter它将显示Form2。


Form2将显示一组新的控件供用户进行交互。 />

我该如何做到这一点?


这就是我所做的,但它不会起作用:


如果radPick.Checked = True那么

Form2.Show()

结束如果


-

我是Noob!

感谢您的帮助:)

解决方案

Hello Shane,


我也是新手,但我想我知道你问题的答案。


在Module范围内声明一个form2对象。


Dim frmTwo as new form2


并使用frmTwo.Show()而不是form2.show()

我今天刚刚使用类似的代码,我相信这是答案

你的问题。


Richard。


" Shane" <嘘*** @ discussions.microsoft.com>在留言中写道

news:97 ********************************** @ microsof t.com ...

你好,

我是VB.Net的新手,所以对我很轻松,现在回答我的问题。
我想在我的应用程序中有多个表单,但我需要帮助这个。我知道我可以继承一个表单,但我相信我正在寻找一些不同的东西。

示例:

Form1会显示一个radPick按钮,一个btnEnter。如果用户选择了
radPick并单击了btnEnter,它将显示Form2。

Form2将显示一组新的控件供用户进行交互。

如何我这样做了吗?

这就是我做的,但它不起作用:

如果radPick.Checked = True那么
Form2.Show()
结束如果

-
我是Noob!
感谢您的帮助:)


THANKS RICHARD :)


这真的很有帮助。


Richard Aubin写道:

你好Shane,

我也是新人,但我想我知道你问题的答案。

Dim frmTwo as new form2

并使用frmTwo.Show()而不是form2.show()
<我今天刚刚使用类似的代码,我相信这就是你问题的答案。

理查德。

谢恩 <嘘*** @ discussions.microsoft.com>在消息中写道
新闻:97 ********************************** @ microsof t.com。 ..

你好,

我是VB.Net的新手,所以对我很轻松,现在回答我的问题。


想在我的应用程序中有多个表单,但我需要帮助这个。我知道我可以继承一个表单,但我相信我正在寻找一些不同的东西。

示例:

Form1会显示一个radPick按钮,一个btnEnter。如果用户选择了
radPick并单击了btnEnter,它将显示Form2。

Form2将显示一组新的控件供用户进行交互。

如何我这样做了吗?

这就是我做的,但它不起作用:

如果radPick.Checked = True那么
Form2.Show()
结束如果

-
我是Noob!
感谢您的帮助:)



现在,如果我只能让我的控件出现?


" Shane"写道:

谢谢理查德:)

这真的很有帮助。

理查德奥宾写道:

你好Shane,

我也是新人,但我想我知道你问题的答案。

Dim frmTwo as new form2

并使用frmTwo.Show()而不是form2.show()
<我今天刚刚使用类似的代码,我相信这就是你问题的答案。

理查德。

谢恩 <嘘*** @ discussions.microsoft.com>在消息中写道
新闻:97 ********************************** @ microsof t.com。 ..

你好,

我是VB.Net的新手,所以对我很轻松,现在回答我的问题。


想在我的应用程序中有多个表单,但我需要帮助这个。我知道我可以继承一个表单,但我相信我正在寻找一些不同的东西。

示例:

Form1会显示一个radPick按钮,一个btnEnter。如果用户选择了
radPick并单击了btnEnter,它将显示Form2。

Form2将显示一组新的控件供用户进行交互。

如何我这样做了吗?

这就是我做的,但它不起作用:

如果radPick.Checked = True那么
Form2.Show()
结束如果

-
我是Noob!
感谢您的帮助:)




Hello,

I am new to VB.Net so go easy on me, now on to the question that I have. I
would like to have multiple forms in my application, but I need help doing
this. I know that I can inherit a form but, I believe I am looking for
something a little deferent.

Example:

Form1 would display a radPick button and a btnEnter. If the user selected
radPick and clicked btnEnter it would display Form2.

Form2 would display a new set of controls for the user to interact with.

How would I go about doing this?

This is what I did, but it would not work:

If radPick.Checked = True Then
Form2.Show()
End If

--
I am a Noob!
Thanks for the Help :)

解决方案

Hello Shane,

I''m new as well, but I think I know the answer to your problem.

Declare a form2 object in Module scope.

Dim frmTwo as new form2

And use frmTwo.Show() instead of form2.show()

I was just working with similar code today, and I believe that is the answer
to your question.

Richard.

"Shane" <Sh***@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...

Hello,

I am new to VB.Net so go easy on me, now on to the question that I have. I would like to have multiple forms in my application, but I need help doing
this. I know that I can inherit a form but, I believe I am looking for
something a little deferent.

Example:

Form1 would display a radPick button and a btnEnter. If the user selected
radPick and clicked btnEnter it would display Form2.

Form2 would display a new set of controls for the user to interact with.

How would I go about doing this?

This is what I did, but it would not work:

If radPick.Checked = True Then
Form2.Show()
End If

--
I am a Noob!
Thanks for the Help :)



THANKS RICHARD :)

That really helped out a lot.

"Richard Aubin" wrote:

Hello Shane,

I''m new as well, but I think I know the answer to your problem.

Declare a form2 object in Module scope.

Dim frmTwo as new form2

And use frmTwo.Show() instead of form2.show()

I was just working with similar code today, and I believe that is the answer
to your question.

Richard.

"Shane" <Sh***@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...

Hello,

I am new to VB.Net so go easy on me, now on to the question that I have.


I

would like to have multiple forms in my application, but I need help doing
this. I know that I can inherit a form but, I believe I am looking for
something a little deferent.

Example:

Form1 would display a radPick button and a btnEnter. If the user selected
radPick and clicked btnEnter it would display Form2.

Form2 would display a new set of controls for the user to interact with.

How would I go about doing this?

This is what I did, but it would not work:

If radPick.Checked = True Then
Form2.Show()
End If

--
I am a Noob!
Thanks for the Help :)




Now if I could only get my Controls to show up??

"Shane" wrote:

THANKS RICHARD :)

That really helped out a lot.

"Richard Aubin" wrote:

Hello Shane,

I''m new as well, but I think I know the answer to your problem.

Declare a form2 object in Module scope.

Dim frmTwo as new form2

And use frmTwo.Show() instead of form2.show()

I was just working with similar code today, and I believe that is the answer
to your question.

Richard.

"Shane" <Sh***@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...

Hello,

I am new to VB.Net so go easy on me, now on to the question that I have.


I

would like to have multiple forms in my application, but I need help doing
this. I know that I can inherit a form but, I believe I am looking for
something a little deferent.

Example:

Form1 would display a radPick button and a btnEnter. If the user selected
radPick and clicked btnEnter it would display Form2.

Form2 would display a new set of controls for the user to interact with.

How would I go about doing this?

This is what I did, but it would not work:

If radPick.Checked = True Then
Form2.Show()
End If

--
I am a Noob!
Thanks for the Help :)




这篇关于多个论坛?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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