Click here to Skip to main content
15,887,416 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rajdeep.net Pin
Christian Graus4-Jun-09 15:03
protectorChristian Graus4-Jun-09 15:03 
GeneralRe: Rajdeep.net Pin
EliottA5-Jun-09 2:43
EliottA5-Jun-09 2:43 
QuestionHow to Change Windows Theme Programmatically ( C# ) Pin
aadyaavi4-Jun-09 8:30
aadyaavi4-Jun-09 8:30 
AnswerRe: How to Change Windows Theme Programmatically ( C# ) Pin
DaveyM694-Jun-09 8:58
professionalDaveyM694-Jun-09 8:58 
GeneralRe: How to Change Windows Theme Programmatically ( C# ) Pin
aadyaavi4-Jun-09 9:04
aadyaavi4-Jun-09 9:04 
GeneralRe: How to Change Windows Theme Programmatically ( C# ) Pin
Henry Minute4-Jun-09 9:59
Henry Minute4-Jun-09 9:59 
Question[Message Deleted] Pin
hkjghkj14-Jun-09 8:28
hkjghkj14-Jun-09 8:28 
AnswerRe: PictureBox problem Pin
I Believe In GOD4-Jun-09 10:03
I Believe In GOD4-Jun-09 10:03 
public static System.Drawing.Drawing2D.GraphicsPath Transparent(Image im)  
        {  
            int x;  
            int y;  
            Bitmap bmp = new Bitmap(im);  
            System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();  
            Color mask = bmp.GetPixel(0, 0);  
  
            for (x = 0; x <= bmp.Width - 1; x++)  
            {  
                for (y = 0; y <= bmp.Height - 1; y++)  
                {  
                    if (!bmp.GetPixel(x, y).Equals(mask))  
                    {  
                        gp.AddRectangle(new Rectangle(x, y, 1, 1));  
                    }  
                }  
            }  
            bmp.Dispose();  
            return gp;  
  
        }  


Then in your form load event handler
System.Drawing.Drawing2D.GraphicsPath gp = Resources.Images.Transparent(pictureBox1.Image);  
pictureBox1.Region = new System.Drawing.Region(gp);  


I know nothing , I know nothing ...

AnswerRe: PictureBox problem Pin
Dave Kreskowiak4-Jun-09 10:12
mveDave Kreskowiak4-Jun-09 10:12 
QuestionChecking the date Pin
Rajdeep.NET4-Jun-09 6:19
Rajdeep.NET4-Jun-09 6:19 
AnswerRe: Checking the date Pin
musefan4-Jun-09 6:35
musefan4-Jun-09 6:35 
GeneralRe: Checking the date Pin
Rajdeep.NET4-Jun-09 6:46
Rajdeep.NET4-Jun-09 6:46 
AnswerRe: Checking the date PinPopular
0x3c04-Jun-09 6:43
0x3c04-Jun-09 6:43 
GeneralRe: Checking the date Pin
Rajdeep.NET4-Jun-09 6:48
Rajdeep.NET4-Jun-09 6:48 
GeneralIf it wasn't obvious, <b>ShreeR.Bhattacharjee</b> is <b>Rajdeep.NET</b> Pin
Dave Kreskowiak4-Jun-09 7:01
mveDave Kreskowiak4-Jun-09 7:01 
GeneralRe: If it wasn't obvious, ShreeR.Bhattacharjee is Rajdeep.NET Pin
Rajdeep.NET4-Jun-09 7:13
Rajdeep.NET4-Jun-09 7:13 
GeneralRe: If it wasn't obvious, ShreeR.Bhattacharjee is Rajdeep.NET PinPopular
EliottA4-Jun-09 7:17
EliottA4-Jun-09 7:17 
GeneralRe: If it wasn't obvious, ShreeR.Bhattacharjee is Rajdeep.NET Pin
molesworth4-Jun-09 7:28
molesworth4-Jun-09 7:28 
GeneralRe: If it wasn't obvious, ShreeR.Bhattacharjee is Rajdeep.NET Pin
0x3c04-Jun-09 8:52
0x3c04-Jun-09 8:52 
GeneralRe: If it wasn't obvious, ShreeR.Bhattacharjee is Rajdeep.NET Pin
Dave Kreskowiak4-Jun-09 9:53
mveDave Kreskowiak4-Jun-09 9:53 
GeneralRe: Checking the date Pin
DaveyM694-Jun-09 7:52
professionalDaveyM694-Jun-09 7:52 
AnswerRe: Checking the date PinPopular
EliottA4-Jun-09 7:14
EliottA4-Jun-09 7:14 
GeneralRe: Checking the date Pin
Rajdeep.NET4-Jun-09 7:31
Rajdeep.NET4-Jun-09 7:31 
GeneralRe: Checking the date Pin
EliottA4-Jun-09 7:32
EliottA4-Jun-09 7:32 
AnswerRe: Checking the date Pin
fly9044-Jun-09 10:45
fly9044-Jun-09 10:45 

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.