How To Read A Specific Subitem
Oct 6, 2010I want to read a specific subitem.I was trying to use the line str = listview1. items(4). subitems(0).text But this gives me the item text not the subitem text.
View 3 RepliesI want to read a specific subitem.I was trying to use the line str = listview1. items(4). subitems(0).text But this gives me the item text not the subitem text.
View 3 Repliesit's possible to move listview1 subitem(1) to another listview2 subitem(5)
View 5 RepliesI have a txt file that I need to read into a listview, but I need to read from a specific line in that file. Below is a sample of the txt file to read,
6400,3200,2,95.5,84,76.6,0
1,2,-20,15,0,0,0,"NO",0,0
TOTAL GPM= 6400 HWT= 95.5 CWT= 84.0 IWBT= 76.6 ALTITUDE= 0
CODE]...
This is my first post in forum. Is it possible to read specific Event ID from remote machine?. In EventLog class there is no option to restrict the return data. WMI allows us to query specific logs, Similarly is any option in VB.NET?
View 6 RepliesHow to read a specific value from inf file.
View 4 RepliesI have atext file to read
its like this:
T02
X200876Y-140576
X220177Y-124676
X178377Y-124076
X136477Y-121376
X135377Y-110975
X135476Y-120376
this is part of the file. I want to read everything after T02
how can i read after T02?
if i can make a prog that connects a website read each text below a line containing "3-letter words", "4-letter words", "5-letter words", "6-letter words"
leyend * = comment (ignore it)
e.g
3-letter words
*aby, abi, bay, bai, babi, ...
what is in line * i need to make the prog read that and output to notepad.for example
Imports System.Net
Imports System.IO
Dim req As System.Net.WebRequest = System.Net.WebRequest.Create("http:www.a2zwordfinder.com/scrabble.html")
[code]....
I'm tryign to read a specific attribute from a xml website using this code:
'this is the url im trying to read, tmpIn is a string that complete the url:
Dim url As String = "http://maps.google.com/maps/geo?q=" & tmpIn & "&output=xml"
Dim reader As New XmlTextReader(url)
[Code]....
The problem is tmpIn takes diferents values (string) when the function is used and sometimes this works, and othertimes it gives an error (Invalid character in the given encoding. Line 9, position 15.), but is not because of the url, is when it tries to read the coordinates...
In VB.net I'm trying to read in a specific line from a file. An example of the line in the txt file is:
[PATH] = "/this/directory/run.exe"
how to open the file for reading and writing in VB, but I need to parse out the path in the "" (quotation marks).
I am to search for a particular string in a text file, which I can do using a regular expression.Upon getting this string I am supposed to search for another one then, find a value corresponding to some time step and write it to an excel file.How do I indicate the position from which I want my reader to commence? Let's say my match.Index returns 100 000 as the location for the first string I was searching for. How do I then resume my new search at this point?
View 10 RepliesAssuming I have a Form and a Textbox
and a short text like this :
QuoteJohn B Smith
12345 Mesa, AZ 99999-8888
(123) 456-7890
Age: 65+
What I want is when I copy the text into clipboard and paste it to the TextBox, the Textbox only displays the third line (the phone number). It should look like this :
My XML document is setup like this:
<Parents>
<Parent Name="A">
<Child1>1</Child1>
[Code]....
I've been trying to figure out how to select Parent B's Child1 node so I may extract it's value. I have looked into SelectSingleNode and SelectNodes
I've got a file containing the following:
2662666;Birch, Red; 15.65; 2
8228880; Teak, Burmese; 32.95; 4 ;(0,0,2000,1750)#(2000,0,0,1750)
[code]....
I am very new at this, but I am writing a program to log in and read information off of specific web pages. I have gotten serveral working already, but I'm having a problem with this one. Here is the code in question:
[Code]...
I want to look up a value in column B and if the value of the cell in column b matches my searched value i want to look up a value in another column. If both values match the values i am searching for, i want to exit the while loop.
If there is no row that contains both my values in the range of cells, that contain any value in column b i want to exit my while loop.I am literally crying, because i just can't get this done.As you can see i am trying to do this via a for each loop.
there are so many things that didn't work so far...the rows 3 to 6 are filled, but rows 7 to 10 are empty. row 11 is filled.the counter returns the value for counter, that shows, that only not empty cells or rows were counted. I just don't get it. A already wrote, that if the cell.value is nothing, counter shoul be incremented, but this didn't seem to work.I also tried the findmethod in vba, but couldn't get it to work.
my code:
Code:
Sub GetSumme()
'====================================================================================================
' Dieses Sub summiert die zu kaufenden und verkaufenden Mengen. Wichtig f�r den korrekten Start
' im aktuellen K�stchen ist der Wert, der in "bearbeitet" steht. Das ist ein fortlaufender Wert, der
[code]....
I wanted to read a spefic word from the text file and if the word exist i wanted to copy the content under that specif word and place it in textbox.For Example My specific word will Top. Under the top it has number like this:12.3.45. So i wanted to coppy that number and place it in text box.I did something to serch for the specic word but it aslways come out false this is my
Private Function IsFileContainsSrting(ByVal SearchWord As String, ByVal FileName As String) As Boolean
Dim FileContents As String = String.Empty
[code].....
How do I read/get text/line between specific text. For example:
my html-file contains
<title>This is my Title</title>
I have found a code, which I needed to convert from C#, but it doesn't work:
Private Shared Function GetTitle(html As String) As String
Dim r As New Regex("<title.*?>")
Dim Title_start As Integer = 0
[Code].....
I have already loaded the html-text into a rtb, so perhaps is easier to extract it from there.
I want to read the text file. But i do not want to read the whole file. i just want to read the content below the specific word. For example:
[Code]...
I want to ask whether the above code is correct and also how should i read only the content below the word "Top".
I have a block of text in a text .txt file that looks like this: [code]I've tried reading every character and entering them into a 2D array (failed)I've tried splitting them into individual lines and entering them into a 1D array (Success, but very difficult to target individual characters from this, and will take a long time to set up as I only did this for 10 lines)
View 2 Replieshow I would read specific line in a text file.Is this possible, if not I would like to know so that I can make the extension in C#?
View 1 RepliesIs there anyway to read a specific line from a text file. Such as reading the tenth line of a text file?
View 3 RepliesI want to read ALL text between specific <b1> and </b1> tags + hide the tags, example text:As part of the Visual Studio product range, Microsoft created a set of free development environments for hobbyists and novices, the Visual Studio 2005 Express series. One edition in the series is Visual Basic 2005 Express Edition, which was succeeded by Visual Basic 2008 Express Edition in the 2008 edition of Visual Studio Express.[8]The Express Editions are targeted specifically for people learning a language. They have a streamlined version of the user interface, and lack more advanced features of the standard versions. On the other hand, Visual Basic 2005 Express Edition does contain the Visual Basic 6.0 converter, so it is a way to evaluate feasibility of conversion from older versions of Visual Basic. [code]I want to use .rtf because i need to save color etc.
View 11 RepliesVS 2008 Read specific lines from txt file?
View 2 RepliesI want to read a specific line from an html source code. Im storing the source into a string file and i want to read the line X.So im using this method that i found on net
Public Shared Function ReadSpecifiedLine(file As String, lineNum As Integer) As String
Dim contents As String = String.Empty
Try
Using stream As New StreamReader(file)
[code]....
I have two part in text file. Let say Part 1 and part 2. I want to write part2 in different file and part 1 in different file.
View 5 RepliesIs there any way of being able to read the structure of a specific directory in tree view. [code]
View 2 RepliesI need to read one specific line of a .txt file.. How do I do it?I don't know what item will be there so I can't search for a specific letter... It will be a textbox text.But I know that it will be the 3 line.Originally Posted by ExampleLorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla rutrum risus et ante tempus pharetra. Integer lacus felis, interdum non elementum in, egestas et ante. Aliquam eget nulla sed lectus accumsan congue at dapibus massa. Etiam nisi arcu, vulputate nec venenatis sed, fringilla nec ipsum. Duis quam lectus, venenatis sit amet faucibus ut, eleifend at tortor. Proin dignissim he
View 5 RepliesOkay, so I've been looking on the web for a way to read only ONE line out of a text file. Recently I've gotten by by creating separate text file for each line (such as a text file named, "Username", another named "Password", instead of creating a single text file with both the user name and password.) Now I am faced with having to do this. I want a quick and easy way, VB won't let me do open file as input #1 for some reason. I just need the second line of text out of this text file. What is the quickest and easiest (and painless) way of doing this?
View 8 RepliesI want to make an option to load a playlist file into a textbox.. To do this i guess i will need the OpenFileDialog and Streamreader..
Untill further i have done this
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
OpenFileDialog1.Filter = "Playlist files|*.pls;*.asx"
[Code]....
I want to be able to read ONLY the link from the file.. In the first file above it would be after the "File1=" text in the file.. And in the other file it should be whats written after the "<ref href="" part..
And as you see in the second file there are three links, so to start with it should only read the first line, maybe later i could make a selection window popup or something..
i'm working with visual studio 2010.I need to read out the resolution from a MPEG file. So that would be the video width en height.I think I need to create a button linked to an openfiledialog.show(), and then get a property from the specified file, by passing it on to a function.My question: Does vb.net has build-in methods to gather the property of a file? Or does one know a free com component that does it for me?
View 1 Replies