Foxtable(狐表)用户栏目专家坐堂 → 为什么anchor不起作用


  共有2087人关注过本帖树形打印复制链接

主题:为什么anchor不起作用

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


加好友 发短信
等级:四尾狐 帖子:876 积分:5929 威望:0 精华:0 注册:2014/8/3 12:15:00
为什么anchor不起作用  发帖心情 Post By:2014/11/28 22:21: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

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


 


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


加好友 发短信
等级:四尾狐 帖子:876 积分:5929 威望:0 精华:0 注册:2014/8/3 12:15:00
  发帖心情 Post By:2014/11/28 22:24:00 [只看该作者]

ctl.right执行后也提示没有right这个属性

 回到顶部