[2005] Question About FileIO and Lines -
Hello.
I have been attempting to learn Visual Basic, and the books I am using do not say anything about this. How would I go to a certain line(specified by a variable) in a text file.
Thank you in advance,
Dunning-Kruger
[2005] Question About FileIO and Lines -
Hello.
I have been attempting to learn Visual Basic, and the books I am using do not say anything about this. How would I go to a certain line(specified by a variable) in a text file.
Thank you in advance,
Dunning-Kruger
[2005] Restore File From Recycle Bin -
Hello again!
In my program I need to be able to send them files to the recycle bin; then, there is also a need to be able to restore files from the recycle bin.
Sending to the recycle bin is covered with :
Code:
My.Computer.FileSystem.DeleteFile(SelFileName, FileIO.U
[2005] Check if "File In Use" & Recycling Bin -
Hello
I have a list of files which are to be send to the recycling bin. However using this current method is extremely slow, and often produces errors if the file is in use.
Code:
My.Computer.Filesystem.DeleteFile(_
FILESPATH,fileIO.UIOption.OnlyErrorDialogs, _
FileIO.R
[2005] String.Concat generates a string but issuse a format not supported exception -
I need help with this perplexing problem.
The following is ment to generate the path to a text file and stream the data found there into an array.
Dim y1 As String
Dim y2 As String
Dim y3 As String
Dim path As String
Dim b1 As String
Dim b2 As String
Dim z As Integer
Puzzling question on Matching up dates and accounting for double entries -
Hi there,
I have two worksheets in one excel file. The First Worksheet is a complete worksheet, and the second is to update the first.
First Sheet:
01/01/2005 .....more data.....
02/01/2005
03/01/2005
04/01/2005
05/01/2005
06/01/2005
07/01/2005
08/01/2005
09/01/2005
10/
VB 2005: TextFieldParser -
Hello all,
I want parse text file> The MSDN libs shows something like this:
<VBcode>
Using Reader As New Microsoft.VisualBasic.FileIO.TextFieldParser(file1)
Reader.TextFieldType = FieldType.FixedWidth
Reader.SetFieldWidths(6, 19, 16)
[2005] progress bar when copying a directory -
how can i do it? without having to recursively count all files and monitoring how much files have been copied?? i want to just use fileio.filesystem.copydirectory and get a progress bar for it...is it possible??
[2005] Delete File C.E. -
CE 5.0 project...
Trying to delete a file I just created - having a hard time getting the FILEIO reference to work in the IDE.
What am I supposed to IMPORT to get this namespace?
[2005] Passing currentField of from a TextFieldParser. -
The following is a text file of 4 lines delimited with (,) making 8 elements and 1text string making 9 eliments in all.
In my Environmental dictionary Environment and Conservation, Devoid of life non-biological.
http://en.wikipedia.org/wiki/Abiotic, non-living chem
[2005 Tip] Read Any Text File Into A DagaGridView -
I started using VB 2005 Express yesterday. I wanted to populate an Unbound DataGridView from a text file. I couldn't find an easy way to do this...
I didn't want to use any data binding, databases, etc... Just wanted to read the file and put its contents into the DataGrideView.
Deleting -
Delete Code:
My.Computer.FileSystem.DeleteFile("C:\tempsysfile.html", FileIO.UIOption.AllDialogs, FileIO.RecycleOption.SendToRecycleBin)
How could i make this code to delte without asking confirmation code?
tanks
[2005] String length problem -
I'm using VB.NET 2005 Express, and I am reading in the contents of a text file.
I have declared:
Dim strLine as String
I'm using the StreamReader to read the contents of the text file, and I'm putting the contents into strLine.
Unfortunately, it only seems to read in the firs
Runtime question -
I have a question simliar to crustin?(SP)
I have a dynamic array...........and it sets the array to however many lines there is in a text file....(which i only know at run time) So on run time is there any way to create as many labels as there is number of arrays. If not making 20
[2005] Refreshing Form -
Hi,
The problem I have is that when I do disk intense operations the form does not refresh. For example I do reead 1,000,000 lines and write them back slightly modified. I have a line somethin like:
if lines\10000*10000 = lines
txtbox = lines
endif
But it never refreshes. I
Unwanted lines in a picturebox -
Hi,
in my application I have a Picturebox in which I'm drawing several Lines and Circles (Line- and Circle-Method) to movements.
The position for the lines are stored as coordinates, for the drawing I'm computing them to PixelValues. I'm not using any logic that's checks whether a Pi
Not Sure How To Title This -
Just wondering how I put words on different lines of a textbox and make them scroll up?
first part of the question... how do i put words on different lines... i want the text box to disply a message like this.
These
Are
On
Different
Lines
the second question... is it po
[2005] XML Web Service Multi Line problem, Solve it if you can -
Hello again,
i havent posted here for the last 2 years but i am happy to be back here.
i have a visual basic .net 2005 project that calls a webservice method ( built also using vb.net 2005). this webservice is supposed to log some events [ insert a database row] into a sql server
[2005] clearing drawn lines from a form -
Having now harnessed the power of drawing lines (newby ) is there a way/command to clear the form of these lines.
Im doing the following when a button is pressed to draw some lines:
Dim this_graphics As Graphics = CreateGraphics()
this_graphics.DrawLine(pens.r
Help replacing a specific line in text file -
I'm very new to Visual Basic, am working on an existing application.
Here is my code:
Code:
Dim logFile2 As New FileStream("Files\2005-12.csv", FileMode.Open, FileAccess.Write)
Dim logWriter As New StreamWriter(logFile2)
logWriter.WriteLine(lines(0) & "
How to change control layers at design time -
Sorry if the title isn't accurate. I don't know exactly what to call this...
I have drawn some adjacent labels on a form. Then I drew some line controls between them to create a grid so that each label area is defined. Once I was happy with it, I selected all of the labels and lines
[2005] Tasklist -
hi all,
this is more of a VS2005 question than a vb question
a long time ago i saw an option in VS pro version ( or at least a link in some ones sig to a how to) to make a task list in VS and "anchor" the tasks to certian lines of code with a little blue line.
Perl CGI - simple question -
Im super new to perl and i dont quite understand this.
I create a sub, and send $text. Then i split $_ into @lines.
Now if i do a foreach loop and change the $line in @lines, i then want to save that and return as $list. But its a list so if i go
$text = @lines #im just going to
[2005] Only read new lines in text file. -
Hi, i need some help with trying to read a log file that it constantly being updated by a server.
Example:
Server writes 10 lines to log file.
My application then read ONLY the ten new lines.
The reason i only want to read new lines since last read is that i want to transfer accr
Lines of code counter -
I'll be honest, I have absolutely no idea where a question like this belongs...
Anyway, does anyone know of a good program to count lines of code? I would just use VB's locator, but I have a lot of white space for readability purposes, so it's not accurate... It says I'm at almost 5
Question on the lines that are added to my text10. -
Hey guys I have a text10.text, and new lines are added to it.
like this ..
Text10.Text = Text10.Text & vbNewLine & "Scanning in progress...Please Wait.."
but what is more of an annoyance is the new lines are not in focus, like they are added, but the user nee
[2005] IDE Question -
Does .Net have, within the editor, some kind of graphical tool that draws lines to match If statements with their corresponding End If statements?
Thanks,
[2005] Delete few lines -
How can I delete first 15 lines from txt file?
(File is too big, and speed is too important to read whole file and save it without few lines )
If then else Score -
I have some messy code and need to add another feature, but need some help doing so...
Key:
<tab> = I can't type a tab, so I shall put one of these
File contents:
[user_answer.csv]
0,68,285
0,68,286
0,68,287
0,69,290
[question.csv]
... (im not going to type out
Simple List Question -
Say I've loaded a bunch of lines into a listbox...... all i want is if any of the lines contain (yes, contain, as in InSTR) the text "@bt" then i want my program to remove the ENTIRE line. When the program has finished getting rid of the "@bt" on any lines from the
[2005] quick MsgBox question: how do i write two lines (or more) in a liMsgBox -
its probably so easy but i can't find it in the MSDN
it should be something that is related to Char(13) or Char(10)
anyone?
[2005] Drawing Rubberband Lines on a Complex Background -
The title of this post supplies most of the information for my question but it's actually not the drawing of the lines that I'm having trouble with - it's the erasing of the old line once the mouse has moved.
The only code I've found uses the DrawReversibleLine function which would
[2005] RichTextBox insert -
I have two RichTextBoxes, RTB1 and RTB2. Each box contain a number of lines, and the first 7 chars of each line contains a unique code. The lines are sorted on the unique code.
What I want to do is:
When Key1 matches Key2, I want to take a portion of the line in RTB2 and INSERT it
[2005] clearing the pane (and lines) in ZedGraph -
Hi,
Im using ZedGraph and am fine adding lines etc, im looking to then clearing the pane and removing the lines (and the legend).
Thanks
How to remove string at runtime -
For example I use this code:
Code:
Dim lines() As String
lines = Split("Visual.Basic", ".")
Text1.Text = lines(0)
Text2.Text = lines(1)
So at runtime there will be created two strings "lines(0)" and "lines(1)"
Question: How can I rem
{RESOLVED} [2008] FTP Errors -
I am receiving the following error when I upload a file.
- ex {"The value of argument 'showUI' (5) is invalid for Enum type 'UIOption'. Parameter name: showUI"} System.Exception
The funny thing is that the file still uploads correctly. However, I cannot have my program
Problem importing delimiter text file -
Hello and happy new year.
I have a problem in reading a text file in VB 2005. What I want to do is to read a text file which contains delimited. eg.
AA, date, value, color
1;10/10/2007;11552;blue;
2;15/12/2007;15222;red;
I want the text file to imported in a winform in d
Mobile app differences -
Is the FILEIO namespace different on the compact framework?
I want to delete a file and I'm having a hard time with referencing the syntax.
Deleting first four lines in a richtextbox ***resolved**** -
hi ,
i have some data comming from a micro processor in the data there r some tags and information that i'm removing using replace but then it leaves blank lines in the text files.so the question is how can i remove the first 4 lines in a text file ?
thanks for your help !
[2005] copy selected lines from listbox1 to listbox2 -
I have say... 10 lines of text in listbox1. how can I copy lines 5 thru 10 to listbox2 on buttonclick?
Refreshing lines -
Hello peeps,
I have a number of lines on my form, which when I drag & drop a graphic over, tends to destroy the edges of the lines (which from the border).
Can I periodcally refresh these lines.