2
A
回答
1
這是當鼠標在控制:
protected override void OnPaint(PaintEventArgs e) {
int top = 16;
foreach (ComboBoxState cbs in new ComboBoxState[] { ComboBoxState.Normal,
ComboBoxState.Disabled,
ComboBoxState.Pressed,
ComboBoxState.Hot}) {
Rectangle r = new Rectangle(16, top, 84, 21);
ComboBoxRenderer.DrawTextBox(e.Graphics, r, cbs);
TextRenderer.DrawText(e.Graphics, cbs.ToString(), this.Font, r, Color.Black);
ComboBoxRenderer.DrawDropDownButton(e.Graphics,
new Rectangle(16 + 84, top, 21, 21), cbs);
top += 23;
}
}
+0
啊,我明白了。完善。謝謝! – Athena
相關問題
- 1. ComboBox(evt.target) - 這是什麼意思?
- 2. 是什麼意思:是什麼意思?
- 3. %{}是什麼意思?
- 4. '#'是什麼意思?
- 5. 「?」是什麼意思?
- 6. #{...}是什麼意思?
- 7. || =是什麼意思?
- 8. @是什麼意思
- 9. $$ $$是什麼意思?
- 10. `/ * @`是什麼意思?
- 11. 「=」是什麼意思
- 12. + =是什麼意思?
- 13. {..} [..]是什麼意思?
- 14. 什麼是:!:意思?
- 15. @ []是什麼意思?
- 16. 什麼是「||」意思?
- 17. /([^.]*)\.(.*)/是什麼意思?
- 18. &**是什麼意思?
- 19. @(...)是什麼意思?
- 20. &@是什麼意思?
- 21. 「\\。\」,「\ ?? \」,「\\?\」,「\\」是什麼意思?
- 22. &=是什麼意思?
- 23. {%=%}是什麼意思?
- 24. 是什麼意思?
- 25. %%是什麼意思?
- 26. {}是什麼意思?
- 27. 「*&」是什麼意思?
- 28. 「_」是什麼意思?
- 29. 是什麼意思?:是的
- 30. 什麼是「models.Model」意思是
[VisualStyleElement.ComboBox.DropDownButton.Hot性](https://msdn.microsoft.com/en-us/library /system.windows.forms.visualstyles.visualstyleelement.combobox.dropdownbutton.hot(v=vs.110).aspx) – Fabio
您可以關注此鏈接:http://stackoverflow.com/questions/36287605/hot-tracking-list -item-selection-in-a-combo-box希望它會有幫助。 –
但是這個「熱門國家」是什麼?它是什麼樣子的? – Athena