Click here to Skip to main content
15,900,646 members
Home / Discussions / C#
   

C#

 
Questionwebservice async call vs backgroundworker? Pin
highjo23-Mar-09 8:43
highjo23-Mar-09 8:43 
AnswerRe: webservice async call vs backgroundworker? Pin
Vitaliy Tsvayer23-Mar-09 9:09
Vitaliy Tsvayer23-Mar-09 9:09 
GeneralRe: webservice async call vs backgroundworker? Pin
highjo23-Mar-09 9:52
highjo23-Mar-09 9:52 
GeneralRe: webservice async call vs backgroundworker? Pin
Vitaliy Tsvayer23-Mar-09 10:25
Vitaliy Tsvayer23-Mar-09 10:25 
Questionwhere i need to declare my array? Pin
kaka76023-Mar-09 8:39
kaka76023-Mar-09 8:39 
AnswerRe: where i need to declare my array? Pin
Samuel Cherinet23-Mar-09 8:52
Samuel Cherinet23-Mar-09 8:52 
AnswerRe: where i need to declare my array? Pin
Vitaliy Tsvayer23-Mar-09 8:56
Vitaliy Tsvayer23-Mar-09 8:56 
QuestionArranging more than one image having transparent pixels.... Pin
Umangj23-Mar-09 8:00
Umangj23-Mar-09 8:00 
Here, I have two images.... both of which has transparency in it.... They look a bit like this....

http://img167.imageshack.us/img167/1263/piece00.png

http://img129.imageshack.us/img129/9712/piece03.png


Language I am coding in is C#.

I am trying to overlap these two images(or the puzzle pieces) such that the result looks like that they fit into one another.....

I have tried all sorts of things to do it but failed. I have put these 2 images into 2 pictureboxes and set the backcolor as transparent but tht didnt worked....
code:
PictureBox[] p = new PictureBox[2];
            p[0] = new PictureBox();
            p[1] = new PictureBox();
            p[0].BackColor = Color.Transparent;
            p[1].BackColor = Color.Transparent;
            p[0].Size = new Size(100, 100);
            p[1].Size = new Size(100, 100);
            p[0].Location = new Point(100, 100);
            p[1].Location = new Point(180, 100);
            p[0].Image=(imageList1.Images[0]);
            p[1].Image=(imageList1.Images[1]);
            p[0].Visible = true;
            p[1].Visible = true;
            
            this.Controls.Add(p[1]);
            this.Controls.Add(p[0]);
            p[0].Refresh();
            p[1].Refresh();
            p[0].Update();
            p[1].Update();


I have also tried doing the same with buttons using:

button1.BackgroundImage=image1;
     button2.BackgroundImage=image2;


But both pictureboxes and buttons resulted in something like this:
http://img148.imageshack.us/img148/5701/try1.jpg[^]
AnswerRe: Arranging more than one image having transparent pixels.... Pin
Samuel Cherinet23-Mar-09 8:08
Samuel Cherinet23-Mar-09 8:08 
GeneralRe: Arranging more than one image having transparent pixels.... Pin
Umangj23-Mar-09 8:20
Umangj23-Mar-09 8:20 
AnswerRe: Arranging more than one image having transparent pixels.... Pin
Vitaliy Tsvayer23-Mar-09 8:33
Vitaliy Tsvayer23-Mar-09 8:33 
QuestionAdding two types into an array? Pin
bbranded23-Mar-09 7:35
bbranded23-Mar-09 7:35 
AnswerRe: Adding two types into an array? Pin
Luc Pattyn23-Mar-09 7:43
sitebuilderLuc Pattyn23-Mar-09 7:43 
GeneralRe: Adding two types into an array? Pin
led mike23-Mar-09 7:47
led mike23-Mar-09 7:47 
GeneralRe: Adding two types into an array? Pin
Luc Pattyn23-Mar-09 8:03
sitebuilderLuc Pattyn23-Mar-09 8:03 
GeneralRe: Adding two types into an array? Pin
bbranded23-Mar-09 7:49
bbranded23-Mar-09 7:49 
GeneralRe: Adding two types into an array? Pin
bbranded23-Mar-09 7:57
bbranded23-Mar-09 7:57 
GeneralRe: Adding two types into an array? Pin
Luc Pattyn23-Mar-09 8:07
sitebuilderLuc Pattyn23-Mar-09 8:07 
GeneralRe: Adding two types into an array? Pin
bbranded23-Mar-09 8:57
bbranded23-Mar-09 8:57 
GeneralRe: Adding two types into an array? Pin
Luc Pattyn23-Mar-09 9:03
sitebuilderLuc Pattyn23-Mar-09 9:03 
GeneralRe: Adding two types into an array? Pin
bbranded23-Mar-09 9:10
bbranded23-Mar-09 9:10 
GeneralRe: Adding two types into an array? Pin
Luc Pattyn23-Mar-09 9:14
sitebuilderLuc Pattyn23-Mar-09 9:14 
AnswerRe: Adding two types into an array? Pin
Samuel Cherinet23-Mar-09 7:46
Samuel Cherinet23-Mar-09 7:46 
AnswerRe: Adding two types into an array? Pin
PIEBALDconsult23-Mar-09 16:16
mvePIEBALDconsult23-Mar-09 16:16 
QuestionLog file Pin
mrithula823-Mar-09 7:20
mrithula823-Mar-09 7:20 

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.