Foxtable(狐表)用户栏目专家坐堂 → [求助]label添加控件字体颜色、背景颜色无效


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

主题:[求助]label添加控件字体颜色、背景颜色无效

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


加好友 发短信
等级:童狐 帖子:241 积分:2569 威望:0 精华:0 注册:2018/1/11 14:52:00
[求助]label添加控件字体颜色、背景颜色无效  发帖心情 Post By:2019/3/24 20:04:00 [只看该作者]

各位老师,按钮代码label添加控件字体颜色、背景颜色无效,不知道什么问题?

    Dim tx01 As WinForm.label
    tx01 = e.Form.CreateControl("label", ControlTypeEnum.label)
    tx01.text = "收单"    
    tx01.ForeColor = Color.black
    tx01.BackColor = Color.blue
    tx01.Left = 20
    tx01.Top = 3
    tx01.autosize = True
    e.Form.Controls("panel7").AddControl(tx01)

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2019/3/24 22:57:00 [只看该作者]

试试

 

Dim tx01 As WinForm.label
tx01 = e.Form.CreateControl("label", ControlTypeEnum.label)
tx01.text = "收单"

tx01.Left = 20
tx01.Top = 3
tx01.autosize = True
e.Form.Controls("panel7").AddControl(tx01)
tx01.ForeColor = Color.black
tx01.BackColor = Color.blue


 回到顶部