vb.net 使Combobox文字水平居中,并修改选中项的文字颜色
前提:Combobox的【DrawMode】属性设置为【OwnerDrawFixed】,DrawItem事件绑定下边的方法。Tips:可以多个Combobox同时绑定此方法哦~。Private Sub Combobox_DrawItem(sender As Object, e As DrawItemEventArgs) Handles Combobox1.DrawItem, Combobox2.DrawItem, Combobox3.DrawItem, Combobox4.DrawItem, Combo
原创
2021-06-25 16:34:06 ·
1086 阅读 ·
0 评论