1 Replies - 610 Views - Last Post: 26 March 2009 - 06:55 AM

#1 rojo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 26-March 09

Recall the Last Interget Entered

Post icon  Posted 26 March 2009 - 03:27 AM

Hey Everyone,
I was wondering if anyone knew the code to view the last integer entered in a textbox.

The image below shows you what I'm talking about. It has to be Under the 'Calculate' Button, so when clicked appears onto the label.

Posted Image


I've searched a couple of references and they seem very complicated, Im just seeing if there is a simpler way to do it.
Thank You

Is This A Good Question/Topic? 0
  • +

Replies To: Recall the Last Interget Entered

#2 bodom658  Icon User is offline

  • Villiage Idiom
  • member icon

Reputation: 113
  • View blog
  • Posts: 1,123
  • Joined: 22-February 08

Re: Recall the Last Interget Entered

Posted 26 March 2009 - 06:55 AM

Well, lets say your "Enter an Integer" box is textbox1, and your "Last Integer Entered" box is textbox2

Once the user enters a number and hits calculate, this integer they entered becomes the last integer entered, as far as I can deduct. What you want to do is just take the text of textbox2 and set it equal to that of textbox1.

so the following should be somewhere in your button event handling function:

textbox2.Text = textbox1.Text



This is just like setting one string equal to the other, and is the best answer I can give without seeing your code.

FYI This should have been posted in it's corresponding forum. Not knowing the programming language, I assumed C# here. Please post all programming related questions in the proper forums

~Bodom

This post has been edited by bodom658: 26 March 2009 - 07:03 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1