Windows窗体旋转 [英] Windows form rotation

查看:212
本文介绍了Windows窗体旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在使用.NET创建的形式,它表现为纵向版式的对话框。

When you create a form in .Net it appears as a dialog box in a portrait layout.

没有人们通常喜欢侧身阅读,或倒置,但我有一个非常有效的理由,旋转形式。

No one normally likes to read sideways, or upside down, but I have a very valid reason to rotate the form.

任何人知道如何用C#做在Windows Vista?

Anyone knows how to do it on Windows Vista with C#?

推荐答案

是否必须在的WinForms?这是很容易在WPF做,使用旋转变换。不幸的是,WPF中的WindowsFormsHost整合不允许旋转变换。

Does it have to be in WinForms? This is very easy to do in WPF, using rotation transforms. Unfortunately, the WindowsFormsHost integration with WPF does not allow rotation transforms.

修改

我明白了,现在,有问题的形式是出海报的控制。写在WPF控件将不会解决问题。

I understand, now, that the form in question is out of the control of the poster. Writing the control in WPF won't fix the problem.

这篇关于Windows窗体旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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