dispaly int value

  • Thread starter Thread starter didgerman
  • Start date Start date
D

didgerman

hello,
Here's a quick and daft question: how do I display an int value on a
windows form? Something like a label would be fine.
Any ideas?
Cheers
 
Add a label to the form.

In the code:

int i = 33;

label1.Text = i.ToString();

if you want it part of some other string:

label1.Text = string.Format("Some string {0}",i);


Chris
 
Christopher Kimbell said:
Add a label to the form.

In the code:

int i = 33;

label1.Text = i.ToString();

if you want it part of some other string:

label1.Text = string.Format("Some string {0}",i);

That got it.
Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top