如何调整表单大小 [英] How to resize a form

查看:117
本文介绍了如何调整表单大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VB 6:frame1.width = form1.width - 200

VB .NET:?


有人可以帮助解决这一简单的代码行...谢谢..

解决方案

大小属性与VB6相同。

此外,还有一个"大小"你可以同时设置所有大小

属性的属性。


你的代码不是这样工作的吗?


-Jay

" tim" < ti*@hello.com> escreveu na mensagem

新闻:WC *********** @ fe2.columbus.rr.com ...

VB 6:frame1.width = form1.width - 200
VB .NET:?

有人可以帮助解决这个简单的代码行...谢谢..



不,它似乎没有用。 form1似乎没有

''width''的属性。看起来它位于size属性之下,但不确定代码的语法是什么




Jay <>在消息新闻中写道:eS ************** @ TK2MSFTNGP09.phx.gbl ...

大小属性与VB6相同。
另外,还有尺寸。你可以一次性设置所有大小的属性。

你的代码不是这样工作的吗?

-Jay

蒂姆 < ti*@hello.com> escreveu na mensagem
新闻:WC *********** @ fe2.columbus.rr.com ...

VB 6:frame1.width = form1.width - 200
VB .NET:?

有人可以帮助解决这个简单的代码...谢谢..



您的表单是否已实例化?

VB.NET没有默认实例像VB6这样的对象......

" tim" < ti*@hello.com> escreveu na mensagem

新闻:36 ************* @ fe2.columbus.rr.com ...

不,它没有似乎工作。 form1似乎没有
''width''的属性。看起来它位于size属性之下,但不确定代码的语法是什么。

Jay <>在消息新闻中写道:eS ************** @ TK2MSFTNGP09.phx.gbl ...

大小属性与VB6相同。
另外,还有尺寸。你可以一次性设置所有大小的属性。

你的代码不是这样工作的吗?

-Jay

蒂姆 < ti*@hello.com> escreveu na mensagem
新闻:WC *********** @ fe2.columbus.rr.com ...

VB 6:frame1.width = form1.width - 200
VB .NET:?

有人可以帮助解决这个简单的代码...谢谢..




VB 6: frame1.width = form1.width - 200
VB .NET: ?

Can someone please help with this simple line of code...thanks..

解决方案

The size properties are the same as VB6.
Additionally, there''s a "size" property that you can set all the size
attributes at once.

Isn''t your code working this way?

-Jay
"tim" <ti*@hello.com> escreveu na mensagem
news:WC***********@fe2.columbus.rr.com...

VB 6: frame1.width = form1.width - 200
VB .NET: ?

Can someone please help with this simple line of code...thanks..



No, it doesn''t seem to work. form1 doesn''t seem to have a property of
''width''. Looks like it''s underneath the size property, but not sure what
the syntax of the code is.

"Jay" <.> wrote in message news:eS**************@TK2MSFTNGP09.phx.gbl...

The size properties are the same as VB6.
Additionally, there''s a "size" property that you can set all the size
attributes at once.

Isn''t your code working this way?

-Jay
"tim" <ti*@hello.com> escreveu na mensagem
news:WC***********@fe2.columbus.rr.com...

VB 6: frame1.width = form1.width - 200
VB .NET: ?

Can someone please help with this simple line of code...thanks..




Is your form instantiated?
VB.NET doesn''t have that "default instance" of objects like VB6...
"tim" <ti*@hello.com> escreveu na mensagem
news:36*************@fe2.columbus.rr.com...

No, it doesn''t seem to work. form1 doesn''t seem to have a property of
''width''. Looks like it''s underneath the size property, but not sure what
the syntax of the code is.

"Jay" <.> wrote in message news:eS**************@TK2MSFTNGP09.phx.gbl...

The size properties are the same as VB6.
Additionally, there''s a "size" property that you can set all the size
attributes at once.

Isn''t your code working this way?

-Jay
"tim" <ti*@hello.com> escreveu na mensagem
news:WC***********@fe2.columbus.rr.com...

VB 6: frame1.width = form1.width - 200
VB .NET: ?

Can someone please help with this simple line of code...thanks..





这篇关于如何调整表单大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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