VS 2008 Grabbing Random Combobox Value?
May 1, 2009I have a combo box with 20 items in it, i was wondering if it was possible to grab an item at random and display it, i'm not sure what code i would need
View 2 RepliesI have a combo box with 20 items in it, i was wondering if it was possible to grab an item at random and display it, i'm not sure what code i would need
View 2 RepliesI am creating a program that will allow me to manage server EXE's for which I have the method to do so already completed. The problem comes when I want my front end to be able to use a database of different server configs stored in a dataset.
My Database has 4 columns (ServerID | ServerName | ServerPath | ServerMod)
I wish to be able to select the ServerName in a combo box (already done via Datasource/DataMember) and then load the ServerPATH and ServerMOD for that row into two variables.
I'm working on adding a de-captcha into one of my programs but I can't seem to be able to grab the captcha from the web browser.I don't think I can just parse the URL and use webrequest to download it as it'll be a different string once it's reloaded.
View 1 RepliesI am trying to grab a small piece of information from imdb. Using Toy Story 3 at this link: [URL] It currently has a rating of 9.4. Now what I am trying to do is grab that 9.4/10. It is within the following html code.
[Code]...
I have set my webBrowser a URL and I have searched for examples but they didn't work and just return a blank screen.[code]And others and I know how to get a screenshot but not a webBrowser screenshot.
View 2 RepliesI'm currently using the following to code to grab the installed programs and list them in a ListView:
vb.net
Dim SoftwareKey As String = "SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS-1-5-18Products"
Using rk As RegistryKey = Registry.LocalMachine.OpenSubKey(SoftwareKey)
For Each skName In rk.GetSubKeyNames
[Code] .....
What I don't understand is when I run the code, I get a NullReferenceException was Handled on this line:
vb.net
If name.ToString <> "" Then
I haven't been able to find much on the error. It seems like it is a pretty generic one and can fit into a lot of different scenarios.
I'm trying to parse the current song off a shoutcast stream admin page put my app just hangs at that line.
VBCODE
Using wc As New Net.WebClient
MessageBox.Show(wc.DownloadString("http://66.90.121.11:10013"))
[code].....
okay so in webbrowser1 is there any way to grab text from it's textbox like say i go to google and type something in the textbox hit send can i grab the text from that textbox ?
View 5 RepliesThe problem I have is I have made a program which you select a value from a combobox and it changes the value of a url for a picturebox and thus changes the picture, I also have a button which randomizes all of the comboboxes so I will get something unique, but every time the program loads, and I hit random, it chooses the same numbers in order. If you need an example, when I press random the first time I get the number 7 for my first combobox, so the selected index=7, every time I load the program and press random it picks 7 for that combobox.
View 4 RepliesI have completed my project and i have one remaining thing to settle... I want to make the combobox not to be able to write yourself. for example there are 4 options ,"A","b", "c","d".If i type w in the combo all the project is ruined!i want not to be able to type at all to prevent this...Which property should i change?
View 5 RepliesI am really having trouble getting all the images from any website and listing them in a listbox.This is the code I tried:
1
ForEach UrlImage HtmlElement WebBrowser1.Document.Images
[code].....
At the moment I'm developing an application (Similar to Swiftkit.net's) that will aid users when playing Runescape.My next major project on the program is to Make a highscores look-up. (If you dont know about the Runescape highscores, HERE)Now, i want to grab data from that webpage, and add it to a form on my application. The form in particular, will display a specified persons levels on that form under labels.First of all, i have NO IDEA on grabbing stuff from the web in VB. Second, i have searched far and wide for something similar, but everyone that has something similar is not very willing to part with their hard earned code.
View 10 RepliesI'm trying to make a program where when you click a button it will retrieve each value of certain things on a webpage. I.E; [URL] On that webpage it shows Clan,Kills,Etc. I want to make it to where a Label will Say "Kills:" And another label next to it will have the value of kills retrieved from that webpage, and each time the button is clicked the stats will update if they are changed..I think it's simple to do, but I don't know how..
View 2 RepliesI would like to know how to enable my programs to rip image files off the web to display them in a picture box. all i know is how to use the web browser object to load the site with the image file on it
[URL]
i would like to know how to now transfer that image from the web browser to a picture box or just save it locally
I need to grab an image off a webpage (captcha)
I then need it stored in a PictureBox.
Ok so imagine there is a forumand when my program goes to this in web browser.
View 1 RepliesOkay this should be a quicky what i was to do is like say i have richtextbox This is the code in the rich text box and i wanta grab letter 14 so it does this This is the code in the rich text box so here is an example
[Code]....
for those of you familiar with acronis cmd i need to create batch file scripts quickly to restore tib images to hard drives, i am able to redirect the output of the CMD window to my form but i need a way to search the output and grab the disk and partition info from the output and stick it in text boxes, here is what the output looks like...
C:Program FilesAcronisTrueImageEchoEnterpriseServer>trueimagecmd /list /filen
ame:"I:gateway MT6733.tib"
Num Idx Partition Flags Start Size Type
[code].....
I've recently been working on some VB.NET programs, grab the value of the color of a pixel on my screen(Out of my WIN32 Application).
I need this so I can make a little bot that automatically pushes buttons for a online game called "JamLegends"(http:jamlegends.com). Its kind of like Rock Band, and if I can grab the color, then I can simply used 'sendkeys' to press buttons to make the bot work.
Edit: This is for a project in school. We need to make something that will make a program that will make something easier to work with or use(In my case, JamLegends). I have nothing to work with, I've researched a bit but I found nothing that can grab pixel color values.
Is there a way i can read a text file without downloading say at [URL] and show that textfile data in a text box or label? Also, can i get it to download say ZIP files from the site and unpack it? Or can i only download and you have to manually unzip it? Im pretty sure ive seen an unzip function somewhere.
View 1 RepliesI've made a listbox and imported multiple paths into it (writing the app in VB.NET 2.0).For example:
C:Path1file1.txt
C:Path2file2.txt
C:Path3file3.txt (varies depending on what the user selects)
I need to be able to grab each path seperately without having to get the user to select a particular item so i can do a batch of all the paths selected.
I would like to find a way to grab the assigned IPv4 and IPv6 addresses to different interfaces and being able to determine which interface they're tied to.
Currently I am looping ' System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces ' and able to grab interface specific information:
[code].....
So I have a list of book branches in an array called _branches. I need to write a procedure that adds branch names to branchNameListBox. Then I have to write a procedure that displays the information on the branch currently selected in the list box. The information should be displayed in sealPictureBox (branch image), cityLabel,nEmpLabel, and totalSalesLabel.This is what I have but the _branches are underlined in blue and it says the it cannot be indexed because there is no default property. what does that mean and how do I fix that?
Public Class BranchInfoForm
rivate branches() As BranchInfo = getBranches()
Private Sub BranchInfoForm_Load(ByVal sender As System.Object,
[code].....
ok so I am trying to grab a bunch of phone numbers from my html page. I have successfully grabed the first one but I dont know how to get it to loop around and grab the next one and list them out into a listbox. here is the code I have for getting the first value, but how can I make it go in a loop. I have been searching for hours and trying tons of different kinds of loop code but get errors every time.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("my html page")End SubPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = WebBrowser1.Document.Body.InnerHtml()End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
[Code]...
So basically i have atm
Label1.Text = Form2.WebBrowser1.Url.ToString
from there the label will update every 100ms and what i want to do is grab id=102570427 from...
arena/art/painting-and-drawing/vote/?entry_id=102570427#title
but, i need it to grab the code from different ids not just this specific one every link has id=????????? so i just need to grab the numbers no matter what they may be.
I have forums and it has a name on it in the smae place evry time no matter which userpage im on.
HTML
<dl class="stats">
<dt>Gamertag</dt>
<dd>Yoshi910</dd>
</dl>
the Name is always under Gamertag. Is there a way for me to Grab that name in .net
I have a form for which the objective is to show a field for each timezoneinfo stored in systemtimezones. Here are four segments of code, designer and form input code windows
View 7 RepliesI've read numerous posts and threads about random number generation, but I havent' run across this.If I generate a bunch of random numbers, the results are radically different if I create a new Random generator for each number than if I use on Random generator for all the numbers. The results are much more consistent and evenly distributed if I use the same Random generator.I would have thought the opposite,because creating a new Random generator each time should reduce the number of random repetitions, if a different time slice is used to create the random number.[code]......
View 9 RepliesI'm trying to grab information entered in textboxes. I'm trying to grab a name, an age, and a movie title from three separate textboxes, and put them into a single label like this:
"Name" is "age," her favourite film is "movie title."
after clicking the "Show" button.
I know it's a click event for the show button, but I can't quite figure out how to make the concatenated message.
I run this command in vb select tuid, finish_time, bay from orders_table where tuid between 1001 and 1005 order by finish_time asc
[Code]...
When I do the debugger to see what str is sending to the database I get this
str "update orders_table set start_time = (10/14/2011 12:20:00 AM) where orders_table.tuid =1006" String
It throws an error saying incorrect syntax near "12" It formatting datetime and I don't want it to... how can i fix it so it looks like this