473,323 Members | 1,589 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,323 software developers and data experts.

c# in .NET newbie, I need help.

I'm in a class for C# and have been reading ahead and trying to learn on my own, simply because I find it fun. What I need help doing is making a label display an integer each time it changes thanks to a button click. I was wondering if there was any way to do so with without programming the label to display every possible number the integer could be individually. I would appreciate any help.
Sep 3 '07 #1
5 879
Shashi Sadasivan
1,435 Expert 1GB
I'm in a class for C# and have been reading ahead and trying to learn on my own, simply because I find it fun. What I need help doing is making a label display an integer each time it changes thanks to a button click. I was wondering if there was any way to do so with without programming the label to display every possible number the integer could be individually. I would appreciate any help.
So on the button click event you want the label to display a new number.
On what basis is the new number decided?
Any examples?
Sep 3 '07 #2
well every time the button is clicked, depending on the value of another integer(direction), the second integer(x) or the third integer (y) goes up or down by one. I want the label to display the current value of the x, and another label to display the value of y. so for example, the default values for x and y are both 0. if the direction is 1 the y integer increases by 1. This occurs as long as y is less then 50. when that button that increases y is pushed, i want the label to change to display the new value of y. If this has not been described in the proper way, let me know and I shall try again.
Sep 3 '07 #3
Never mind, i figured it out. All I had to do was add label.Text = variable.tostring()
Sep 4 '07 #4
Shashi Sadasivan
1,435 Expert 1GB
Sometimes solutions are simpler than explaining the problem..
isint it...
cheers
Sep 4 '07 #5
Haha...yeah, but at least I found a site to get help when i'm sure i'll need it later for likely something as simple too. Thanks.
Sep 4 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: R69D | last post by:
Hi, I'm real new to Java and need some help...was going through some old tutorials and need help with these questions: 1)What is “composition of methods?” How do u define the composition of...
2
by: gavilaso | last post by:
Hi, i'm completly a newbie on PHP, I'm trying to make a static site search where i'm giong to put 2 category on a combobox for query.. box 1 Citys Carolina San Juan Ponce Box 2 ...
2
by: jasonjasonjason | last post by:
Hi. Im A complete newbie with php and know only the very basics and wondered if anyone had the answer to my problem? I have been adding/including files within my php pages like so: <?php...
5
bencoding
by: bencoding | last post by:
Hello, I'm a newbie to the .NET programming and need some help. I am creating a registration page and want to be able to take the username and password that the user entered and check to the the...
5
by: Banibrata Dutta | last post by:
Hi, I've gone through the list of "language differences" between 2.3 / 2.4 & 2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of CPython, and I consider myself still very very...
10
by: Peter Michaux | last post by:
On May 14, 8:55 pm, Prisoner at War <prisoner_at_...@yahoo.comwrote: Get it from the library. I cannot imagine needing to own an HTML book. There are plenty of good references on the web....
3
Lokean
by: Lokean | last post by:
Sorry for this newbie question, this is not my realm of expertese. I have searched google, tried several applications that claim they can do this, such as Mapforce, which I found confusing, to...
3
by: bolega | last post by:
On Aug 21, 5:12 pm, gnuist...@gmail.com wrote: I got an email that rapidshar corporation is giving out many academic versions of delphi legally free. Please tell me which combination of version...
4
by: djminus1 | last post by:
I am attempting to build a RIA using Flex3, PHP, and MySQL. I am really a newbie when it comes to MySQL. I need some help in desiging my database for this application. My application will allow...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.