Communications :: Killing IPC With NetUseDel

Dec 4, 2010

New connections will be remembered. [code] keeps saying that it does not exist, and yes TextBox1.text = "winxp-base02".It clearly shows in CMD with net use that the connection does exist, anyone know Why I can't kill IPC$ or from what you see should work?

View 2 Replies


ADVERTISEMENT

Communications :: Send A Command Via RS232 Communications

Jan 26, 2009

I am using VB2008 Express and am curious how to send a command via RS232 communications. The string that I need to send is 02h PON 03h. The start and end bits are 02h and 03h.

How can I convert 02h and 03h to its ascii form. In hyperterminal, I use the sequence {(hold)ALT 0 0 2} on the number pad to send the start bit.

I am using this code currently without the start and end bits

Code:

View 8 Replies

Program Killing An App

Jan 22, 2010

I want to be able to kill an application (iFix) using VB 2008 express. How can this be done. I have used the following in the past with in iFix using its own VBA but I want to be able to do it with an app that I am creating.[code]...

View 13 Replies

Close A Program Without Killing It?

Jul 8, 2010

I am creating an updater for my program that runs in a separate process. I need it to be able to close the program it's updating before running the new setup, but I do not want to use Process.Kill() because that could cause data loss. How can I safely close another application, as if the user had clicked the "X"?

View 2 Replies

Killing A Thread When Closing

Sep 16, 2011

In my program I have a thread in the background that runs an infinite while loop. If I want to terminate the thread, I break the while loop, and the thread runs to a stop. However, if close the form without stopping the thread, it just keeps running. I tried both aborting the thread and exiting the while loop in the closing form method, but without succes.

View 1 Replies

Killing The Remote Process?

Aug 6, 2009

I want to check whether a process running in remote computer or not and if it is running, kill it.I am using following code but, it gives error "Couldn't connect to remote machine". Do I need to do any security settings in the remote pc where I am connecting?

For Each myObj As Process In System.Diagnostics.Process.GetProcesses("192.168.0.138")
If myObj.ProcessName.Equals("HomeAlarm System.exe") Then
myObj.Kill()
End If
Next

View 3 Replies

VS 2008 Killing DataGridView Duplicates?

Jul 24, 2009

I am trying to kill the duplicate fields in a DataGridView. I have it alphabetize all the items in the DGV and then compare each item down the DGV as long as it is either equal to or alphabetically lower than the next item in the DGV.Here is the code I'm using:

Do While X < data.Rows.Count - 1
' Compare 2 items next to eachother
compareResult = String.Compare(data.Item(0, X).Value, data.Item(0, Y).Value, True)
' Update the status

[Code]...

As I run it through more largely populated DGVs (200k items), I run into an InvalidOperationException saying that rowIndex=190000 (just some high number) is an invalid value for rowIndex.The error seems to appear more or less randomly.When tested on DGVs with 20k items, it seems to complete fine (though it may just be luck and the error isn't popping up).

View 2 Replies

VS 2008 Program Killing Its Own Process?

Aug 24, 2009

I want to be able to disable Alt+F4 and the X button. I was able to do that, but it disabled Close() too. I want my app to be able to terminate its own process. How would I do that?

View 2 Replies

Check When Software Runs And Operates Killing?

Sep 29, 2010

How is that possible? I want to check all the software a few seconds if the program has tripled works and then you close it automatically[code]...

View 8 Replies

VS 2008 : Killing External Console Applications?

May 19, 2009

I am developing an application which launch an external windows app, ei called APL.exe Also, this APL.exe launch two console utils, ie. named CON1.exe and CON2.exe I would like to know if is there any way, after APL.exe has died, of killing CON1.exe and CON2.exe, because there is a small possibility that they will not died completly after APL.exe has exited.Also there is another requirement. My final app version could be executed twice in the same machine, so there could be two instances of CON1.exe and CON2.exe, and because this I need a way to kill them not by process name, but knowing which of them has been launched by my current application instance.

View 5 Replies

VS 2008 Killing One Specific Windows Process

Mar 7, 2010

I'm using the namespace System.Diagnostics. I need to check if there is a Windows process called "gospeakx.exe". If exist the "gospeakx.exe" process, end it. Does anyone know how I can do this?

View 1 Replies

.net - Responding To Application-killing Events During Class Initialization?

Apr 6, 2009

When starting my application, I have a couple of classes which are required to read certain files in order to create a set of default data. The logical place (to me) to do this is in a Shared class constructor; the idea would be to throw a class-level event if the reading of the defaults file fails. Unfortunately, this does not work as attempting to access such an event, in order to attach a handler to it, fires the class constructor before the event has been attached. In a failing case, the constructor starts, fires the fail event, the constructor completes, and then the event handler is attached, after the event has fired.

The only other solution I can think of is to give the class a "typeInitialisedSuccessfully" boolean property and put a try/catch block around every call to construct an instance of the class, which seems unnecessarily kludgey to me. Can someone suggest a more elegant solution?

EDIT: Because this is a fundamental Class, used in one form or another across nearly all of our software tools, I would greatly prefer a solution that will notify future programmers that the type initialiser needs to be called, which is why I initially went towards the Shared Constructor as a solution.

View 1 Replies

Sql Server - SSIS - Killing Excel.exe When Data Flow Task Fails?

May 10, 2012

How can I kill the excel.exe process in SSIS during the data flow task when it fails? There could be multiple instances of Excel.exe running from other packages that are perfectly valid so I don't want to loop through all instances killing them.My problem is that during the data flow task the process will sometimes fail due to a sheet that is named incorrectly or missing columns. This keeps an instance of excel.exe running which is now an orphan task eating up resources so it needs to be killed.At the same time there are other SSIS packages running that are accessing their own excel.exe process and aren't having any issues. So how can I kill the orphan excel.exe process without impacting the other excel.exe process?

View 2 Replies

Moving And "killing" Objects?

Apr 16, 2011

I'm attempting to make a very simple game where the player clicks a button, a label is spawned, travels across the screen, and the player tries to "shoot" the label by clicking on it. So far, I can make the labels spawn and move, but whenever I spawn a new label, the previous one stops moving. Also, I can't figure out how to remove an object from the form by clicking on it. Here is my current code:

[Code]...

Edit: I'm currently expanding the game to include more enemies and features.

View 1 Replies

Auto-killing Of Process - A Function That Automaticly Closes The Processes "iexplore.exe" And "firefox.exe"?

Sep 3, 2009

I'm creating an app in VB2008 that needs a function that automaticly closes the processes "iexplore.exe" and "firefox.exe".

View 8 Replies

Communications :: Use Class As Dll?

Jul 21, 2011

I got a piece of code that I have to use as a class. It gets added to the project every time, the accessed from the code of the forms.

It is for ethernet communication to an industrial radio.

So right now it's a just a class called MK

Question:

Is it possible to compile a class into a DLL which then can be just referenced to each application?

View 1 Replies

Communications :: What Does <MTAThread> Actually Do

Jun 17, 2010

I see it often declared in front of main functions and after reading the MSDN comment on the matter, it's purpose still eludes me. As far as i can understand it has to do with setting the program into some form of multithreaded state. But what does that even mean?When should I use it, why should I use it, is it even currently relevant becouse i read somewhere that the default apartment state is MTA nowaday's What's it's purpose mister Anderson ...

View 1 Replies

Communications - Difference Between A 802.11 And 802.3AE Adapter

Jul 1, 2010

How can I target a Adapter I have on the machine and Tell through windows API if its a Wireless or Hardwired Ethernet Adapter? I really want to avoid doing anything real High level like piping Command prompt text XD.

View 2 Replies

Communications :: Add A Progress Indicator?

Mar 4, 2010

I am writing a utility and using the ftpwebrequest. I am wanting to add a progress indicator to help the user know about how much time is left on the upload.

Code:
Private Sub UploadFTPFile()
Const filePath As String = "C:"
Const fileToUpload As String = "1.txt"
Const ftpServer As String = "ftp://xx.xx.xx.xx"

[code].....

View 1 Replies

Communications :: Add More Than One Client To Communicate To Add?

Mar 29, 2012

I didn't make this code but can someone explain to me how to add more than one client to communicate to add to this code?e.g 3 people to talk or is it not possible?

[Code]...

View 1 Replies

Communications :: Basic TCP/IP Server

Dec 6, 2006

[code]...

The &H30D? i know its a hexadecimal value and may represent a message but i cant find anything about why someone would need to use one, and not just "As Integer = 703". I've found nothing in the VB.NET library or windows messages/functions docs.

View 5 Replies

Communications :: Build An IM Program?

Dec 27, 2008

I am trying to build an IM program i found one (see attachment) but it is network only and i want to build one that goes over the internet?

View 6 Replies

Communications :: Can WCF Be Used Communicate Through The Internet

Mar 24, 2012

Can WCF be used communicate through the internet? All the examples I have found show it being used on a local network.

View 10 Replies

Communications :: Communication Through Webbrowser?

Apr 14, 2011

Is it possible to read out the contents of a page that has already be loaded into a webbrowser...say IExplorer...? On 'normal' windows programs there is a way to externally control a program and its contents. But on a page loaded in a webbrowser i can't find a way to get external control of its contents and buttons ect..

View 1 Replies

Communications :: Converting To Byte ?

Jun 28, 2010

I am sending data to some microchips with a serial port control using:

Code:

well, it work up to the value 9, but anything with more that one decimal place sends a byte value of the rightmost digit. So, 16 in the text box will send 6. Basically, it appears to be sending just 6, or 1 followed by 6. Is this how the serial port sends data...one digital at a time? Or, is the conversion to a byte failing?

View 6 Replies

Communications :: Determining IP Address

Aug 5, 2009

Is there any easy way to determine the IP address for the computer that an app is running on. I looked through the System.Net namespace and didn't see anything of the sort.

Basically, I want to display the IP address to the user, instead of walking them through how to do an "ipconfig". They then can put that IP address into another app, so the one app can talk to the other via UDP.

View 2 Replies

Communications :: G-code Programming In Vb?

May 26, 2009

I am trying to make a cnc program i have learnt a little about g-code i want to know how i can generate g-code from an image? Also how i can use this g-code in my program in vb to move motors?

View 1 Replies

Communications :: Get Response From Php File?

Aug 21, 2008

Code:
Private Function web_scan(ByVal code As String) As String
Dim myReg As Net.HttpWebRequest = _
DirectCast(Net.WebRequest.Create(ServerSelect.Text & "/scanner.php?code=" & code), _

[Code]....

I need to give a variable to php file via GET and recive responce. HttpWebResponse dosen't work on my PocketPC so I need n alternative.

View 2 Replies

Communications :: How To Check If TcpListener Is Available

Jan 24, 2010

I have this code to connect to my server:

client = New TcpClient(txtIP.Text, txtPort.Text)
client.GetStream.BeginRead(readBuffer, 0, BYTES_TO_READ, AddressOf DoRead, Nothing)
SendMessage("/CONNECT|" & Label25.Text)

[code].....

View 1 Replies

Communications :: How To Delete A File Over FTP

Aug 22, 2011

I simply want to be able to delete a file via ftp. What irritates me is, it is so easy to upload a file but so much harder to delete a file.

way to delete a file over FTP using visual basic

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved