TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Matthias
NA
5
0
Add a variable to a command
Dec 30 2007 7:35 AM
Hello Everyone,
I want to exchange a part of a command with a variable.
Have a look at this Code:
private void MakeNormal(int buttonNR)
{
button01.Text = "l";
}
What I need now, is to change the 01 to the variable buttonNR.
How can I do this? The only possibility I could think of would be checking with IF-statements, but for many buttons that is a lot of code.
Any help is appreciated.
Btw: Why doesn't <code> something </code> work?
Reply
Answers (
4
)
creating barcode generation and reading
get data in textbox from SQL server 2005