Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]面板颜色

1楼
苏州老街 发表于:2024/10/30 12:05:00
老师好,我想把动态生成的每个面板设置不同的颜色,谢谢老师。

Dim left1 As Integer = 50
Dim txt3 As WinForm.Panel
For i As Integer = 1 To 7                                                                                         
    txt3 = e.Form.CreateControl("数据" & i, ControlTypeEnum.Panel)
    txt3.Left = left1
    txt3.Top = 180
    txt3.width = 80
    txt3.height = 150    
    left1 += 120
    txt3.left = 30 + 112 * (i-1)
    'txt3.BorderStyle = BorderStyle.Fixed3D
    txt3.Anchor = Windows.Forms.AnchorStyles.Top Or Windows.Forms.AnchorStyles.Bottom                                                                                            
    e.Form.Controls("面板").AddControl(txt3) 
Next

2楼
有点蓝 发表于:2024/10/30 13:34:00
http://www.foxtable.com/webhelp/topics/0720.htm

Dim txt3 As WinForm.Panel
dim yse() as color = {color.red,coloe.blue,.................}
For i As Integer = 1 To 7                                                                                         
    txt3 = e.Form.CreateControl("数据" & i, ControlTypeEnum.Panel)
txt3.BackColor = yse(i-1)
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03125 s, 2 queries.