English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-03-22 17:42:06 · 3 answers · asked by tungtrangn 1 in Computers & Internet Programming & Design

I already got Scrollbar of DataGridView but the property BackColor is impossible to use. I have already tried to override functions OnPaint and WndProc but the color is flickering. Do you have any idea?

2007-03-22 19:37:06 · update #1

3 answers

The HorizontalScrollBar and VerticalScrollBar properties of the DataGridView return a ScrollBar control, which has all of the style properties exposed.

The member list for the ScrollBar control:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.scrollbar_members.aspx

The overview of the ScrollBar control:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.scrollbar.aspx

Also, here is an article on creating custom scroll bars: http://www.codeproject.com/cs/miscctrl/customscrollbar.asp

2007-03-22 18:18:28 · answer #1 · answered by Rex M 6 · 0 1

Datagridview Scrollbar

2016-12-16 20:30:34 · answer #2 · answered by ? 4 · 0 0

as far as i know, you cant change the scrollbar colors in .net... :P

2007-03-22 18:15:27 · answer #3 · answered by czimon 2 · 0 1

fedest.com, questions and answers