Click here to Skip to main content
16,015,559 members
Home / Discussions / C#
   

C#

 
GeneralRe: Are there any APIs in c# that i can use to parse a email message? Pin
Paul Watson21-Jun-02 7:05
sitebuilderPaul Watson21-Jun-02 7:05 
QuestionWhy so many class in framework sealed? Pin
9-Apr-02 17:49
suss9-Apr-02 17:49 
AnswerRe: Why so many class in framework sealed? Pin
Gerald Schwab9-Apr-02 17:54
Gerald Schwab9-Apr-02 17:54 
GeneralRe: Why so many class in framework sealed? Pin
9-Apr-02 20:01
suss9-Apr-02 20:01 
AnswerRe: Why so many class in framework sealed? Pin
James T. Johnson9-Apr-02 19:10
James T. Johnson9-Apr-02 19:10 
AnswerRe: Why so many class in framework sealed? Pin
Andy Smith9-Apr-02 20:10
Andy Smith9-Apr-02 20:10 
GeneralRe: Why so many class in framework sealed? Pin
Nick Parker10-Apr-02 6:42
protectorNick Parker10-Apr-02 6:42 
GeneralBitmap Button Pin
9-Apr-02 9:31
suss9-Apr-02 9:31 
How can I draw a bitmap button with a transparent background.

Im using the code below to try and do this but its not working how it should.

Bitmap b = new Bitmap("D:\\-=[Pics]=-\\test.jpg");

b.MakeTransparent(b.GetPixel(0,0));

pe.Graphics.FillRectangle (Brushes.Transparent,ClientRectangle);

pe.Graphics.DrawImage(b,ClientRectangle);

Im trying to paint the button transparent then draw an image whose transparency key is the same as the color at 0,0 of the bitmap. It sort of works but when the image is drawn on the button the background looks more like swiss cheese than transparent.

Any help would be great.
Thanks Danny
GeneralRe: Bitmap Button Pin
James T. Johnson9-Apr-02 13:50
James T. Johnson9-Apr-02 13:50 
Generalswitch enhancement in C# Pin
ovarlamov9-Apr-02 8:27
ovarlamov9-Apr-02 8:27 
GeneralRe: switch enhancement in C# Pin
Andy Smith9-Apr-02 8:53
Andy Smith9-Apr-02 8:53 
GeneralReflection & Assemblies Pin
Tariq9-Apr-02 5:07
Tariq9-Apr-02 5:07 
GeneralRe: Reflection & Assemblies Pin
James T. Johnson9-Apr-02 6:30
James T. Johnson9-Apr-02 6:30 
GeneralOnly one application instance Pin
Jose Fco Bonnin9-Apr-02 1:52
Jose Fco Bonnin9-Apr-02 1:52 
GeneralRe: Only one application instance Pin
David Wengier9-Apr-02 12:59
David Wengier9-Apr-02 12:59 
GeneralRe: Only one application instance Pin
Marc Clifton1-Oct-02 11:32
mvaMarc Clifton1-Oct-02 11:32 
GeneralCheckbox in Datagrid Pin
Anderson F.9-Apr-02 1:29
Anderson F.9-Apr-02 1:29 
GeneralRe: Checkbox in Datagrid Pin
ClayB9-Apr-02 23:53
ClayB9-Apr-02 23:53 
GeneralRe: Checkbox in Datagrid Pin
Anderson F.10-Apr-02 9:26
Anderson F.10-Apr-02 9:26 
GeneralWe have ASP/ASP.NET Beat Pin
Nick Parker8-Apr-02 17:43
protectorNick Parker8-Apr-02 17:43 
QuestionAm I Missing Something Here? Pin
Nick Parker8-Apr-02 17:08
protectorNick Parker8-Apr-02 17:08 
AnswerRe: Am I Missing Something Here? Pin
Christian Graus8-Apr-02 17:18
protectorChristian Graus8-Apr-02 17:18 
GeneralRe: Am I Missing Something Here? Pin
Nick Parker8-Apr-02 17:24
protectorNick Parker8-Apr-02 17:24 
GeneralRe: Am I Missing Something Here? Pin
David Wengier8-Apr-02 17:30
David Wengier8-Apr-02 17:30 
GeneralRe: Am I Missing Something Here? Pin
Christian Graus8-Apr-02 17:31
protectorChristian Graus8-Apr-02 17: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.