25-02-21, 11:02 AM
(13-02-21, 06:27 PM)كريم جودي كتب : السلام عليكم انا استعمل Visual Studio 2013تحتاج ترسم كل حاجه بالكود وده ابسط مثال
عند استعمال الخاصية comboBox2.DrawMode = DrawMode.OwnerDrawVariable
الخط لايظهر لم افهم السبب
PHP كود :
Private Sub comboBox2_DrawItem(sender As Object, e As DrawItemEventArgs) Handles comboBox2.DrawItem
e.DrawBackground()
If e.State And DrawItemState.Selected Then e.Graphics.FillRectangle(Brushes.Yellow, e.Bounds)
e.Graphics.DrawString(comboBox2.Items(e.Index), comboBox2.Font, New SolidBrush(comboBox2.ForeColor), e.Bounds)
e.DrawFocusRectangle()
End Sub
