I'm using an electronic signature pad for one of my applications. The pad has a Control Panel file which handles it's configuration (image display, etc). I would like to know if it is possible to open the pad's control panel from within VB.NET. I've tried using Process.Start() but can't get it to wok, and I'm not sure if it is a problem with what I'm typing in, or if Process.Start is not what I need to use here.
Whats happening is I run the code below and get the following error "The system cannot find the file specified". I've read that with UseShellExecute set to false that you can't use WorkingDirectory.
Dim Password As String = "password" Dim SecureStringPassword As New System.Security.SecureString For Each c As Char In Password
I'm trying to execute a 3rd party application, called from a .cmd batch file, called from a self-hosted WCF service. Like this:
WCF --> .cmd --> 3rd party app
For whatever reason, using the Shell command doesn't work fully. It will call the .cmd file, but the 3rd party app won't kick off (I know the .cmd is firing because I have before/after ECHO statements populating a log file). If I double-click the .cmd file from explorer, the 3rd party app will start just fine. So, I figured, maybe try something besides the Shell command from my WCF service.
So I tried the following code, but it won't kick off the .cmd file at all (echo statements not firing). What am I missing here?
Dim psi As New ProcessStartInfo("cmd.exe", "/C " & System.Configuration.ConfigurationManager.AppSettings("ExStream_CMD_File_Path")) Dim proc As New Process() proc.StartInfo = psi proc.Start() proc.WaitForExit()
The path in the app.config file is valid (just double-checked). Is there anything wrong with the above code?
I have a user interface with pushbuttons, each starting a different process. Can I manage these pushbuttons via usb numpad? i.e. if 1 is pressed at numpad, pushbutton 1 will be clicked (so process 1 will start); if 2 is pressed at numpad pushbutton is 2 will be clicked and so on.
the below code starts the correct process but the windows form never displays on the remote machine. How do I get the application to actually load.
Private Sub RunRemoteProcess() Dim sCmd As String = "C:Program FilesInternet ExplorerIEXPLORE.EXE " & txtData.Text.Trim ' add a reference to System.Management in Solution Explorer
I have a user interface with pushbuttons, each starting a different process. Can I manage these pushbuttons via usb numpad? i.e. if 1 is pressed at numpad, pushbutton 1 will be clicked (so process 1 will start); if 2 is pressed at numpad pushbutton is 2 will be clicked and so on.
I'm trying to read another process's memory starting from mbi.BaseAddress to mbi.RegionSize using the function ReadProcessMemory, however I only succedeed to read 1 address at a time and it takes like forever to finish, the result being stored into a byte() variable, calling the readaddressmemory 1 million times instead of only 1 for example.
I am writing an application which needs to allow the user to select and open document files as a new process, edit them, then when they've finished backup the changed files automatically. For example, start a .doc file within Word or a .xls file with Excel What I wanted to do was use process.start to run the application and store the ProcessID returned in an array so that when the process finished, I could check all the files that were using that application for changes.
I want to launch System Restore through my program. I figured out the destination of this feature in Win7 is: WindowsSystem32control.exe sysdm.cpl @0,4
So I wrote this
Dim p As New System.Diagnostics.Process Private Sub CreateASystemRestorePointToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
[Code]....
Problem is that it will not work if I have anything behind .exe And "sysdm.cpl @0,4" is vital for this to work, otherwise I just launch Control Panel, which is pretty useless for what I want to achieve.
So how do I include commands like those in Visual Basic?
Dim p As ProcessStartInfo p = New ProcessStartInfo(Environment.CurrentDirectory & "injavac.exe",ClassName & ".java") Dim ps As Process = Process.Start(p)
This does run the java compiler on the file, but it does so in a new window. I want the output from javac to appear in the same console that is running my application. How can I do this? Perhaps there is another method for running commands in the current console? Or maybe I can supress the second console window from opening and redirect its output to the current console?
I am trying to parse data from netsh dhcp commands from my application which will run from remote client systems running windows xp/7. In order to do this, credentials must be passedSo I can currently get the correct data using the RunAs command. However when trying to do it programatically from vb.net it returns data as tho there were no credentials passed.
I have an application that starts one of two external CAD applications depending upon the extension of a file in a ListView. I have been able to start up the application to view the file selected without a problem. I also have a seperate print click event for printing the file that opens the viewer application in the background and prints the file. This works perfectly for one of the CAD viewers but when I select a file that requires the other viewer application to print I get a Win32 exception and an error message stating that the file is not associated with any application and it cannot be opened. This of course is rediculous as it opens fine in the "View File" click event that opens the viewer to check the drawing.
One rather strange observation is that the CAD viewer that does print the associated file will launch the other CAD viewer application (that is associated with the other file extensions) when the "View" click event is handled even though I had not incuded the code to execute the process to start the viewer for that type of file. I realize this rather convoluted and may lie in the ProcessStartInfo arguments that I pass to the application.
Here's a code snippet:
Private Sub PrintFinGoods_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintFinGoods.Click Dim message As String = "No application is associated with file" Dim source_exception As New Exception
This is simple to explain, i need to track the process id from the files I execute. So lets look at the code.For this example just create 2 files in the C: and call it 1.xlsx and 2.xlsxNow open the firts file ...
Dim objFileExecute As New System.Diagnostics.Process objFileExecute = Process.Start("C:1.xlsx") MsgBox(objFileExecute.Id)
I am using the code below, but it still shows the program.For example, if I pass in CALCIt will start the calculator but show it.
Code: Public Function ExecuteFileHidden(ByVal lFile As String, ByVal largs() As String) As String Dim oSTR As String = "" oSTR += "Attempting to execute " & lFile & vbCrLf Try Dim p As New System.Diagnostics.Process p.StartInfo.FileName = lFile Dim a As String = "" For Each l In
I am working in VB2008. I don't know what process is started when a user double clicks on a folder to display its contents. I am working on an application where I store paths to various folders in a database that is displayed in a treeview. I would like to be able to select a node in my tree and then pass the path to the associated folder to the application which can display the contents of the folder. I need to know the name of the application or process that I am trying to startup to display my folder contents.
I'm trying to make a label control transparent over a Panel control.However by setting the background colour of the label to Transparent, it actually sees right through to the form itself, not the panel as intended.
As an example we use a panel with a background as white, we make the label transparent, however it gets the form�s colour as blue.However, we are using a custom panel control and need the label to be transparent over the panel and not see the forms background.
I've got a Panel on a main Form containing a PictureBox control on Top of a TableLayout control. Both the child controls have their docking properties set to Top. The Picture control has sizemode set to Zoom.
What I'm finding is that the picture doesn't size properly when I start the app. There is a border at the top and bottom in the PictureBox control. It's only when I resize the overall form that it's correct.
So at the moment I've got this ugly bit of startup code, just to fix the problem Me.WindowState = FormWindowState.Normal Me.WindowState = FormWindowState.Maximized
is it possible to make it so that you can use a button control to initate a drag movemnt of a panel control, that way you can click it move your mouse and when you click your mouse it will move the panel to what ever location you moved and clicked your mouse?
I'm trying to make a label control transparent over a Panel control. However by setting the background colour of the label to Transparent, it actually sees right through to the form itself, not the panel as intended.
As an example we use a panel with a background as white, we make the label transparent, however it gets the forms colour as blue. However, we are using a custom panel control and need the label to be transparent over the panel and not see the forms background. Is this possible?
I'm trying to make a label control transparent over a Panel control. However by setting the background colour of the label to Transparent, it actually sees right through to the form itself, not the panel as intended.
As an example we use a panel with a background as white, we make the label transparent, however it gets the forms colour as blue. However, we are using a custom panel control and need the label to be transparent over the panel and not see the forms background.
me if it's possible to have a control (e.g. a picturebox) in one panel of the splitcontainer control, and then be able to drag the control in runtime to the other panel?
I have a game that will open four windows on the desktop using VBE2008.How do I control the starting location where on the desktop those four windows will appear when I Load (Open) the Window?
I need to center the red panel in the middle of the dark grey panel, when you resize the form the red panel should be in the middle, and the red panel can't be resize, anyone have a code or property to do this?
I am in the process of designing a computer control program to control a HF communications receiver (radio), and have found a problem with the Serial port. I am using VB Express Edition 2008. This module of the program is supposed to take an input string from another part of the program, format it, break it into 4 bytes, and send it to the radio in hex form via COM port 1. The problem comes in when you try to enter a frequency with an 8 or a 9 in it. The 8 or 9 is usually replaced by 45, ex.-input 9900, receiver tune 4545. The exact same thing happens with 8's, input 8800 and receiver tune 4545. All other numbers other than 8 or 9 work fine. The strange part of it is that sometimes the 8's and 9's work, and work correctly. For instance, 900, 1900, 2900, 3900, 4900, 5900, 6900, and 7900 all work correctly. This led me to believe that is may only be when the 8 or 9 is in the first position, but that is not the case, it also shows up in other positions as well. All other frequencies that do not have 8 or 9 in them also work. I ran into this same problem with VB Express 2005, and worked on it for weeks before giving up and going back to VB6.0. This same module (with exception of the port open command) runs flawlessly under VB6. I have even tried importing the MSCOMM control from VB6, but it gives the same results. In de-bugging mode, all of the inputs, decimal and hex seem to be correct, so the problem must come in after you click the command button, but before it leaves the COM port.
I have an application going here Form1 has a panel on it named TargetPnl. I need my TargetPnl to display my user control named Vviewer when I click my SearchBtn and also need it to disappear when I click another button.