Click here to Skip to main content
15,887,585 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: textbox tab highlight text Pin
Luc Pattyn24-Nov-09 13:48
sitebuilderLuc Pattyn24-Nov-09 13:48 
GeneralRe: textbox tab highlight text Pin
PAguilar0924-Nov-09 14:04
PAguilar0924-Nov-09 14:04 
GeneralRe: textbox tab highlight text Pin
Luc Pattyn24-Nov-09 14:42
sitebuilderLuc Pattyn24-Nov-09 14:42 
Questionmodify a Variable in a specific line in a text file Pin
IvanIT24-Nov-09 7:14
IvanIT24-Nov-09 7:14 
AnswerRe: modify a Variable in a specific line in a text file Pin
Dave Kreskowiak24-Nov-09 7:25
mveDave Kreskowiak24-Nov-09 7:25 
GeneralRe: modify a Variable in a specific line in a text file Pin
EliottA24-Nov-09 7:56
EliottA24-Nov-09 7:56 
GeneralRe: modify a Variable in a specific line in a text file Pin
Dave Kreskowiak24-Nov-09 9:40
mveDave Kreskowiak24-Nov-09 9:40 
AnswerRe: modify a Variable in a specific line in a text file Pin
Luc Pattyn24-Nov-09 10:39
sitebuilderLuc Pattyn24-Nov-09 10:39 
How about this:
- forget the multiline TextBox, use a single-line TextBox instead;
- use File.ReadAllLines to get a string array;
- set an integer variable "index" equal to the array length minus 3;
- show the relevant line in the TextBox by setting its Text property;
- have the user edit it and indicate he is done somehow (a "Save" Button would be fine)
- store the TextBox.Text into the same array position you used before;
- and now call the right File method.

Of course if you know exactly what modification has to be applied, you don't need the TextBox at all and you can have your code do it for you.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: modify a Variable in a specific line in a text file [modified] Pin
IvanIT25-Nov-09 3:30
IvanIT25-Nov-09 3:30 
GeneralRe: modify a Variable in a specific line in a text file Pin
IvanIT25-Nov-09 6:26
IvanIT25-Nov-09 6:26 
GeneralRe: modify a Variable in a specific line in a text file Pin
Luc Pattyn25-Nov-09 6:28
sitebuilderLuc Pattyn25-Nov-09 6:28 
GeneralRe: modify a Variable in a specific line in a text file Pin
IvanIT30-Nov-09 5:24
IvanIT30-Nov-09 5:24 
GeneralRe: modify a Variable in a specific line in a text file Pin
Luc Pattyn30-Nov-09 5:38
sitebuilderLuc Pattyn30-Nov-09 5:38 
QuestionErasing GraphicsPath Pin
O.G.I.24-Nov-09 4:26
O.G.I.24-Nov-09 4:26 
AnswerRe: Erasing GraphicsPath Pin
Dave Kreskowiak24-Nov-09 7:24
mveDave Kreskowiak24-Nov-09 7:24 
QuestionCount lines in Textfile after Insert Pin
IvanIT24-Nov-09 2:28
IvanIT24-Nov-09 2:28 
AnswerRe: Count lines in Textfile after Insert Pin
dan!sh 24-Nov-09 3:03
professional dan!sh 24-Nov-09 3:03 
GeneralRe: Count lines in Textfile after Insert Pin
IvanIT24-Nov-09 3:07
IvanIT24-Nov-09 3:07 
GeneralRe: Count lines in Textfile after Insert Pin
Dave Kreskowiak24-Nov-09 3:45
mveDave Kreskowiak24-Nov-09 3:45 
GeneralRe: Count lines in Textfile after Insert Pin
IvanIT24-Nov-09 4:01
IvanIT24-Nov-09 4:01 
AnswerRe: Count lines in Textfile after Insert Pin
Shameel24-Nov-09 4:17
professionalShameel24-Nov-09 4:17 
GeneralRe: Count lines in Textfile after Insert Pin
IvanIT24-Nov-09 4:41
IvanIT24-Nov-09 4:41 
GeneralRe: Count lines in Textfile after Insert Pin
Shameel24-Nov-09 5:24
professionalShameel24-Nov-09 5:24 
QuestionSerial Port Signal to a VB.NET program (rs232) Pin
jamith24-Nov-09 1:07
jamith24-Nov-09 1:07 
AnswerRe: Serial Port Signal to a VB.NET program (rs232) Pin
The Man from U.N.C.L.E.24-Nov-09 2:00
The Man from U.N.C.L.E.24-Nov-09 2:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.