Click here to Skip to main content
16,010,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: windows media player custom control Pin
Heath Stewart29-Mar-04 18:23
protectorHeath Stewart29-Mar-04 18:23 
GeneralRe: windows media player custom control Pin
Marveyles29-Mar-04 18:39
Marveyles29-Mar-04 18:39 
GeneralRe: windows media player custom control Pin
Heath Stewart29-Mar-04 18:45
protectorHeath Stewart29-Mar-04 18:45 
GeneralRe: windows media player custom control Pin
Marveyles29-Mar-04 19:05
Marveyles29-Mar-04 19:05 
GeneralTransparent Images on Transparent Forms Pin
authenticgeek29-Mar-04 15:38
authenticgeek29-Mar-04 15:38 
GeneralRe: Transparent Images on Transparent Forms Pin
Andy Brummer29-Mar-04 16:04
sitebuilderAndy Brummer29-Mar-04 16:04 
GeneralRe: Transparent Images on Transparent Forms Pin
authenticgeek29-Mar-04 16:33
authenticgeek29-Mar-04 16:33 
GeneralRe: Transparent Images on Transparent Forms Pin
Heath Stewart29-Mar-04 19:53
protectorHeath Stewart29-Mar-04 19:53 
Only forms have transparency support through layered window support. A PictureBox is a separate control, not a layered window, so the container window - while still being layered - is not what's showing up again.

A good way to solve this is to either set your picture as the form's BackgroundImage or paint it on yourself, and then set the color in the image you want transparent as the TransparencyKey for the Form. See the documentation for the TransparencyKey property for more information.

EDIT: Oh yeah, and that's only supported in Windows 2000, XP, 2003 and newer. For older Windows OS's you'll have to resort to clipping regions, which won't give you great quality and is typically a pain since you have to code all the splines.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Transparent Images on Transparent Forms Pin
authenticgeek30-Mar-04 7:07
authenticgeek30-Mar-04 7:07 
GeneralDataGrid and FlexGrid Pin
«_Superman_»29-Mar-04 15:21
professional«_Superman_»29-Mar-04 15:21 
GeneralRe: DataGrid and FlexGrid Pin
Heath Stewart29-Mar-04 18:16
protectorHeath Stewart29-Mar-04 18:16 
GeneralRe: DataGrid and FlexGrid Pin
«_Superman_»1-Apr-04 14:53
professional«_Superman_»1-Apr-04 14:53 
GeneralRe: DataGrid and FlexGrid Pin
Heath Stewart2-Apr-04 9:05
protectorHeath Stewart2-Apr-04 9:05 
GeneralQuestion on drag-n'-drop and files vs folders Pin
Flack29-Mar-04 14:47
Flack29-Mar-04 14:47 
GeneralRe: Question on drag-n'-drop and files vs folders Pin
Heath Stewart29-Mar-04 18:09
protectorHeath Stewart29-Mar-04 18:09 
GeneralRe: Question on drag-n'-drop and files vs folders Pin
Flack30-Mar-04 4:47
Flack30-Mar-04 4:47 
GeneralRe: Question on drag-n'-drop and files vs folders Pin
Heath Stewart30-Mar-04 4:54
protectorHeath Stewart30-Mar-04 4:54 
Generalusing static Pin
pgraeve29-Mar-04 12:45
pgraeve29-Mar-04 12:45 
GeneralRe: using static Pin
Christian Graus29-Mar-04 13:18
protectorChristian Graus29-Mar-04 13:18 
GeneralRe: using static Pin
Heath Stewart29-Mar-04 18:00
protectorHeath Stewart29-Mar-04 18:00 
GeneralJagged edges on custom shaped form Pin
Flack29-Mar-04 12:30
Flack29-Mar-04 12:30 
GeneralRe: Jagged edges on custom shaped form Pin
Roman Rodov29-Mar-04 12:36
Roman Rodov29-Mar-04 12:36 
GeneralRe: Jagged edges on custom shaped form Pin
Heath Stewart29-Mar-04 17:53
protectorHeath Stewart29-Mar-04 17:53 
GeneralDetecting Mouse Movement While Button Down Pin
Tristan Rhodes29-Mar-04 11:23
Tristan Rhodes29-Mar-04 11:23 
GeneralRe: Detecting Mouse Movement While Button Down Pin
Dave Kreskowiak29-Mar-04 11:29
mveDave Kreskowiak29-Mar-04 11:29 

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.