Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 9th, 2004, 12:28 PM
Friend of Wrox
 
Join Date: Sep 2003
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.

Help

Thanks in advance

Louisa

 
Old March 9th, 2004, 04:52 PM
Authorized User
 
Join Date: Oct 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


 
Old March 9th, 2004, 05:46 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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?
 
Old March 16th, 2004, 05:59 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your help my databinding was a little screwy

Louisa






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.