vb.net中的表单righttolet属性更改 [英] Forms righttolet property change in vb.net

查看:106
本文介绍了vb.net中的表单righttolet属性更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在运行时更改vb.net表单的righttoleft属性.当我尝试代码me.righttoleft=ture时.但什么也没发生.当我在设计时执行此操作时,它工作正常.任何人都可以告诉我该怎么做...

I want to change righttoleft property of a vb.net form at runtime. When I try the code me.righttoleft=ture. but nothing happening. It is working fine when I do this at design time. Anybody can tell me how to do this...

推荐答案

您必须将RightToLeftProperty设置为Windows.Forms.RightToLeft.Yes,并将RightToLeftLayout设置为True. /> 第一个将使您的窗体从右到左读取(窗体标题),而第二个将使您窗体上的控件从左到右. RightToLeftLayout [ RightToLeft [
You have to set the RightToLeftProperty to Windows.Forms.RightToLeft.Yes and the RightToLeftLayout to True.
The first will make your Form read from right to left (the Form Caption) and the latter makes the Controls on your Form go from left to right. RightToLeftLayout[^] only works when RightToLeft[^] is Yes or through Inherited on Yes.


这篇关于vb.net中的表单righttolet属性更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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