473,405 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

dispaly int value

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

Nov 16 '05 #1
2 1092

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

"didgerman" <aw******@hotmail.com> wrote in message
news:NH*************@newsfe2-gui.server.ntli.net...
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

Nov 16 '05 #2

"Christopher Kimbell" <a@b.c> wrote in message
news:40********@news.broadpark.no...

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

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: cwizard | last post by:
I'm calling on a function from within this form, and there are values set but every time it gets called I get slammed with a run time error... document.frmKitAmount.txtTotalKitValue is null or not...
1
by: pargat singh | last post by:
Hi Everyone, I have two listboxes and one Datagrid.On first listbox SelectedIndexChanged i am populating Datagrid. i want that when i select value from second listbox, on...
1
by: hullyi | last post by:
i have 2 frames one is a header with a menu and the other one is for dispaly, i want that all the aspx forms will be displayed in that frame even if i use 'response.redirecty' action
5
by: Ted Ngo | last post by:
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { txtSource.Focus(); frmMain.Visible = true; divWait.Visible = false; btnsubmit.Visible = true;
4
by: Patrick | last post by:
Hi All. I'm newish to xml/xsl so forgive me if this has been discussed before. I tried to google the info, but I'm not sure about terminology. So I am looking for input on a solution or a link...
9
by: vsraot | last post by:
Hi, How to dispaly two dicimal points in java (Example 1) 5.70 Example 2) 561 but it should display as 561.00) Example1) Here I am able to display 5.7 but it should display as 5.70 Example...
0
by: ARCHANAA | last post by:
hi, i m using asp.net ,oracle10g. my os is windows xp . i m also using office 2003 . in my application i want to dispaly data from an excel file to datagrid in asp.net page send me an...
2
by: leninv | last post by:
I have the following code <% if i = 0 then pindnt = string(level*2," ") %> <td><% = pindnt & recs(i) %></td> Using string(level*2," ") I am calculating the number of Spaces I...
1
by: sunilkumar123 | last post by:
sir, i am getting problem to dispaly 10 rows at my page and the next 10 record at next page and if you want to come back to previous page
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.