I have an assignment due tomorrow, and I thought I had it all figured out but there is one question I don't know how to program. The assignment consists of a form with textboxes in which the user types info about a book (author, title, genre, etc.), which he can save to a textfile by clicking the save button. (At the moment it's not saving it to a textfile but just a 'file', which can be opened with notepad but is of no specific datatype, not sure how I do that, but is less important). There is also a button with which the user can display information from a different, earlier created textfile.[code]
I wonder if it is possible to find a specific row and specific columns in data base file (Access) . You see , I am using a DataGridView control to show only SOME of the columns (fields) of a table from an Access file . For example , lets say that in the DataGridView control I only show the following fields :Field1 , Field2 and Field3 .Now , when the user selects an entry in the DataGridView control , I want to insert the text from Field4 into a text box on the form .
The problem , however , is that I don't know how to get the specific row in the data base file and also I don't know how to get the text in column (field) Field4 of that row .One thing that might be important is that the index of the row in the data base file is not necessarily the same with the index of the current row in the DataGridView control . This is because in the DataGridView control the rows are order by the contents in the ID Field .ol .
I have a form, that when opened, displays the image from the webcam onto it.
It's a test, to ensure the webcam is working. A prompt appears that asks if the webcam is working. However, some testers are lying and I need to find a method to make sure they can't lie.
My team wants to use a large bar code that the tester has to hold in front of the camera.
So I need to figure out how to either read the bar code, or just read the text in the bar code, which reads, "* C A M *."
It looks like the image below, but much larger.
Does anyone know where I should begin? I was thinking about using GetPixel, but I'm not sure I could or if that would be reliable enough.
I am loading a webpage within WebBrowser1 and trying to check the page for text. I just want it to find whether or not the text on the page says "No jobs are available at this time." and if those words are not found then I am going to have the program alert me. When I run this code..
I'm trying to make a program that can export my schedule into a CSV file to upload on to google calender.I need to extract some text within a textbox control. I'll show you an example.This is the text in the textbox:
What I am doing is creating a simple login and register system. I am going to save the information of each user into a text or ".dat" format and have them placed into a folder called "accounts".The small problem that I have is the "Forgot Password" option. I can't think of how to search all the documents for the e-mail or the username.So basically I need to know if it is possible to do a small search for the e-mail through all the documents in the "accounts" folder.
-I know another option may be databases...but I don't completely know how to use these. -I have general knowledge of arrays
I really have some question regrading web browser, and i don't understand why am i getting this error
"Object reference not set to an instance of an object."
This is the page source
PHP <a name="profile-comment-username" href="/user/one4one" style="font-size: 12px;"><b>one4one</b></a> you see the (one4one )
I want my program to go and search on the website, and if it founds it then i just show a message box ("Found")
here is my code
PHP For Each DivTag As HtmlElement In Webbrowser1.Document.GetElementsByTagName("a") Dim s = DivTag.GetAttribute("profile-comment-username") If DivTag.Parent.OuterText.Contains("one4one") = True Then
Using VB.NET i want find a specific string that occurs in column B of an Excelsheet and copy that entire row and paste it in a new worksheet. This string occurs a couple of times in this B column.I know how to open up an excel sheet in VB but I'm having difficulties searching for the string and then copying that entire row and do it multiple times (loop until the end of the column)
How to get this "Blabla" to my application?Dim rx As New Regex("(?<=<h1 class=""" & Regex.Escape("mf_dI mf_Hblack mf_vmi") & """>).+?(<=</h1>") MsgBox("Name: " & rx.Match(WebBrowser1.DocumentText).Value) but it don't works.
And. How to get picture from website to picturebox if this picture is in the table like <table style="background:url('/blabla.png') no-repeat"> ??
I'm new here and I'm trying to make a little program with Visual Basic (2010 Express Edition).The purpose of this program is:
1) Load the text file lines and split them into a constant and a value
2) Edit the text file lines values
The content of the text file is like this:
[Code]...
This basically split every lines in two parts: the constant ("Name", "Surname", "Age", "Hair") and the values ("Mario", "Rossi", "50", "Black").Now about the second point, I've added a Button1 which should take the Textbox1/2.Text and the Combobox1 selected item and replace the values(aka separator(1)) in the text file. The problem is I don't have any idea at the moment how to do it. What method should I use?
I have a text file I'm trying to pull specific data from to make a report in excel and am wanting to know if my code can be improved or if I have something wrong. If it's apparent to anyone that I should be doing something elThis code does work but, very slow. These reports take up to 20 minutes for about 100 files so I am wanting to decrease the time somehow. I have attached the whole sub in a text file, it's about 900 lines long so don't think I should post all of it. This is one part that seems to take the longest:Partial code that reads the text into a string, then each line is read to find whether it holds the data or not. Inside this while loop, I am checking numerous lines to see what they hold and extract specific items. First I verify it's a interface by checking for "line protocol".
Dim str As StreamReader = File.OpenText(filefound) While (str.Peek <> -1) If txtLine.Contains("line protocol") = True Then 'Found an interface,
Okay, 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?
i have to create something that uses OpenFileDialog, and reads textfiles that i created it.
i did this
Private Sub SK_btn_OpenFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SK_btn_OpenFile.Click SK_OpenFileDialog1.ShowDialog() End Sub
I know how to read the File name, but i want to post the texts that are in the TextFile in my textbox when i press Open/Display file.
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles SK_OpenFileDialog1.FileOk
how to print the values of the items on a listbox to a textfiles. im trying to generate a report based on a query against a database. ive tried using linq to sql but it dint work presummably coz im usin an mdb database. is there an easier way of obtaining the values from a queerry and generating a report.
I have search system that works like charm: 1> Searches specific folder for text files which contain specific word 2> Puts those text file names and/or paths to listbox However i want it to put (instead of InputStr) the specific line where word is found in text file to listbox.
I have a folder with several textfiles. The only thing i need from the files is the last 10-15 lines from each file, printed into a new file. There is a sentence that is uniqe inside (but the same for all) at the line i want to start copying from.In other words i need to seach for a spesific word, copy everything from that line to the end of document, and print that to a new doc. Repeated for all files in the current folder.
Is is possible to import or migrate .txt files to my database? Im using VB 2010 Express. Im just a newbie in Visual Basic and I need to import a text file into my system.
I will have a directory of files (IFO, BUP, and VOB; DVD files for anyone who cares), I need to find the first one by sorting these like this: Filter out everything that does not have a .VOB in it, then find the one like this VTS_**_1.VOB. It will always have a "1" before the extension, but the two numbers before that change, lastly I need that file returned as a variable.
I have an SQL database, and 50 text files, and Visual Basic 2010 Premimum,I need to find a specific line of text in the text files and then take the next 37 lines of text and save them in my database. I need advice as to point me in the right direction
I have a problem about finding a text in ListView.... Ex: no. Name 1 Andy 2 Endy 3 Rudy
If I input "n" then ListView should have no. Name 1 Andy 2 Endy
Here is my code Private Sub findButton_Click(ByVal sender As Object, ByVal e As EventArgs) _ Handles findButton.Click Dim item1 As ListViewItem = findListView.FindItemWithText(textbox1.text) If (item1 IsNot Nothing) Then MessageBox.Show("Calling FindItemWithText passing" & textbox1.text & ": " _ & item1.ToString()) Else MessageBox.Show("Calling FindItemWithText passing" & textbox1.text & ": null") End If End Sub But I don't see the result...
I've been writing a socket application in which the client sends a user/pass combination which the server compares to a local text file. I'm only hacvin a problem with a small section where I have a do loop which does this comparison:(the string 'fromclient' has been defined earlier, as the information was received from the client)
fromfile As String Dim sr As StreamReader = File.OpenText("C:PASS.txt") Do While sr.Peek <> -1