Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
QuestionHow to control VS2008 compiler warnings? Pin
Member 391904917-Jun-08 8:25
Member 391904917-Jun-08 8:25 
AnswerRe: How to control VS2008 compiler warnings? Pin
User 665817-Jun-08 8:31
User 665817-Jun-08 8:31 
AnswerRe: How to control VS2008 compiler warnings? Pin
carbon_golem17-Jun-08 8:31
carbon_golem17-Jun-08 8:31 
GeneralRe: How to control VS2008 compiler warnings? Pin
Member 391904917-Jun-08 9:25
Member 391904917-Jun-08 9:25 
GeneralRe: How to control VS2008 compiler warnings? Pin
carbon_golem18-Jun-08 2:27
carbon_golem18-Jun-08 2:27 
QuestionClickable Multiple Labels Pin
djnevs17-Jun-08 8:16
djnevs17-Jun-08 8:16 
AnswerRe: Clickable Multiple Labels Pin
Judah Gabriel Himango17-Jun-08 8:24
sponsorJudah Gabriel Himango17-Jun-08 8:24 
GeneralRe: Clickable Multiple Labels Pin
djnevs17-Jun-08 9:04
djnevs17-Jun-08 9:04 
private void CreateTextButton(string text)
{
    //
    // label1 - 464
    //
    int StartLocationX = 212;
    int SpaceBetweenButtons = 5;
    int NewPositionX;
    if (LastPositionX != 0)
    {
        NewPositionX = LastPositionX + NPCTextButton.Width + SpaceBetweenButtons;
    }
    else
    {
        NewPositionX = StartLocationX;
    }

    this.NPCTextButton = new System.Windows.Forms.Label();
    this.NPCTextButton.AutoSize = true;
    this.NPCTextButton.BackColor = System.Drawing.Color.Transparent;
    this.NPCTextButton.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    this.NPCTextButton.Location = new System.Drawing.Point(NewPositionX, PosY);
    this.NPCTextButton.Name = text;
    this.NPCTextButton.Size = new System.Drawing.Size(32, 16);
    this.NPCTextButton.TabIndex = 4;
    this.NPCTextButton.Text = text;
    this.NPCTextButton.Click += new EventHandler(NPCTextButton_Click);

    this.pictureBox1.Controls.Add(NPCTextButton);
    this.NPCTextButton.BackColor = Color.FromArgb(0, NPCTextButton.BackColor);
    LastPositionX = NewPositionX;
    if (LastPositionX >= 452)
    {
        PosY += 24;
        LastPositionX = 0;
    }
    NPCText.Text = NewPositionX.ToString();
}


NPCTextButton.Text returns me the 'newest' value created.
So, how can i check which one is clicked?

Thanks.
GeneralRe: Clickable Multiple Labels Pin
Judah Gabriel Himango17-Jun-08 9:57
sponsorJudah Gabriel Himango17-Jun-08 9:57 
QuestionC# Vocabulary Chart (or Flow Chart) [modified] Pin
JustBFlat4Now17-Jun-08 7:19
JustBFlat4Now17-Jun-08 7:19 
AnswerRe: C# Vocabulary Chart (or Flow Chart) Pin
Thomas Stockwell18-Jun-08 16:09
professionalThomas Stockwell18-Jun-08 16:09 
GeneralRe: C# Vocabulary Chart (or Flow Chart) Pin
JustBFlat4Now23-Jun-08 10:00
JustBFlat4Now23-Jun-08 10:00 
QuestionCrystal report XI keeps asking for a parameter Pin
Newbie_Toy17-Jun-08 6:36
Newbie_Toy17-Jun-08 6:36 
AnswerRe: Crystal report XI keeps asking for a parameter Pin
Newbie_Toy17-Jun-08 6:38
Newbie_Toy17-Jun-08 6:38 
AnswerRe: Crystal report XI keeps asking for a parameter Pin
SomeGuyThatIsMe17-Jun-08 7:08
SomeGuyThatIsMe17-Jun-08 7:08 
QuestionPCX Files in C# Pin
Chrisfrmatl17-Jun-08 6:28
Chrisfrmatl17-Jun-08 6:28 
AnswerRe: PCX Files in C# Pin
Judah Gabriel Himango17-Jun-08 6:40
sponsorJudah Gabriel Himango17-Jun-08 6:40 
GeneralRe: PCX Files in C# Pin
Chrisfrmatl17-Jun-08 9:24
Chrisfrmatl17-Jun-08 9:24 
GeneralRe: PCX Files in C# Pin
Judah Gabriel Himango17-Jun-08 9:57
sponsorJudah Gabriel Himango17-Jun-08 9:57 
GeneralRe: PCX Files in C# Pin
Chrisfrmatl18-Jun-08 4:27
Chrisfrmatl18-Jun-08 4:27 
QuestionMultiple Labels Pin
djnevs17-Jun-08 6:10
djnevs17-Jun-08 6:10 
AnswerRe: Multiple Labels Pin
Luc Pattyn17-Jun-08 6:18
sitebuilderLuc Pattyn17-Jun-08 6:18 
GeneralRe: Multiple Labels [modified] Pin
djnevs17-Jun-08 6:55
djnevs17-Jun-08 6:55 
QuestionList of sql server 2005 machines Pin
arkiboys17-Jun-08 5:32
arkiboys17-Jun-08 5:32 
AnswerRe: List of sql server 2005 machines Pin
DavidByram17-Jun-08 5:48
DavidByram17-Jun-08 5:48 

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.