Delete entries from unused text boxes
Delete entries from unused text boxes
Delete entries from unused text boxes
Delete entries from unused text boxes
Delete entries from unused text boxes
Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes
Delete entries from unused text boxes Delete entries from unused text boxes
Delete entries from unused text boxes
Go Back  Xtreme Visual Basic Talk > > > Delete entries from unused text boxes


Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2005, 06:37 PM
EasyCo EasyCo is offline
Newcomer
 
Join Date: Jan 2005
Location: Texas
Posts: 3
Question Delete entries from unused text boxes


I have created a simple application, which records what is inputted into a few text boxes. Each input inside a text box is saved to a file with a label above it describing what the input is. If nothing is entered into the text box, I have a label with a blank space below it. I would like to be able to delete those entries which are created from empty text boxes. I would appreciate any suggestions. Thanks.

Here is an example of the textbox entry being recorded...

Code:
Private Sub SubmitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SubmitButton.Click

    'declare a StreamWriter variable
    Dim workoutStreamWriter As IO.StreamWriter

    'create a StreamWriter object by opening the file for append
    workoutStreamWriter = IO.File.AppendText("workout.txt")

    'write the workout on a seperate line
     workoutStreamWriter.WriteLine("Bench Press")
     workoutStreamWriter.Write(Me.BenchTextBox.Text)
     workoutStreamWriter.WriteLine(" lbs")
     workoutStreamWriter.WriteLine("")

    ...
Reply With Quote
  #2  
Old 01-23-2005, 07:28 AM
EasyCo EasyCo is offline
Newcomer
 
Join Date: Jan 2005
Location: Texas
Posts: 3
Lightbulb

I have it figured out. Sorry, I'm new to this. Please excuse my ignorance.


EDIT: MOD you may delete this thread if you want.

Last edited by EasyCo; 01-23-2005 at 08:54 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Delete entries from unused text boxes
Delete entries from unused text boxes
Delete entries from unused text boxes Delete entries from unused text boxes
Delete entries from unused text boxes
Delete entries from unused text boxes
Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes Delete entries from unused text boxes
Delete entries from unused text boxes
Delete entries from unused text boxes
 
Delete entries from unused text boxes
Delete entries from unused text boxes
 
-->