Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: User Feedback while main thread is busy Pin
Natza Mitzi26-Nov-09 8:13
Natza Mitzi26-Nov-09 8:13 
GeneralRe: User Feedback while main thread is busy Pin
Luc Pattyn26-Nov-09 8:24
sitebuilderLuc Pattyn26-Nov-09 8:24 
AnswerRe: User Feedback while main thread is busy Pin
User 260419327-Nov-09 7:08
User 260419327-Nov-09 7:08 
Questionquestion related to homework Pin
netJP12L25-Nov-09 9:45
netJP12L25-Nov-09 9:45 
AnswerRe: question related to homework Pin
PIEBALDconsult25-Nov-09 12:13
mvePIEBALDconsult25-Nov-09 12:13 
Question[Message Deleted] Pin
Slavenko8225-Nov-09 8:21
Slavenko8225-Nov-09 8:21 
AnswerRe: Query in DataSet/DataGridView Pin
I Believe In GOD25-Nov-09 9:06
I Believe In GOD25-Nov-09 9:06 
QuestionComparing Two PictureBox Pin
gamer112725-Nov-09 7:50
gamer112725-Nov-09 7:50 
Hello. I'm having some problems about comparing two pictureBox. I want the other one to be invisible when they have the same image but when I tried it didn't have any changes. How can I do that? Me and my groupmates are creating a game similar to mystery case files: prime suspect and I'm the one who is creating the two player mode. The purpose of making the visible property of the other pictureBox is to let the players know that they already found the image we're asking for them to find but until now I can't still do that. Please help me.

Here's the code I tried to use, this is just one of the pictureBox i want to compare to the other pictureBox:
private void picBoxRandom1_Click(object sender, EventArgs e)
       {
           if (picBoxPlayerOne1st.Image.Equals(picBoxRandom1.Image))
           {
               picBoxRandom1.Visible = false;
               PlayerTwo();
           }

           if (picBoxPlayerTwo1st.Image.Equals(picBoxRandom1.Image))
           {
               picBoxRandom1.Visible = false;
               PlayerOne();
           }
       }


picBoxPlayerOne1st is the pictureBox where the asked image is being shown while the picBoxRandom1 is the pictureBox where the right image is shown. Both pictureBox have random images.
AnswerRe: Comparing Two PictureBox Pin
Shameel25-Nov-09 8:07
professionalShameel25-Nov-09 8:07 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 8:15
gamer112725-Nov-09 8:15 
AnswerRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 8:14
mveOriginalGriff25-Nov-09 8:14 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 8:50
gamer112725-Nov-09 8:50 
GeneralRe: Comparing Two PictureBox Pin
harold aptroot25-Nov-09 9:01
harold aptroot25-Nov-09 9:01 
GeneralRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 10:39
mveOriginalGriff25-Nov-09 10:39 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 18:29
gamer112725-Nov-09 18:29 
GeneralRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 21:58
mveOriginalGriff25-Nov-09 21:58 
AnswerRe: Comparing Two PictureBox Pin
I Believe In GOD25-Nov-09 9:07
I Believe In GOD25-Nov-09 9:07 
QuestionToo many generics in code. Pin
CaptainSeeSharp25-Nov-09 7:48
CaptainSeeSharp25-Nov-09 7:48 
AnswerRe: Too many generics in code. Pin
Paulo Zemek25-Nov-09 7:57
Paulo Zemek25-Nov-09 7:57 
GeneralRe: Too many generics in code. [modified] Pin
CaptainSeeSharp25-Nov-09 8:18
CaptainSeeSharp25-Nov-09 8:18 
AnswerRe: Too many generics in code. Pin
Member 218499725-Nov-09 10:07
Member 218499725-Nov-09 10:07 
GeneralRe: Too many generics in code. Pin
CaptainSeeSharp25-Nov-09 10:44
CaptainSeeSharp25-Nov-09 10:44 
AnswerRe: Too many generics in code. Pin
PIEBALDconsult25-Nov-09 12:15
mvePIEBALDconsult25-Nov-09 12:15 
GeneralRe: Too many generics in code. Pin
Lutosław25-Nov-09 13:23
Lutosław25-Nov-09 13:23 
GeneralRe: Too many generics in code. Pin
PIEBALDconsult25-Nov-09 15:34
mvePIEBALDconsult25-Nov-09 15:34 

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.