Click here to Skip to main content
15,918,125 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# to Excel Pin
Nader Elshehabi21-Jul-06 3:26
Nader Elshehabi21-Jul-06 3:26 
AnswerRe: C# to Excel Pin
stancrm21-Jul-06 1:38
stancrm21-Jul-06 1:38 
QuestionIn C# ,How can i use a C++ DLL with a class being defined in head file. Pin
dfbx20-Jul-06 17:43
dfbx20-Jul-06 17:43 
AnswerRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
Andrei Ungureanu20-Jul-06 19:47
Andrei Ungureanu20-Jul-06 19:47 
GeneralRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
dfbx20-Jul-06 20:37
dfbx20-Jul-06 20:37 
AnswerRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
Andrei Ungureanu20-Jul-06 22:35
Andrei Ungureanu20-Jul-06 22:35 
GeneralRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
dfbx23-Jul-06 16:21
dfbx23-Jul-06 16:21 
QuestionHow to support right-click *on* WinForms context menu items? Pin
cpeterso20-Jul-06 15:07
cpeterso20-Jul-06 15:07 
AnswerRe: How to support right-click *on* WinForms context menu items? Pin
Judah Gabriel Himango20-Jul-06 16:12
sponsorJudah Gabriel Himango20-Jul-06 16:12 
AnswerRe: How to support right-click *on* WinForms context menu items? Pin
Nader Elshehabi20-Jul-06 22:40
Nader Elshehabi20-Jul-06 22:40 
QuestionMy ASP.NET 2.0 Web Pages do not run inside IIS Pin
tedhill1320-Jul-06 14:17
tedhill1320-Jul-06 14:17 
AnswerRe: My ASP.NET 2.0 Web Pages do not run inside IIS Pin
Andrei Ungureanu20-Jul-06 19:52
Andrei Ungureanu20-Jul-06 19:52 
GeneralRe: My ASP.NET 2.0 Web Pages do not run inside IIS Pin
tedhill1323-Jul-06 9:23
tedhill1323-Jul-06 9:23 
QuestionPictureBox in mdi form Pin
Saamir20-Jul-06 11:32
Saamir20-Jul-06 11:32 
AnswerRe: PictureBox in mdi form Pin
Ed.Poore20-Jul-06 12:50
Ed.Poore20-Jul-06 12:50 
QuestionRe: PictureBox in mdi form Pin
Saamir20-Jul-06 16:45
Saamir20-Jul-06 16:45 
AnswerRe: PictureBox in mdi form Pin
Ed.Poore20-Jul-06 21:07
Ed.Poore20-Jul-06 21:07 
Question.insert is inserting 2 entries instead of one... please help. Pin
jaman4dbz20-Jul-06 11:02
jaman4dbz20-Jul-06 11:02 
AnswerRe: .insert is inserting 2 entries instead of one... please help. Pin
Ed.Poore20-Jul-06 12:48
Ed.Poore20-Jul-06 12:48 
AnswerRe: .insert is inserting 2 entries instead of one... please help. Pin
Alexander Wiseman20-Jul-06 13:33
Alexander Wiseman20-Jul-06 13:33 
AnswerRe: .insert is inserting 2 entries instead of one... please help. Pin
jaman4dbz20-Jul-06 14:09
jaman4dbz20-Jul-06 14:09 
GeneralRe: .insert is inserting 2 entries instead of one... please help. Pin
Alexander Wiseman20-Jul-06 14:26
Alexander Wiseman20-Jul-06 14:26 
GeneralRe: .insert is inserting 2 entries instead of one... please help. Pin
jaman4dbz21-Jul-06 6:21
jaman4dbz21-Jul-06 6:21 
QuestionSecurity Permissions Pin
JuanAlbertoMD20-Jul-06 10:21
JuanAlbertoMD20-Jul-06 10:21 
QuestionAutomatic variable name incrementation [modified] Pin
The Big Bunny20-Jul-06 10:21
The Big Bunny20-Jul-06 10:21 
I would like to take the following 5 lines of code:

Button BUTTONx = new Button();<br />
BUTTONx.Size = new System.Drawing.Size(80, 40);<br />
BUTTONx.Location = new System.Drawing.Point(buttonXPos += 50, buttonYPos += 50);<br />
BUTTONx.Text = buttonName[counter];<br />
Controls.Add(BUTTONx);


And place it inside a loop, however I am unsure how to format the BUTTONx variable so it can contain a unique button name on each iteration ... any advice on how I can achieve the following would be welcome.

while (buttonName[counter] != null)<br />
{<br />
   Button BUTTONx = new Button();<br />
   BUTTONx.Size = new System.Drawing.Size(80, 40);<br />
   BUTTONx.Location = new System.Drawing.Point(buttonXPos += 50, buttonYPos += 50);<br />
   BUTTONx.Text = buttonName[counter];<br />
   Controls.Add(BUTTONx);<br />
}


This would enable the automatic generation of buttons, which is variable Confused | :confused:

-- modified at 16:40 Thursday 20th July, 2006

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.