Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 9th, 2004, 12:28 PM
Friend of Wrox
Join Date: Sep 2003
Location: , Kent, United Kingdom.
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re-population of text boxes

I have a form which has many text boxes where the user enters data, and this data can then be saved. This all works perfectly except that I have found that at run time a user can enter data into a text box and then delete this data, but when the user clicks on the next textbox the data reappears.

Also when the user saves one record and creates a new record all the text boxes are set to hold null strings to make them look blank, this is fine until the user clicks or tabs into them and then they populate with the data previously entered.


Thanks in advance


Reply With Quote
  #2 (permalink)  
Old March 9th, 2004, 04:52 PM
Authorized User
Join Date: Oct 2003
Location: , , New Zealand.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts

How are you saving the data in the textboxes? XML?

Reply With Quote
  #3 (permalink)  
Old March 9th, 2004, 05:46 PM
Friend of Wrox
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

Do you have any focus events in the form, such as GotFocus or LostFocus? Are you specifying data binding in the textboxes themselves or programmibly assigning the values to the textboxes?
Reply With Quote
  #4 (permalink)  
Old March 16th, 2004, 05:59 AM
Friend of Wrox
Join Date: Sep 2003
Location: , Kent, United Kingdom.
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks for your help my databinding was a little screwy


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rich Text Boxes speedlearner Pro VB 6 2 July 2nd, 2006 09:02 AM
Rich Text Boxes speedlearner All Other Wrox Books 1 June 22nd, 2006 08:04 AM
Using integers with text boxes clojinted General .NET 1 February 19th, 2005 08:12 PM
HELP with text boxes on webpage rwheeleragco Javascript How-To 1 November 2nd, 2004 04:32 AM
Form Text Boxes mrideout BOOK: Beginning ASP.NET 1.0 8 September 3rd, 2004 12:43 PM

All times are GMT -4. The time now is 10:32 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.