Ping Utility - Display Websites Response In A Textbox
Jan 10, 2010
Ok so basically im trying to create a small program in visual basic 2008, which will simply ping a hardcoded url in the code and then display the websites response in a textbox. [Code]
how can i send a URL "https:[url].....without opening the web browser? and how do i get the response from it display it to my textbox? im using a vb 2008, can this possibly done?
im trying to do is ping a server and see if there is a response. If there is a response then i would like to set an integer to 1 if there is not a response set the integer to 0. I would also then like to gather any servers that had a response into a list box. I know how to build a list box just having trouble getting the code to set a variable if or if there isnt a response.
I have this code below that pings a hostname and responds with the status of the machine: vb Public Function PingHostname(ByVal strServerName As String) As Boolean Dim blnPingResult As Boolean Dim objPing As New Ping Dim objIPStatus As IPStatus [Code] ......
My question is... whenever the machine is not available it hangs as it times out and eventually fails and catches an exception. Is there a better way to do this so my application doesn't hang? What I have is a treeview with a list of computers and when I hit F5 it executes this code and pings the server.
i have tried altering some code i have to ping an ip address and store the result in an access db.i had it working when i had the ip hardcoded in as a string but I am now gettin an error.instead of having the ip address hardcoded in to the code i want it to be read in from the access db but im now getting this error:System.nullreferenceExceptionbject reference not set to an instance of an object at...button1.click event args ei have underlined the piece of code i tried to change
I am a former IT student and have not used VB in a little while but feel it can come in handy to help me complete some tasks at work.I am trying to write a small program which will open a url + a number for each number entered into the textbox. As an example lets say the website is "www.google.com/id=" and I enter into a textbox 3 values such as "134,325,2112", www.google.com/id=134, www.google.com/id=325 and www.google.com/id=2112 would all open at once.
The purpose of this is at work, we have an employee database and would like to load multiple employees at once (upto 6 at a time) to compare profiles. The issue with doing this manually is we have to fill out the search criteria for each, instead, I would like to load a link with parameters in it already filled out + the employee number we are searching for each number entered into a textbox on a VB form.
I want to post the textbox1 strings into the &username in the php textbox and also to post the textbox2 strings into the &password in the php textbox then click the submit button.
Here it is the code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MessageBox.Show("Please enter your username")
and in row 2 same as row 1. you can see in two response the tid is different and the balance is different,
example to understand this better im developing a web base application when a retailer sell a product with a quantity of 2, when i hit sell the response are look like in top of this thread and then i get it by tag but this is my problem how can i get this two on the datagridview?
I have a database I am creating with about 50 users over a network. There are about 6 groups of users and these users are spread across 10 branches. I want to block/allow users from particular forms and views. For example I want branch users forms to be filtered by their branch number but depending on the group they are in they can only see some forms. i.e. 50 users, 10 branches, each branch has about 5 ppl of where 1 is in group A and 4 are in group B. I want all users that belong to branch 1 to see the information they enter, but Group B enter data but cannot approved or delete, and group A can enter, approve and delete. So then. On my login form I have the user type his/her username but the i want LEAVE function to update 2 textbox where I have named GroupName and BranchNo. Basically to run a query and look for the username and return in one textbox that user's groupname and the other textbox the user's branch no. This information will be used to filter forms and block the user from certain controls. This is the code I have so far but still can't figure how to display the results.
Private Sub UsernameTextBox_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles UsernameTextBox.Leave 'Make Connection to database
[Code].....
It keeps highlighting the BranchNumber and UserGroup and giving error "Value of type 'String' cannot be converted to System.Data.OledbCommand
i made a tcp/ip application using the .NET TcpListener class, my problem is that sometimes (about 30 / 4000) the connection between the client and the server got interrupted in the middle and the server response to the client is lost.is there a way to know if the server response was successfully sent to the client without the client response back?
Anyone know what jailbreaking does to an iPhone? If so, is there a way to make a program to jailbreak 3.1.2 in VB or in RealBasic? I guess it'd have to send commands to the hardware and software of the iPhone, and communicate with it pretty well...
I am looking for information on using mstscax.dll in VB. The goal is to create a utility that logs into a remote service in the same manner as remote desktop. However, my utility is not required to show the desktop.I have a series of commands that I will start off with that will look for users, reset logins, shadow, and message. I have been using a batch file on my RDP to perform these functions, but we are already looking for more functionality and power than what the batch commands can offer. I am googling 'mstscax.dll' but the results have been less than satisfactory although I continue to search.
This is kind of an off-the-wall question but does anyone know if VS 2010 has somekind of utility that will allow you to just drag & drop controls onto a form or something that will help in visual design. I'm just talking for visual purposes only. No code-behind files or anything...almost like a canvas where you can place controls and labels, etc.
I have a CodeSmith 6 project setup in Visual Studio. I added a class with a shared method (VB), but cannot refer to it in my template. I also tried adding an assembly reference to the project DLL, but that didn't work either. How can I use my own utilities like this?
Does anyone know a good free report utility? I am currently unemployed and is trying to start my own software development company... I do not have a lot of money so am trying to do it as cheaply as I can.
I am trying to create an application to make self-extracting Exe's in Visual Studio 2010 Express. I would like to have a box in which files can be dropped into, then when you click "Compile" it will compress all files dropped into the box along with 3 others I must have delivered to this self-extracting exe. When the newly created exe is run, it will launch "Install.exe". I know there are other items out there to build the self-extracting exe's. I would however like to make my own that always delivers these 3 specific files along with whatever is dropped into the application.
Im trying to create an incremental backup utility on a web form using vb.net for code behind.
So far i can copy files from directories including sub directories and that part works fine, my main problem is copying only the most recent / modified files to the backup folder, currently it is moving all the files each time.
I am trying to build a date calculator utility (DateCalc). It returns the number of days,weeks, months etc between two dates.I worked hard and long trying to find out how to convert a date into a format on which you can perform math operations (for the "what's the date in 'n' days time" part) and it works! I can also use the minus operator to find out previous dates, from say 10000 days ago... BUT...I want to develop it further, and this is where I need help (i am still very newbie remember)Can you help me to find a way to code this bit to ignore weekends and saturdays or sundays individually, and a range of dates in its calculation? I have two datetime pickers and a some checkboxes.DTPickFromDTPickToChkBoxExWeekendChkBoxEXSaturdaysChkBoxExSundays An image of my form and it's components is here :--> [URL] Also, as part of my 'Datecalc', I'd like to find the dates of every other saturday and sunday in the future.
I want to find the framework class that enables one to choose an image at design-time. I can find the editor that is used at run-time - its the Drawing.Design.ImageEditor. At design time, however, a different editor pops up which allows one to choose an image from resources.I'm guessing I could run some kind of program, then open up the image editor, from the property grid, and see what new windows/classes have been created?
It seems that in C#, a solution can contain multiple projects, which, I guess, would compile into separate but somehow related programs. It seems that this functionality is missing in VB, even though VB uses solution files as well.How would someone go about creating a tool or utility or "helper app" for a project? For example, a command line version of the program, which is a separate executable, but obviously would be distributed as part of the main program? Maybe I want to integrate a feature into windows where the user can right click on a certain file and choose "convert" from the context menu, where "convert" would open the helper app, which would read the file and save an updated copy of the file (converting from one file format to another and saving the result) without the user needing to wait for the main program to load, wait for the interface to be configured, then wait for the file conversion. The helper app would not need to display an interface to the user - just convert and save the file.
I am making a utility that will read through the files in a listbox.I already have it where it can read the files but you have to have the file selected in the listbox. Im wanting it to do it to all listbox items instead of just the selected one. This is what I was using:
Background: I have read a bunch of techniques to handle compression. I don't think SmartZipLib handles 7z. System.OS.compression does not seem to handle rar or 7z. I am trying to find one approach for all.The tools within Windows XP seem to handle them all from inside the file manager (at least on my computer).Question: how can I decompress all these files using the windows utility? I am guessing it is some sort of Shell command. Alternatively, is there another option?
I am writing a utility for Minecraft Coder pack. It works off batch files that run python. Is it possible to read and write from the cmd into say a text box and run commands for vb.net to the cmd?