Foxtable(狐表)用户栏目专家坐堂 → 为什么Line的右端锚定属性不起作用


  共有3506人关注过本帖平板打印复制链接

主题:为什么Line的右端锚定属性不起作用

帅哥哟,离线,有人找我吗?
jiangxun
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:四尾狐 帖子:876 积分:5929 威望:0 精华:0 注册:2014/8/3 12:15:00
为什么Line的右端锚定属性不起作用  发帖心情 Post By:2014/11/30 17:52:00 [只看该作者]

 ctl = e.Form.CreateControl("LineRH" & e.form.controls("LineRH_number").text, ControlTypeEnum.line)
ctl.ThickNess = 4
ctl.LineColor = Color.SteelBlue
ctl.width = 60
ctl.Height = 4
ctl.anchor = Windows.Forms.AnchorStyles.Top Or Windows.Forms.AnchorStyles.Right

If ctl IsNot Nothing Then
Dim body As object = e.Form.controls("pnl_body")

ctl.Left = 100
ctl.Top = 100

body.AddControl(ctl)
End If

上述代码没有起到右端锚定的作用,请指教


 回到顶部
总数 26 1 2 3 下一页