windowState属性中的错误? [英] a bug in the windowState property?

查看:67
本文介绍了windowState属性中的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在VB.NET(VS2003)中创建一个应用程序。我希望表格始终是最大化的。
。我将windowState设置为Maximized我禁用了

最大化按钮。


当我运行程序时,主窗体覆盖了任务栏。但是,如果我

启用最大化按钮(其余代码和属性是

相同),它在任务栏上方很合适。


以前有人听过这个吗?


艾哈迈德

Hi guys,

I am creating an application in the VB.NET (VS2003). I want the form to be
maximized all the time. I set the windowState to "Maximized" and I disabled
the Maximize button.

When I run the program, the main form covers the taskbar. however, if I
enable the Maximize button (the rest of the code and the properties are the
same), it fits nice just above the taskbar.

anyone hear about this before?

Ahmed

推荐答案

工作我发现在load事件中将maximizebox设置为false

" rs" < aa@d.com>在消息新闻中写道:oq ******************** @ rogers.com ...
The work around I found is to set the maximizebox to false in the load event
"rs" <aa@d.com> wrote in message news:oq********************@rogers.com...
大家好,

当我运行程序时,主窗体覆盖任务栏。但是,如果我启用最大化按钮(代码的其余部分和属性相同),它在任务栏上方很合适。

任何人都听说过这个之前?

艾哈迈德
Hi guys,

I am creating an application in the VB.NET (VS2003). I want the form to be
maximized all the time. I set the windowState to "Maximized" and I
disabled the Maximize button.

When I run the program, the main form covers the taskbar. however, if I
enable the Maximize button (the rest of the code and the properties are
the same), it fits nice just above the taskbar.

anyone hear about this before?

Ahmed



艾哈迈德,


我无法模拟你的问题你是用一个全新的项目做的吗?


Cor
Ahmed,

I can not simulate your problem, did you do it with a complete new project?

Cor


" rs" < aa@d.com> schrieb:
"rs" <aa@d.com> schrieb:
我正在VB.NET(VS2003)中创建一个应用程序。我希望表格始终最大化。我将windowState设置为Maximized并且我已禁用最大化按钮。

当我运行程序时,主窗体覆盖任务栏。
I am creating an application in the VB.NET (VS2003). I want the form to be
maximized all the time. I set the windowState to "Maximized" and I
disabled the Maximize button.

When I run the program, the main form covers the taskbar.




你能不能发布你的任务栏设置(自动隐藏,总是在前台,

....)?


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://dotnet.mvps .org / dotnet / faqs />



Can you post your taskbar settings (auto-hiding, always in the foreground,
....)?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


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

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