|
-
Jul 18th, 2008, 05:42 AM
#1
Thread Starter
Member
[2008] Using ProgressBar
1. How can i use progress bar with a webpage loading .
2. I have a textfile and have got the data of the text file to a string now how do i arrange the date to the datagridview and the rows are increasing and decreasing all of the time so it should make its rows automatically
my current code is
Code:
Dim Filelocation As String
Dim Textfilestext As String
OpenFileDialog1.ShowDialog()
Filelocation = OpenFileDialog1.FileName
TextBox1.Text = Filelocation
Textfilestext = IO.File.ReadAllText(OpenFileDialog1.FileName)
Now some of the data is
Name,Startingdate,end date,age are the columns how do i arrange in
Datagridview
an example of the text files text
Name,Startingdate,end date,age
joe,2006,2008,20
mike,2005,2009,22
-
Jul 18th, 2008, 08:41 AM
#2
Thread Starter
Member
Re: [2008] Using Datagridview and progressbar
I really need help
If someone could lead me to a Datagridview tutorial i'll be thankfull
-
Jul 18th, 2008, 08:48 AM
#3
Re: [2008] Using Datagridview and progressbar
1. You handle the ProgressChanged event of your WebBrowser control. There's an example in MSDN library for handling the WebBrowser.ProgressChanged event, you can look it up.
2. You need to use a TextFieldParser or ADO.Net to load the text file's data to a datatable, then bind that datatable to your datagridview. There are already many examples on this in this forum. Just search for the term "csv datatable" and you should find some.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Jul 18th, 2008, 10:10 PM
#4
Re: [2008] Using Datagridview and progressbar
The MSDN Library also has good examples of using the TextFieldParser class that stanav mentioned.. I was going to add a code example to the CodeBank but decided against it because they wouldn't offer anything that MSDN doesn't already.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|