Click here to Skip to main content
16,006,768 members
Home / Discussions / C#
   

C#

 
GeneralGet image property Pin
codes/w8-Oct-04 1:44
codes/w8-Oct-04 1:44 
GeneralRe: Get image property Pin
Alex Korchemniy8-Oct-04 5:01
Alex Korchemniy8-Oct-04 5:01 
GeneralRe: Get image property Pin
codes/w8-Oct-04 19:08
codes/w8-Oct-04 19:08 
GeneralGraphics Color triangle Pin
new_eng_078-Oct-04 1:37
new_eng_078-Oct-04 1:37 
GeneralRe: Graphics Color triangle Pin
benjymous8-Oct-04 2:08
benjymous8-Oct-04 2:08 
GeneralRe: Graphics Color triangle Pin
new_eng_078-Oct-04 2:22
new_eng_078-Oct-04 2:22 
GeneralRe: Graphics Color triangle Pin
benjymous8-Oct-04 2:34
benjymous8-Oct-04 2:34 
GeneralRe: Graphics Color triangle Pin
Heath Stewart8-Oct-04 7:06
protectorHeath Stewart8-Oct-04 7:06 
A PictureBox is a lot of overhead (no need for an in-memory bitmap to get blitted to the on-screen bitmap) and it's often better to encapsulate your controls rather than using whatever you can find. This gives you much more control over what the control does.

To the original poster: In this case, the PathGradientBrush can be very effective when overriding OnPaint of your own control. There's a lot of documentation you should, read, however, which can be found at http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemDrawingDrawing2DPathGradientBrushClassTopic.asp[^]. It - along with related classes - can calculate the gradient for you, if that's what you're trying to do.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralRe: Graphics Color triangle Pin
Heath Stewart8-Oct-04 7:45
protectorHeath Stewart8-Oct-04 7:45 
Generaltab page - tab pane Pin
pat2708818-Oct-04 1:15
pat2708818-Oct-04 1:15 
GeneralRe: tab page - tab pane Pin
Heath Stewart8-Oct-04 6:23
protectorHeath Stewart8-Oct-04 6:23 
GeneralRe: tab page - tab pane Pin
pat27088111-Oct-04 11:13
pat27088111-Oct-04 11:13 
Generalhttps server Pin
ppp0018-Oct-04 0:54
ppp0018-Oct-04 0:54 
GeneralRe: https server Pin
Colin Angus Mackay8-Oct-04 1:09
Colin Angus Mackay8-Oct-04 1:09 
GeneralRe: https server Pin
Vasudevan Deepak Kumar8-Oct-04 3:49
Vasudevan Deepak Kumar8-Oct-04 3:49 
Generalxml with c# for pocketpc Pin
pujas8-Oct-04 0:47
pujas8-Oct-04 0:47 
GeneralRe: xml with c# for pocketpc Pin
Heath Stewart8-Oct-04 6:20
protectorHeath Stewart8-Oct-04 6:20 
Generalxml with c# for pocketpc Pin
pujas8-Oct-04 0:47
pujas8-Oct-04 0:47 
QuestionHow can I get a *real* destructor?! Pin
nurglitch8-Oct-04 0:36
nurglitch8-Oct-04 0:36 
AnswerRe: How can I get a *real* destructor?! Pin
sreejith ss nair8-Oct-04 1:51
sreejith ss nair8-Oct-04 1:51 
GeneralRe: How can I get a *real* destructor?! Pin
nurglitch8-Oct-04 2:15
nurglitch8-Oct-04 2:15 
GeneralRe: How can I get a *real* destructor?! Pin
Colin Angus Mackay8-Oct-04 3:17
Colin Angus Mackay8-Oct-04 3:17 
GeneralRe: How can I get a *real* destructor?! Pin
Matt Gerrans8-Oct-04 9:32
Matt Gerrans8-Oct-04 9:32 
GeneralSafeNativeMethods Pin
Mikke_x8-Oct-04 0:08
Mikke_x8-Oct-04 0:08 
QuestionHow to add an active directory user to One BuiltIn Group- programmatically Pin
Subin KJ7-Oct-04 23:31
Subin KJ7-Oct-04 23:31 

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.