Click here to Skip to main content
16,005,162 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sharepoint Pin
Curtis Schlak.6-Dec-05 14:07
Curtis Schlak.6-Dec-05 14:07 
QuestionShort Message Service Pin
mlheese6-Dec-05 10:08
mlheese6-Dec-05 10:08 
QuestionMDI Applications?? Pin
HahnTech6-Dec-05 9:33
HahnTech6-Dec-05 9:33 
QuestionWindows Media Player EndOfStream Pin
sasdav6-Dec-05 9:33
sasdav6-Dec-05 9:33 
AnswerRe: Windows Media Player EndOfStream Pin
jawad marji6-Dec-05 22:33
jawad marji6-Dec-05 22:33 
GeneralRe: Windows Media Player EndOfStream Pin
sasdav7-Dec-05 2:10
sasdav7-Dec-05 2:10 
QuestionNon Rectangular Form Pin
Sabry19056-Dec-05 8:00
Sabry19056-Dec-05 8:00 
AnswerRe: Non Rectangular Form Pin
Pablo Hernandez Valdes6-Dec-05 9:15
Pablo Hernandez Valdes6-Dec-05 9:15 
The problem is that you may be using a 24bit image and it has some problems (I don't know why?) with 32bit color quality. Anyway there is a solution for this problem:

1) Load the image manually in the Load event(or wherever you want):

Bitmap bg;<br />
    bg=(Bitmap)Bitmap.FromFile(@"Your image.bmp");<br />
    bg.MakeTransparent(Color.White);


Instead of this you can use an ImageList and don't forget to set the TransparentColor property

2) Draw the image in the Paint event:

private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)<br />
   {<br />
	e.Graphics.DrawImage(bg,0,0,this.Width,this.Height);<br />
<br />
        //If you used an ImageList<br />
        //e.Graphics.DrawImage(imageList1.Images[backgroundIndex],0,0,this.Width,this.Height);<br />
   }


Another approach to this could be using regions, but it is more complicated, if you want to learn more about this please let me know and I'll try to show you an example

Pablo Hernandez Valdes
GeneralRe: Non Rectangular Form Pin
Sabry19056-Dec-05 23:27
Sabry19056-Dec-05 23:27 
GeneralRe: Non Rectangular Form Pin
Pablo Hernandez Valdes7-Dec-05 4:29
Pablo Hernandez Valdes7-Dec-05 4:29 
GeneralRe: Non Rectangular Form Pin
Sabry19057-Dec-05 4:52
Sabry19057-Dec-05 4:52 
QuestionClosing a Webform by clicking the close button Pin
TheMajorRager6-Dec-05 7:50
TheMajorRager6-Dec-05 7:50 
AnswerRe: Closing a Webform by clicking the close button Pin
[Marc]6-Dec-05 8:52
[Marc]6-Dec-05 8:52 
AnswerRe: Closing a Webform by clicking the close button Pin
enjoycrack6-Dec-05 9:15
enjoycrack6-Dec-05 9:15 
AnswerRe: Closing a Webform by clicking the close button Pin
Dave Kreskowiak6-Dec-05 10:24
mveDave Kreskowiak6-Dec-05 10:24 
QuestionHow to launch multiple threads Pin
Oskar Emil6-Dec-05 7:27
Oskar Emil6-Dec-05 7:27 
AnswerRe: How to launch multiple threads Pin
mcljava6-Dec-05 11:43
mcljava6-Dec-05 11:43 
GeneralRe: How to launch multiple threads Pin
Oskar Emil7-Dec-05 7:16
Oskar Emil7-Dec-05 7:16 
QuestionHow to get all properties of system_comobject(like word 2003) using reflection ? Pin
caiter6-Dec-05 5:58
caiter6-Dec-05 5:58 
QuestionBinding a ds to a textbox control Pin
steve_rm6-Dec-05 5:55
steve_rm6-Dec-05 5:55 
Questiononly get one field when import csv to datagrid Pin
tabulation6-Dec-05 5:41
tabulation6-Dec-05 5:41 
QuestionInteger formatting in C# appending &quot;st&quot;, &quot;nd&quot;, rd&quot; or &quot;th&quot; to an int. Pin
tsramkumar6-Dec-05 5:08
tsramkumar6-Dec-05 5:08 
AnswerRe: Integer formatting in C# appending &amp;amp;quot;st&amp;amp;quot;, &amp;amp;quot;nd&amp;amp;quot;, rd&amp;amp;quot; or &amp;amp;quot;th&amp;amp;quot; to an int. Pin
J4amieC6-Dec-05 5:47
J4amieC6-Dec-05 5:47 
QuestionStatusbar Icon - Display Issue Pin
mcljava6-Dec-05 4:03
mcljava6-Dec-05 4:03 
AnswerRe: Statusbar Icon - Display Issue Pin
Pablo Hernandez Valdes6-Dec-05 8:31
Pablo Hernandez Valdes6-Dec-05 8: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.