Click here to Skip to main content
15,905,607 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is it possible to use VB control in C#? Pin
Dave Kreskowiak4-Jun-09 12:58
mveDave Kreskowiak4-Jun-09 12:58 
GeneralRe: Is it possible to use VB control in C#? Pin
Christian Graus4-Jun-09 13:43
protectorChristian Graus4-Jun-09 13:43 
GeneralRe: Is it possible to use VB control in C#? Pin
Rajesh R Subramanian4-Jun-09 19:38
professionalRajesh R Subramanian4-Jun-09 19:38 
AnswerRe: Is it possible to use VB control in C#? Pin
Christian Graus4-Jun-09 11:49
protectorChristian Graus4-Jun-09 11:49 
QuestionRajdeep.net Pin
EliottA4-Jun-09 8:46
EliottA4-Jun-09 8:46 
AnswerRe: Rajdeep.net Pin
I Believe In GOD4-Jun-09 9:43
I Believe In GOD4-Jun-09 9:43 
GeneralRe: Rajdeep.net Pin
OriginalGriff4-Jun-09 9:50
mveOriginalGriff4-Jun-09 9:50 
GeneralRe: Rajdeep.net Pin
I Believe In GOD4-Jun-09 9:57
I Believe In GOD4-Jun-09 9:57 
GeneralRe: Rajdeep.net Pin
molesworth4-Jun-09 12:38
molesworth4-Jun-09 12:38 
Generalignorandus Pin
Luc Pattyn4-Jun-09 11:02
sitebuilderLuc Pattyn4-Jun-09 11:02 
GeneralRe: ignorandus Pin
OriginalGriff4-Jun-09 21:48
mveOriginalGriff4-Jun-09 21:48 
GeneralRe: ignorandus Pin
Luc Pattyn5-Jun-09 0:38
sitebuilderLuc Pattyn5-Jun-09 0:38 
GeneralRe: ignorandus Pin
OriginalGriff5-Jun-09 2:17
mveOriginalGriff5-Jun-09 2:17 
AnswerRe: Rajdeep.net Pin
fly9044-Jun-09 10:41
fly9044-Jun-09 10:41 
AnswerRe: Rajdeep.net Pin
Pete O'Hanlon4-Jun-09 11:09
mvePete O'Hanlon4-Jun-09 11:09 
GeneralRe: Rajdeep.net Pin
EliottA4-Jun-09 12:31
EliottA4-Jun-09 12:31 
GeneralRe: Rajdeep.net Pin
molesworth4-Jun-09 12:40
molesworth4-Jun-09 12:40 
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 ...

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.