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

C#

 
GeneralRe: format disk Pin
EliottA12-Dec-08 9:33
EliottA12-Dec-08 9:33 
GeneralRe: format disk Pin
Uwe Keim12-Dec-08 9:49
sitebuilderUwe Keim12-Dec-08 9:49 
GeneralRe: format disk Pin
LordZoster12-Dec-08 10:05
LordZoster12-Dec-08 10:05 
AnswerRe: format disk Pin
LordZoster14-Dec-08 23:12
LordZoster14-Dec-08 23:12 
QuestionHow to cast an object using its handle? Pin
MAP Tiger12-Dec-08 5:36
MAP Tiger12-Dec-08 5:36 
AnswerRe: How to cast an object using its handle? Pin
Mark Salsbery12-Dec-08 7:13
Mark Salsbery12-Dec-08 7:13 
GeneralRe: How to cast an object using its handle? Pin
MAP Tiger12-Dec-08 7:23
MAP Tiger12-Dec-08 7:23 
GeneralRe: How to cast an object using its handle? Pin
Mark Salsbery12-Dec-08 7:28
Mark Salsbery12-Dec-08 7:28 
GeneralRe: How to cast an object using its handle? Pin
MAP Tiger12-Dec-08 8:43
MAP Tiger12-Dec-08 8:43 
AnswerRe: How to cast an object using its handle? Pin
Dave Kreskowiak12-Dec-08 7:14
mveDave Kreskowiak12-Dec-08 7:14 
GeneralRe: How to cast an object using its handle? Pin
MAP Tiger12-Dec-08 7:27
MAP Tiger12-Dec-08 7:27 
GeneralRe: How to cast an object using its handle? Pin
Dave Kreskowiak12-Dec-08 8:24
mveDave Kreskowiak12-Dec-08 8:24 
QuestionMulticolor Text in Textbox OR Listbox Pin
Michael Fritzius12-Dec-08 5:23
professionalMichael Fritzius12-Dec-08 5:23 
AnswerRe: Multicolor Text in Textbox OR Listbox Pin
ARon_12-Dec-08 5:47
ARon_12-Dec-08 5:47 
GeneralRe: Multicolor Text in Textbox OR Listbox Pin
Michael Fritzius12-Dec-08 7:36
professionalMichael Fritzius12-Dec-08 7:36 
QuestionHow to communication between buisness layer and UI layer in a three-tier project Pin
jinmengcheng12-Dec-08 4:48
jinmengcheng12-Dec-08 4:48 
AnswerRe: How to communication between buisness layer and UI layer in a three-tier project Pin
Ben Fair12-Dec-08 9:48
Ben Fair12-Dec-08 9:48 
GeneralRe: How to communication between buisness layer and UI layer in a three-tier project Pin
Uwe Keim12-Dec-08 9:51
sitebuilderUwe Keim12-Dec-08 9:51 
QuestionNewbie :- How to pass which UIElement name on? Pin
me0812-Dec-08 3:56
me0812-Dec-08 3:56 
AnswerRe: Newbie :- How to pass which UIElement name on? Pin
dan!sh 12-Dec-08 4:32
professional dan!sh 12-Dec-08 4:32 
AnswerRe: Newbie :- How to pass which UIElement name on? Pin
DaveyM6912-Dec-08 4:40
professionalDaveyM6912-Dec-08 4:40 
AnswerRe: Newbie :- How to pass which UIElement name on? [modified] Pin
ARon_12-Dec-08 5:40
ARon_12-Dec-08 5:40 
This works for me, but I am just an electrical engineerCool | :cool: . By the way what is a Control.Image? What is the namespace?
WPF, Sorry Blush | :O . Same concept just use the ContextMenuOpening event instead of the clickevent.

private string SelectedControl = "";
…

public MainForm()
{
      InitializeComponent();
      …
      foreach (ImageControl tmp in this.ImageControlList)
      {
      	tmp.Click += new EventHandler(ClickEvent);
      }
      …
}
…
void ClickEvent(object sender, EventArgs e)
{
    	Control tmpCtrl = (Control)sender;
        SelectedControl = tmpCtrl.Name;
}
…
private void mnuEnlarge_Click(object sender, EventArgs e)
{
//Call a method that enlages your image using the SelectedControl variable
}


ARon

modified on Friday, December 12, 2008 2:10 PM

GeneralRe: Newbie :- How to pass which UIElement name on? Pin
me0812-Dec-08 9:03
me0812-Dec-08 9:03 
GeneralRe: Newbie :- How to pass which UIElement name on? Pin
ARon_12-Dec-08 10:03
ARon_12-Dec-08 10:03 
QuestionCan I create a public object? Pin
Steve Harp12-Dec-08 3:12
Steve Harp12-Dec-08 3:12 

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.