Get Websites Keywords?
May 19, 2009Get web sites keywords
View 6 RepliesGet web sites keywords
View 6 RepliesAfter press the button I want to get the the keywords of all these websites. So I use regex control here is my code :
For Each lvItem As ListViewItem In ListView1.SelectedItems
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(lvItem.Text)
Dim fire As System.Net.HttpWebResponse = request.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(fire.GetResponseStream())
Dim sourcecode As String = sr.ReadToEnd()
[Code] .....
In VB.NET, you can surround a variable name with brackets and use keywords as variable names, like this:
Dim [goto] As String = ""
Is there a C# equivlent to doing this?
Why does VB have more LINQ keywords than C#?
View 4 RepliesI have a question here. I'd like to develop a vb.net program to run thru all source code in a folder to look for certain strings.my initial thought is to create an .ini file then program will read the strings then start searching in the source code for the strings entered.
the final output will be an excel sheet, stating the filename and the line number.
is this a good way to do it? if yes, can i ask for a skeleton program?if no, any other way?
What im trying to get is when a button is pressed, it looks through a textbox and highlights the keywords. I found this:
Dim srch As String = "1"
Dim a As Integer = TextBox1.Text.IndexOf(srch)
TextBox1.Select() 'set focus to control
[Code]....
Im just wondering how i can achieve the following, this is for my own learning. Im going to be passing an XML file to VB.net and im hoping to pick out keywords from within the XML file is that possible?
So say the XML file had words such as "hello" "Today" "Next Week"
how can i possibly pick these out and store them in a varible?
I can do the first bit i.e passing the XML file in reading it etc, but im curious on the second part?
Can any one help me or if any one knows any good tutorials and locations please do let me know.
I wanted to make a that searches a web page(ex: wikipedia.com) for certain keywords from textbox?
View 2 RepliesHow would I make a program that would search through a .txt file, and find certain predetermined keywords. Basically, I have a very simple keylogger on my son's laptop to keep an eye on him. My hope is that I would make a program that would go through the .txt file, and if one of the keywords is found, then I would have the program execute a little something I have cooked up to warn to stop. The only problem is, I do not know how to search through the .txt file.
View 1 RepliesWe have users to type in Business Requirement in a text box.For instance : DOB Field is mandatory in Service Request Screen.
I am planning to define all the keywords in my code and once search button is clicked it should look for the keywords and throw a msgbox with number of keywords found.
Any code snippet vb for searching key words like name or id no. On my database connected with my vb form application?
View 2 RepliesIn what scenarios would one use the MyBase and MyClass keywords in VB.NET?
View 5 Repliesi'm used to be a VB6 user and started move on to VB.NET few days ago and i'm still quite new to its new syntax.Today i came across there is a object declaration with the 'Nothing' keyword follows at the end and what it actually means? Dim l_Active As AvsIdentityType = Nothing
As i know Nothing keyword is usually used to release the instance to the object after we used it but why it is used in the declaration statement?BTW, the 'AvsIdentityType' is a public structure.
I'm attempting to recreate a form in Crystal Reports, under VS2010, after a form created under VS2008 stopped working.I have reached a point where I am trying to copy the following function from the old form to the new:
Shared myVariable As String
myVariable = {myTable.myColumnName}
formula = ""
In the original function editor, the words "Shared" "As String" and "formula" are highlighted in blue as keywords.In my new version of the report, only "Shared" is highlighted as a keyword. When I try and save the function, I am told it contains an error. This error is reported as: "A variable type (for example, 'numberVar') is missing."
The formula works on the original formula workshop. Why not now?
I'm trying to execute an sql statement in vb.net to an Access database, I am escaping the reserverd word using square brackets []. This has worked in all my SELECT statements within the program.
The reserved word is level
But the SQL statement below fails saying
Syntax error in INSERT INTO statement.
If I directly copy the statement and execute this in Access it works fine
datalayer.getDataTable(String.Format("INSERT INTO users (username, password, [level]) VALUES ({0}, {1}, {2})", username, password, level))
The above statement works if I remove [level] and replace this with another column name.
I have a search page, which iam using to search the database fields which holds the technical articles. The fields that iam searching are varchar(max).
Everything is fine..., I want to show the results with the first found instance of searched keywords in bold and some 70 to 100 chars before and after.
i got a function that search for database data, is it possible that i make it search the nearest words or keywords? which mean if d name is TEST, n i key in TE then it will show those name wit TEST TESS TSST? [Code]
View 2 RepliesIf someone types in something like "red", I'd like the word's font color to become red. I tried something like this:
Dim red As String = "red"
Dim fnt As Font = New Font("Microsoft Sans Serif", 8.25)
If RichTextBox1.Find(red) > 0 Then
For Each _str In RichTextBox1.Text
Dim my1stPosition As Integer = RichTextBox1.Find(red)
RichTextBox1.SelectionStart = my1stPosition
But I dislike the highlighting-type approach.
Why did they choose to add a new keyword AndAlso, instead of just changing the functionality of the existing And keyword?
Why would one want to use And, instead of AndAlso anyway?
Is it not just increasing the number of keywords unnecessarily?
I am in the process of creating a program, using Visual Basic Express, for a physics professor who has recently had to rename all 1500 questions for his course. I created a database that has the old names, new names, and the entire contents of each question. The program seemed an easy enough idea, but has proved to be very difficult for me. I am new to programming (this is only my third go at it) and have searched for an answer to my problem for at least 20 hours, and have yet to find anything that will work for what I need.
What I would like is to have a text box in which he can type in a keyword (such as "Sun", "ISS", "Force", etc) and for the program to search throughout the entire "questioncontents" column and pull out any questions that contain those words into the datagrid. As of yet the closest I have gotten is for it to search the first word of the column, which is not very useful since most of them start with "The". I had also thought of creating several keyword columns and then just having it search through those, but I couldn't figure out how to apply the filter to multiple columns.
I am in charge of developing a searchable database which should allow users to search for any key term in every fils content in a folder. Note that I need to search for filescontent, not file name. Right now, users usually have to searchfor every file to look for particular filecontents with any key terms.
View 2 RepliesI am trying to decode yEnc data using the component found here:[URL]...It all converts fine, except for Line 173 of Decoder.cs which contains the c# keyword "unchecked".Without using unchecked I get an OverflowException.What is the correct way to implement this in VB?
[Code]...
I know it sounds strange but let me it explain. It has a purpose, but really all I'm looking for is the item with the most duplicates.I know it's possible and I've had a few ideas already, though none were successful or practical.What I'm doing here that requires this is creating an intuitive search for clients in a database. You type in a single field and click search. Behind scenes each keyword broken down from the single input field is searched through the table of clients, hitting each column and returning matches. the results are large in numbers, but truly it's the client that appears the same number of times as there are keywords.
View 1 RepliesHow can I exclude a common keyword like "a,the,is,or.. etc.." from my search query ? If you do a search in Google or other search engine it says "the" is a very common word, and was not included in your search.Is there a list somewhere that I can get all the common keywords that need to be excluded from the search query?
View 3 RepliesI have a small code and i want to highlight not only one found item in listbox but to highlight all items found under typed keywords.
Example: i typed vb.net programming and i wanna to find it all keywords under these names and highlight only those sites and put those keywords in textbox2 from textbox1.
I want like this:
Here is the code.
For i = 0 To ListBox1.Items.Count - 1
If ListBox1.Items(i).ToString.ToLower.Contains(Trim(LCase(TextBox1.Text))) Then
ListBox1.SelectedIndex = i
[Code]....
I want to have data types name inside enum as given below
Enum FieldTypes
String = 0
Boolean = 1
Date = 2
End Enum
Is there any method to achieve this?
With this code I can see what happening I'm just showing you what've I've done so far. Basically I want to use an If statement to see if an active directory object contains one of the keywords found in an INI file. I was wondering is this possible with just an IF statement or do I have to use a loop or a for each and how would I do that using one of those two
View 3 RepliesI'm making a (F1) part for my application. I made a form with a Webbrowser-control and I made several .html files. Now I would like that the users enter a keyword and that they see all the files where that keyword is found in the metatag <keyword>. What is the best (and fastest) way to search for that?
View 6 RepliesI was wondering if it is even possible to interact with other websites using my own.Here is the scenario: Lets say I have a Lockerz account, which is a place where you do daily tasks to earn points. Once a month you can redeem those points to get prizes such as an ipod, macbook, or other items. I know that sounds rediculous, but stay with me.
For someone to gain membership to this website they must be invited by a member. So I get your email address then log in to my account, then send you an invite from there.What I want to do is create a website where a user enters their email into a textbox and presses a submit button. From there the program, behind the scenes, sends my login information, and the users email address to lockerz and sends the invite. All without ever leaving my site.I have worked with ASP.NET with VB codebehind for a while now, so I understand the basics of that. I am just wondering if what i want to do is even possible.
have dragged out a "webbrowser from toolbox.
how to get a websites icon like msdn have this blue thingy.