Click here to Skip to main content
16,006,531 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to make viewback color of a propertygrid transparent Pin
MartyK200719-Jul-07 22:47
MartyK200719-Jul-07 22:47 
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 
MartyK2007 wrote:
er if you look at the snippet - thats exactly what I do
MyBase.OnPaintBackground(pevent)
Dim g As Graphics = pevent.Graphics


My bad! I misread your code! :->


MartyK2007 wrote:
dont really want to replace them as overwrite on top of them thats why I ran this first.
Interestingly enough if I dont run the base classes then I get the same result.


In order to get a transparent background, you have to replace the background drawing code. That's what your original post said you wanted.


MartyK2007 wrote:
My problem is that my color gradient only appears behind the propertygrid ( its its view back color area).Effectively this means a couple of lines at the top of the pG and a couple between the description block and the rest of the PG.


This would mean that the background of each "cell" in the PG is painted by the foreground OnPaint method. You would have to replace the standard OnPaint drawing code with your own. This means that you have to paint the entire control yourself! Is it worth it?


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: how to make viewback color of a propertygrid transparent Pin
MartyK200724-Jul-07 2:19
MartyK200724-Jul-07 2:19 
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 

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.