Dave Kreskowiak wrote:
replace the standard OnPaint drawing code with your own
hi, I have added this to the properties grid onpaint event Protected Overrides Sub OnPaint(ByVal pevent As PaintEventArgs) ' MyBase.OnPaint(pevent) Dim g As Graphics = pevent.Graphics Dim gradBrush As System.Drawing.Drawing2D.LinearGradientBrush gradBrush = New System.Drawing.Drawing2D.LinearGradientBrush(New Point(0, 0), New Point(Me.Width, Me.Height), Color.Green, Color.Blue) ' g.FillRectangle(gradBrush, 0, 0, Me.Width, Me.Height) g.FillRectangle(gradBrush, pevent.ClipRectangle) End Sub and I expected the control contents to vanish and be replaced with a gradient colour but nothing happened. does this mean each cell has its own onpaint function?? if so how do I find them ???
Dave Kreskowiak wrote:
Is it worth it?
yes if I can - I am trying to have a consistant look n feel in my gui app. of course scroll bars seem to be a problem because I cant find where to cheange them either. so yes any help would be appreciated Martin thanks Martin
life is a bowl of cherries go on take a byte