Click here to Skip to main content
15,902,635 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to make viewback color of a propertygrid transparent Pin
Dave Kreskowiak20-Jul-07 7:26
mveDave Kreskowiak20-Jul-07 7:26 
GeneralRe: how to make viewback color of a propertygrid transparent Pin
MartyK200722-Jul-07 21:09
MartyK200722-Jul-07 21:09 
GeneralRe: how to make viewback color of a propertygrid transparent Pin
Dave Kreskowiak23-Jul-07 3:29
mveDave Kreskowiak23-Jul-07 3:29 
GeneralRe: how to make viewback color of a propertygrid transparent Pin
MartyK200723-Jul-07 4:00
MartyK200723-Jul-07 4:00 
GeneralRe: how to make viewback color of a propertygrid transparent Pin
Dave Kreskowiak23-Jul-07 12:04
mveDave Kreskowiak23-Jul-07 12:04 
GeneralRe: how to make viewback color of a propertygrid transparent Pin
MartyK200723-Jul-07 21:17
MartyK200723-Jul-07 21:17 
GeneralRe: how to make viewback color of a propertygrid transparent Pin
Dave Kreskowiak24-Jul-07 1:48
mveDave Kreskowiak24-Jul-07 1:48 
GeneralRe: how to make viewback color of a propertygrid transparent Pin
MartyK200724-Jul-07 2:19
MartyK200724-Jul-07 2:19 
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)<br />
            '     MyBase.OnPaint(pevent)<br />
            Dim g As Graphics = pevent.Graphics<br />
            Dim gradBrush As System.Drawing.Drawing2D.LinearGradientBrush<br />
            gradBrush = New System.Drawing.Drawing2D.LinearGradientBrush(New Point(0, 0), New Point(Me.Width, Me.Height), Color.Green, Color.Blue)<br />
            '            g.FillRectangle(gradBrush, 0, 0, Me.Width, Me.Height)<br />
            g.FillRectangle(gradBrush, pevent.ClipRectangle)<br />
<br />
        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

QuestionConnectionStrings & Using UNC Paths Offline Pin
NekoGato19-Jul-07 21:55
NekoGato19-Jul-07 21:55 
AnswerRe: ConnectionStrings & Using UNC Paths Offline Pin
Colin Angus Mackay19-Jul-07 23:53
Colin Angus Mackay19-Jul-07 23:53 
QuestionRichtextbox MaxLength Pin
NANCO19-Jul-07 21:43
NANCO19-Jul-07 21:43 
AnswerRe: Richtextbox MaxLength Pin
Colin Angus Mackay19-Jul-07 23:50
Colin Angus Mackay19-Jul-07 23:50 
AnswerRe: Richtextbox MaxLength Pin
cutequencher20-Jul-07 5:13
cutequencher20-Jul-07 5:13 
QuestionHoe to connect crystal report with db dynamically? Pin
help as an alias19-Jul-07 21:04
help as an alias19-Jul-07 21:04 
AnswerRe: Hoe to connect crystal report with db dynamically? Pin
Rupesh Kumar Swami20-Jul-07 0:44
Rupesh Kumar Swami20-Jul-07 0:44 
GeneralRe: Hoe to connect crystal report with db dynamically? Pin
help as an alias20-Jul-07 0:53
help as an alias20-Jul-07 0:53 
GeneralRe: Hoe to connect crystal report with db dynamically? Pin
Rupesh Kumar Swami20-Jul-07 1:15
Rupesh Kumar Swami20-Jul-07 1:15 
GeneralRe: Hoe to connect crystal report with db dynamically? Pin
help as an alias20-Jul-07 2:26
help as an alias20-Jul-07 2:26 
QuestionLoad MyApplication on Windows Startup Pin
teebonaire19-Jul-07 19:32
teebonaire19-Jul-07 19:32 
AnswerRe: Load MyApplication on Windows Startup Pin
Ky Nam19-Jul-07 21:14
Ky Nam19-Jul-07 21:14 
GeneralRe: Load MyApplication on Windows Startup Pin
teebonaire19-Jul-07 21:35
teebonaire19-Jul-07 21:35 
GeneralRe: Load MyApplication on Windows Startup Pin
Ky Nam20-Jul-07 2:17
Ky Nam20-Jul-07 2:17 
GeneralRe: Load MyApplication on Windows Startup Pin
teebonaire22-Jul-07 14:27
teebonaire22-Jul-07 14:27 
QuestionFrameworks for .net Pin
ctlqt1219-Jul-07 18:46
ctlqt1219-Jul-07 18:46 
AnswerRe: Frameworks for .net Pin
Christian Graus19-Jul-07 19:07
protectorChristian Graus19-Jul-07 19:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.