Click here to Skip to main content
15,904,153 members
Home / Discussions / C#
   

C#

 
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
AnswerRe: Automatic variable name incrementation Pin
ankita patel20-Jul-06 11:00
ankita patel20-Jul-06 11:00 
AnswerRe: Automatic variable name incrementation Pin
led mike20-Jul-06 11:06
led mike20-Jul-06 11:06 
GeneralRe: Automatic variable name incrementation Pin
The Big Bunny21-Jul-06 8:51
The Big Bunny21-Jul-06 8:51 
Questionhelp file issue Pin
_tasleem20-Jul-06 9:42
_tasleem20-Jul-06 9:42 
AnswerRe: help file issue Pin
Ed.Poore20-Jul-06 12:41
Ed.Poore20-Jul-06 12:41 
GeneralRe: help file issue Pin
_tasleem21-Jul-06 1:06
_tasleem21-Jul-06 1:06 
GeneralRe: help file issue Pin
Ed.Poore21-Jul-06 12:09
Ed.Poore21-Jul-06 12:09 
GeneralRe: help file issue Pin
_tasleem21-Jul-06 20:30
_tasleem21-Jul-06 20:30 
QuestionDocumentation of DLL(.net) in design time Pin
mosquets20-Jul-06 9:16
mosquets20-Jul-06 9:16 
AnswerRe: Documentation of DLL(.net) in design time Pin
Ed.Poore20-Jul-06 12:37
Ed.Poore20-Jul-06 12:37 
QuestionRe: Documentation of DLL(.net) in design time Pin
mosquets21-Jul-06 4:11
mosquets21-Jul-06 4:11 
AnswerRe: Documentation of DLL(.net) in design time Pin
Ed.Poore21-Jul-06 12:10
Ed.Poore21-Jul-06 12:10 
GeneralRe: Documentation of DLL(.net) in design time Pin
mosquets24-Jul-06 5:01
mosquets24-Jul-06 5:01 
GeneralRe: Documentation of DLL(.net) in design time Pin
Ed.Poore24-Jul-06 6:01
Ed.Poore24-Jul-06 6:01 
Questionconvert avi to mp4 in C# or C++ Pin
thyscorpion20-Jul-06 8:57
thyscorpion20-Jul-06 8:57 
AnswerRe: convert avi to mp4 in C# or C++ Pin
Ed.Poore20-Jul-06 12:40
Ed.Poore20-Jul-06 12:40 
QuestionRe: convert avi to mp4 in C# or C++ Pin
thyscorpion20-Jul-06 21:25
thyscorpion20-Jul-06 21:25 

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.