Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
QuestionDataGridView Accepting Program Assigned Data Pin
tkewebstrands7-Aug-06 12:34
tkewebstrands7-Aug-06 12:34 
AnswerRe: DataGridView Accepting Program Assigned Data Pin
tkewebstrands8-Aug-06 3:55
tkewebstrands8-Aug-06 3:55 
QuestionDataset and sum Pin
Saamir7-Aug-06 11:12
Saamir7-Aug-06 11:12 
AnswerRe: Dataset and sum Pin
Not Active7-Aug-06 14:10
mentorNot Active7-Aug-06 14:10 
QuestionRe: Dataset and sum Pin
Saamir8-Aug-06 3:58
Saamir8-Aug-06 3:58 
Questionprinting a populated form Pin
TWatson477-Aug-06 11:05
TWatson477-Aug-06 11:05 
AnswerRe: printing a populated form Pin
Not Active7-Aug-06 14:16
mentorNot Active7-Aug-06 14:16 
QuestionEvents not firing Pin
FoxholeWilly7-Aug-06 10:00
FoxholeWilly7-Aug-06 10:00 
I have this for an array of pictureboxes:

GradPic[i].MouseClick += new MouseEventHandler(GradPic_MouseClick);
GradPic[i].MouseDoubleClick += new MouseEventHandler(GradPic_MouseDoubleClick);

private void GradPic_MouseClick(object sender, MouseEventArgs e)
{
this.GradLabel[selectedGradLabel].ForeColor = System.Drawing.Color.Black;
for (int i = 0; i < GradPic.Length; i++)
{
if (GradPic[i] == (PictureBox)sender)
{
selectedGradLabel = i;
this.GradLabel[selectedGradLabel].ForeColor = System.Drawing.Color.Red;
}
}
}

private void GradPic_MouseDoubleClick(object sender, MouseEventArgs e)
{
for (int i = 0; i < GradPic.Length; i++)
{
if (GradPic[i] == (PictureBox)sender)
{
if (currentView == "Astronauts") ShowAstronautBio();
else ShowGraduateClassPhoto();
}
}
}

Which works fine. I have a similar approach to a different array of pictureboxes, only now the DOUBLECLICK event fires only if I rem out the mouseclick assignment. Anybody have any ideas?

ACThumbBox[i].MouseClick += new MouseEventHandler(ACThumbBox_MouseClick);
ACThumbBox[i].MouseDoubleClick += new MouseEventHandler(ACThumbBox_MouseDoubleClick);

private void ACThumbBox_MouseClick(object sender, MouseEventArgs e)
{
this.ACThumbBox[acGridCurrent].BorderStyle = BorderStyle.None;
for (int i = 0; i < ACThumbBox.Length; i++)
{
if (ACThumbBox[i] == (PictureBox)sender)
{
acGridCurrent = i;
this.ACThumbBox[acGridCurrent].BorderStyle = BorderStyle.FixedSingle;
}
}
}

private void ACThumbBox_MouseDoubleClick(object sender, MouseEventArgs e)
{
DisplayAircraftWebPage();
}
AnswerRe: Events not firing Pin
Thomas Stockwell7-Aug-06 11:23
professionalThomas Stockwell7-Aug-06 11:23 
GeneralRe: Events not firing Pin
FoxholeWilly7-Aug-06 12:16
FoxholeWilly7-Aug-06 12:16 
GeneralRe: Events not firing Pin
FoxholeWilly10-Aug-06 4:32
FoxholeWilly10-Aug-06 4:32 
QuestionC# Socket not receiving messages Pin
Paradox227-Aug-06 9:43
Paradox227-Aug-06 9:43 
AnswerRe: C# Socket not receiving messages Pin
vineas7-Aug-06 18:28
vineas7-Aug-06 18:28 
Questionname of Dialog shown by ImageEditor Pin
SJ_Phoenix7-Aug-06 9:31
SJ_Phoenix7-Aug-06 9:31 
QuestionTree View Question Pin
joshp12177-Aug-06 9:31
joshp12177-Aug-06 9:31 
AnswerRe: Tree View Question Pin
Josh Smith7-Aug-06 10:19
Josh Smith7-Aug-06 10:19 
QuestionDataGridView - how to databind cell data AND tooltip Pin
Rafferty Uy7-Aug-06 9:18
Rafferty Uy7-Aug-06 9:18 
QuestionForm.Paint() the sequence of events in this process? Pin
LongRange.Shooter7-Aug-06 9:12
LongRange.Shooter7-Aug-06 9:12 
QuestionFolderBrowserDialog doesn't show tree structure Pin
Saamir7-Aug-06 7:18
Saamir7-Aug-06 7:18 
AnswerRe: FolderBrowserDialog doesn't show tree structure Pin
leppie7-Aug-06 7:22
leppie7-Aug-06 7:22 
GeneralRe: FolderBrowserDialog doesn't show tree structure Pin
Saamir7-Aug-06 11:02
Saamir7-Aug-06 11:02 
Questionhow to Call a function Pin
dinabandhu patra7-Aug-06 7:09
dinabandhu patra7-Aug-06 7:09 
AnswerRe: how to Call a function Pin
Josh Smith7-Aug-06 7:54
Josh Smith7-Aug-06 7:54 
QuestionHow to identify active control on a form [modified] Pin
dennisd457-Aug-06 7:00
dennisd457-Aug-06 7:00 
AnswerRe: How to identify active control on a form Pin
Josh Smith7-Aug-06 7:55
Josh Smith7-Aug-06 7:55 

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.