How To Open / Close Ports Of Computer
Jul 7, 2011
I am making a VB .NET application using Visual Studio 2010. I want to know how to open/close ports of the computer. The application will be running in Windows XP only.Actually the thing I want is to close all ports but 80 but also have the ability to open a few more if I need them. Any ideas?
View 16 Replies
ADVERTISEMENT
Jan 5, 2010
i want to open and close com ports in vb.net and send data through ports.
View 2 Replies
Sep 22, 2009
how do i detect for open ports? if the server close the port, the client will have to respond with msg("PORT IS OPEN")
View 5 Replies
Apr 20, 2009
able to open and utilize a single serial port within with my VB 2008 program (i.e., set port parameters, open&close port, send&receive data via port, etc.), but I want to open two or more serial ports concurrently within my VB 2008 program so that I can read data from one port, say COM1, make decisions and calculations based on that data, and send instructions out through another port, say COM2.
View 1 Replies
Jun 27, 2009
Lets say i got a listview and that listview contains ip and open port, i wan't the form to search open ports and put them in the Right lisview/Column example : messagebox("Ip Found")
Here is what i have a.t.m
CODE:
View 5 Replies
Mar 4, 2011
In a program I'm working on, I want a "Loading..." dialog to close when it can't log in to a site using the username and password provided by the user. Basically, I have the code set up right because the function it is supposed to carry out when that occurs does work, but for some reason it ends up in some really weird stuff happening. In the Loading form, I have it set to do "Form1.Show()" and then "Me.Close()", assuming it would simply show the login form and then close the Loading form. However, when this happens, the Loading form closes, and then for only an instant Form1 shows, and then the Loading form shows and Form1 closes. This happens forever until I stop the debugging, and I can't seem to figure out why. Am I using the wrong method? What exactly does Me.Close() do anyways? All I want to do is close the form and open another
View 5 Replies
Jul 9, 2009
I was wondering if its possible for VB to display all available COM ports that are open. he reason that I ask this is because this program will be run on various computers where the COM port will not always be the same. I have a text box now that the user can choose which com number he/she wants but if the wrong one is entered, the program crashes rather than displaying an error message. It would also be nice for the system to show which available com numbers there are
View 5 Replies
Nov 12, 2009
In my project I'm trying to get the caption property of serial ports available on computer. But when I run this code below I get "A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll" exception. I tried putting "Option Strict On" and then I'm getting build error saying it disallows Late binding.
[Code]...
View 5 Replies
Oct 21, 2009
In my program, I have a timer with a inteval set to 1000ms. The timer is executing a MySQL-command, and right now I'm opening and closing the connection each time.
View 5 Replies
Mar 17, 2009
I have written an application that sits in the systray and monitors a database for me. The problem is that this application is stopping some of my clients computers from shutting down, I assume because the app is still running when the computer is trying to shut down.
What I need to know is if there is a way that my application can tell when the computer is shutting down, so that I can close my application and therefore allow the computer to shut down.
I am only running my app on Windows O/S e.g. 2000, XP The application is written in VS 2005, .NET 2 and VB.Net language
View 2 Replies
Dec 5, 2011
My.Computer.Network.UploadFile(location & "/index.html", "ftp://" & Myserver & "/index/index.html", Myuser, Mypass)
Dim objWriter As nd what I mean.
[code].....
View 4 Replies
Aug 8, 2010
I have webbrowser1 whihc is used to download files on my server in the background (invisible)but when its an external link (which could be any filesharing site eg, rapidshare, mediafire etc)a new tab shows called "external link" with the webbrowser1 visible, and of course mediafire, rapidshare visible/navigated.how can i close this "external" tab when "save as" has popped up from computer?i cannot do it any other way as all filesharing sites are different.i already know how to close the tab, just need some sort of event handling on this part.
View 1 Replies
Apr 6, 2011
I want to know how to open My Computer, My Document, Recycle Bin and the Start Bar in vb.net? I mean a user has to click on a button and all of these must be opened. Its a prank I'm doing.
View 7 Replies
Aug 17, 2009
can't close open image
View 10 Replies
Jun 3, 2010
I would like to close my appliaction and then open it based on a condition.Lets say I have a Lab1.EXE file, I want to close if the flag = True and then reopen it.
If ClFlag = True then
Application.Exit
---Then
RUN LAB1.EXE
Endif
View 9 Replies
Oct 3, 2009
I never had problems with this before but now this ain't working right. What I want to do is open a new Form and close the Current Form that is already open. This code use to work for me
View 5 Replies
May 20, 2012
I want to close form and open another one without termination of the application, when I try to open second form and close first one the application terminate.[code]...
View 2 Replies
Jun 30, 2010
When I open my application I have the first form which opens as the Register form. When I press the Activate Button I want the MAIN form to open and I am using the code below as the last two line[code]...
View 5 Replies
Sep 3, 2009
I'm developing a WinForms app in VB.NET, that handles sets of style data, and when the user clicks on another set's label, it prompts through a dialog "You are leaving this style preset to edit another one. keep changes on this one? [Yes] [No]".But, I'm facing the problem that, when the user clicks either option, and the dialog closes, everything has to be refreshed, and loading the form again seems a good option.[code]But as soon as that sub is called from the prompt, it crashes the application. (doesn't show an error in debug, simply crashes) How should I, from a given dialog, close the dialog, it's parent, and re-open it's parent? (which triggers all the Dialog_Load() code of the parent)
View 2 Replies
Oct 9, 2010
Any code I could get that would Open + Close a .bat or .cmd file? Not ALL .bat / .cmd files that are open, but just ONE (runserver.bat / runserver.cmd).
View 1 Replies
Jun 4, 2010
Is it possible to issue a Open CD and a Close CD using VB.net? Are there any examples of code I could see or articles? Thanks for you help, in what seems to be such a trivial matter. (I know though that the simpler the function the more code seems to be
View 2 Replies
Sep 26, 2009
i have just started to use this program...i accidently opened more than 1 program and i cant close them.
View 1 Replies
Sep 20, 2011
I've looked through several posts to find potential solutions to this problem, however I don't find them very suitable for my needs.Some included the user to run the application as Administrator However, even as I start VS2010 as administrator, starting or stopping my service continues to throw the exception.
View 1 Replies
Mar 20, 2012
In this project I want to read text from the text file.. after that want to update the text file.. if i just run the code manually, the code run well.. but if I want use timer to keep the code run automatically there show problem.
here my code
Imports System.IO
Public Class Form1
Dim skrng As Date = Date.Now()
[code]....
View 3 Replies
Dec 16, 2011
SQL connections confuse me sometimes In almost every SQL related code on the internet the routine is like this;
* Open connection
* Execute SQL command
* Close connection
Is it good practice to just open a connection when the application starts and use that connection until the application closes?I know that sequential connections are required when processing more queries, but what if I need to poll a certain Table every x seconds? Isn't is better to keep that single connection open for as long as the application is running (and re-open when a failure occurs) instead of opening a new connection every x seconds?
View 2 Replies
Jul 6, 2010
Are there code can open and close forms in particular Time (reference is computer clock)..?
Example: in 08:00:00 open form1 and in 08:45:00 close it
And can I let the user enter the time to open and close the forms in the Basic Form?
View 13 Replies
Oct 22, 2009
I wanted to open a URL from my VB.net Application on a button click event (for sending SMS from my application). However, I don't want my users to know about it & I don't want to have a browser pop up and execute the URL.
View 7 Replies
Oct 22, 2009
I wanted to open a URL from my VB.net Application on a button click event (for sending SMS from my application). However, I don't want my users to know about it & I don't want to have a browser pop up and execute the URL.
Is it possible to do it invisibly? And once it is done, is it possible to close the invisible browser window too?
[URL]
View 2 Replies
Jun 9, 2011
I am having issues with people not closing an important file in excel.I have a new vb.net based application that i want to close the excel file when i prompt it to. The application checks for specific named files in a hidden folder on a timer event, (that all works fine) how do i tell it to close a file that is already open.All threads i have read say things like this:
Dim XLApp As New Application
Dim WkBook As Workbook = XLApp.Workbooks.Open("C:Book1.xls")
Dim Sheet As Worksheet = CType(WkBook.Sheets(1), Worksheet)
[code]....
View 19 Replies
Sep 16, 2010
I am trying to give some user entertainment, and show a "please wait" window, with Marquee, during the loading of a separate complex Window. I am attempting to do this by loading the Window in a new thread, like this:
Public Function ShowPleaseWait() As System.Threading.Thread
Dim PleaseWait As New System.Threading.Thread(AddressOf LoadPleaseWait)
PleaseWait.SetApartmentState(System.Threading.ApartmentState.STA)
[code]....
In the calling code, it calls ShowPleaseWait and saves the Thread for later.. To close the window, it calls Thread.Abort, on the saved thread. This in turn will causes it to enter the Catch. I have tried, many different ways, with and without the catch.This works incredibly, the first time it is called. However, additional calls will fail at window.Show() with the exception: The calling thread cannot access this object because a different thread owns it..This really puzzles me as the window was created one line above the call to window.Show and is local. How is it owned by a different thread? How can I fix this?
View 2 Replies