Use Shell To Have Application Call An External Application But Its Not Working - Error: 'System.windows.shell'

Jun 3, 2011

I'm trying to use the Shell to have my application call an external application but its not working...I don't understand why. I get the following error: 'System.windows.shell' is a namespace and cannot be used as an expression!

Heres my code....any ideas what I'm doing wrong. Its got to be a simple...stupid error.

Private Sub mnuUpgrade_Click(ByVal Ctrl As Microsoft.Expression.Web.Interop.Legacy.CommandBarButton, ByRef CancelDefault As Boolean) Handles mnuUpgrade.Click

[CODE].....................

View 2 Replies


ADVERTISEMENT

VS 2010 Override Icon - Executes An External Application - Via Shell()

May 19, 2012

I have a VB application that executes an external application, via Shell().

What I want is to be able to have control over the "shortcut properties", if you will (such as icon & title), resulting in the external app being forced to use that specified icon and title for its spot in the taskbar while it is running.

A normal desktop shortcut does this easily (by editing its properties) but I don't know if it's possible to take advantage of that.

View 14 Replies

VS 2008 Make A Shell Replacement For The Windows Default Shell

Aug 1, 2009

I'm going to attempt to make a shell replacement for the Windows default shell: explorer.exe. I'm not sure if its possible using Vb.Net, but I can't seem why not. My end goal is to use a custom made shell for a Windows Preinstallation Environment instead of the default command prompt. I plan to use a 3rd party program to compile the program with the .NET Framework. Otherwise, it wouldn't work because Windows PE does not support the .NET Framework.

View 1 Replies

Call External Windows Application Form From Application?

Aug 17, 2011

I Have one Windows Application in which i have one MDI Form (Say App1). And I too have another Windows Application in which I have a Child Form (Say App2). So now i want to Call App2 from App1 .. And want to Display App2 form As MDIChild in App1 MDI Form . I am Able to open the Form of App2 , But how to set It As App1' Child .

View 2 Replies

Using Shell To Call Up Windows Date And Time Settings From Clients Machine?

Oct 5, 2009

am working on an application in vb that requires using shell to call up windows date and time settings from clients machine.

View 2 Replies

Sub-like Operating System Windows Replacement Shell?

Dec 13, 2009

im working on a replacement shell for windows xp, question is i made a little scripting langrges and i want the user to open this script up just like windows opens exe files, and how do i put icons on the foum and make new files and add files to that foum.

View 8 Replies

Application Does Not Return From Call To System.Windows.Forms.Application.DoEvents?

Aug 2, 2011

I have a windows forms application written in VB.NET which scrapes information from serveral web pages (who doesn't right)? Anyway, I am having problem with one particular site where partway through the page navigation my application hangs. When I press pause (or break) in the debugger, it stops on a call to System.Windows.Forms.Application.DoEvents.

Resuming execution shows that it really is stuck on this line (it does not reach the next line of code). It also hangs about the same point each time I run it (at least its consistent). Since System.Windows.Forms.Application.DoEvents yields to other threads on the same processor and then resumes execution of the current thread, I think the problem is that some other thread is not behaving well (not returning from some event handling code). I thought Windows 7 was pre-emptive, which makes me
doubt that theory but I really don't know.

[Code]...

The program scrapes somewhere between 12 and 14 pages before it gets stuck on the call to DoEvents. Does anyone have a clue why this would happen? Why would any call to DoEvents hang?

View 1 Replies

Forms :: Operating System Multiple Windows With Same Shell?

Mar 26, 2010

Ok basically i am making a game (personal/share with others for free)The idea of the game is its 1998 and you have windows 95 and you have to someone obtain windows 98. then slowely new operating systems are released... 2000, xp, vista, 7 and you have to continue to upgrade.

The game in played in a simualted real environment of the windows operating system. The idea is that you have access to the real programs that came with windows 95... (or whatever operating system you have ingame) and you have access to my fake webbrowser which has a bunch of fake websites (offline) in the game. You can either try to illegally download the operating system (viruses can infect you like this (fake ones)) or you can buy it off microsoft but to get money you need to do hacking jobs....

Anyway thought i should give you some back story to what i am actually making. (This project is more a test project since i am only 15 and have only really just started using visual basic for a few months.)

OK now i have so far got it looking almost completely like windows 95 and functioning like it to...

Hey just for the record... here are some nice pictures of it running

First of all heres what it looks like when you are doing selecting which program to open with the start menu:

This next picture is of notepad in my program:

Ok now this picture shows perfectly the active window has become inactive when rightclicking (or normal clicking) the desktop

Next picture shows the display properties windows... not that fasinating yet since i have not finished it and it does not accually do anything yet... its just for looks right now and scrolling through the theme names.

Now this is another tab from the properties window (the screensaver tab) you can't do much here apart from looking at the names of the screensavers)

Ok heres another pic from another tab in display properties... (this shows how you can pic a color to change the background in the display window (clicking apply makes your background of the destop in the fake os accually change)

Ok this image in the same window as the previous one shows how you can select to change different things colors (i only got active titlebar and desktop changing right now...)

This image shows the active titlebar color change...

This screenshot shows the settings tab of the properties window

This screenshot shows windows help (main purpose here is just to show the colour change has taken effect)

Ok last of all this just shows that the maximize button works

I CAN ONLY HAVE ONE PROGRAM OPEN AT ONCE basically this is because i have a panel called program and in that a another few panels such as the active window titlebar...

Now i basically have it so that the programs are all in the pannel programand when you "open" a program all the other panels in this window are closed and the one you "open" is docked... and the label (programsname) is chnged to the name of the program.

Here is a picture of the visual editor if you don't get me...

As you can see there are weird little things in program1 (forget program 2 that is a thing i was trying to do ages ago with my old crappy shell)

these weird things are my programs which get docked to the size of the program panel when you click to open a program...

This method works well but only if you have one program at a time.

A solution i thought of was to copy and paste the shell (program panel) and then just put each program in a seperate shell... this would work... but then i can't open 2 of the same program e.g. have 4 notepads running at same time. I am also having heaps of trouble with the taskbar (there in a button on the task-bar which changes text when the programs name changes)

Anyway i am going to post my full program here (code and all) just download if from this rapid share link.
EDIT: the file was 5 meg and now is 3 meg so that should be easier to download RapidShare: 1-CLICK Web hosting - Easy Filehosting and then run the solution file or whatever

Please show me some code that will get me be able to run infinite windows of same type and different type...

Do whatever you have to do (just make sure you make sure it works on your side before resending the project back to me.)

View 3 Replies

Retrieve Application Path For Associated File Type From Registry For Use With Shell Command?

Jun 17, 2009

I'm using VB.NET in Visual Studio 2008 in a Vista 64-bit OS. I'm trying to find an easy way (there must be one) to quickly retrieve from the registry the application file name and path to use in a Shell command to open a particular file. Specifically, I want the user in my app to be able to click on a PDF file and have the app open that PDF file using the application associated with PDF file types - Acrobat Reader, for example. Anyone have any suggestions as to proper coding & syntax for the following sequence?:

(1) Get name of .exe file associated with .pdf file type (most likely from the HKey Root Classes hive)

(2) Get path for the .exe file

(3) Shell("[pathname]appname.exe filename.pdf")

I've spent a couple of hours looking through the forums and haven't found what I'm looking for.

View 3 Replies

Call Up Translucent Window (shell)

Jul 2, 2010

I need to call up a window from my application.

1- I want this window to be translucent and shows in front

2- I want this window to be translucent and shows behind

RetVal = Shell("C:EnergyPlusV5-0-0RUNEP.BAT", AppWinStyle.NormalFocus)

View 3 Replies

VS 2008 Shell Not Working

Jan 22, 2010

I've tried this with several different files and verified the path, spelling and capitalization (I've also copied the path right out of the Start & Run text box), yet I can't get Shell to execute or open any file, does anyone have any thoughts or suggestions about this?[code]

View 1 Replies

Call A Program From A Unix Shell Script?

Jun 11, 2012

I need to be able to kick off a vb.net program on a windows server from a unix shell script on an AIX server. What what I need to do to make this possible? I'm a newbie on the .Net side, but I was thinking, maybe make the vb.net program some sort of web service then have the unix shell script invoke that somehow

View 2 Replies

Possible To Call .exe Files With Shell() Or Process.Start()?

Aug 8, 2011

I have an issue in my project I am programming in both Matlab (Matlab2011a) and Visual Basic (VS2008).I've created a .exe file from my matlab code. It works well when I click on it with my mouse.But I need to run it within Visual Basic. I know it's possible to call .exe files with Shell() or Process.Start(), and it works well for files such as firefox.exe or notepad.exe. However, it doesn't work when I call my own .exe file ...It's weird because when I look to the Task Manager while trying to call it (within VB), I can see the process starting and ending, but its output doesn't appear.

View 5 Replies

Batch File Not Working When Called From Shell

Apr 30, 2010

We are attempting to run a batch file that will result in a submission to a help desk ticket system. When we run the batch file from command line on our W2003 platform, it works successfully. When we run the same file, called from our vb program, using shell or process info, it does not. With shell, we can see the batch file being called, but it is not resulting in update to the help desk ticket system. The vendor of the system believes it is a security issue. We are signed on as Administrator while running this. We set security permissions of cmd.exe to include Batch, per KB867466. What else should we be doing or looking at?

View 8 Replies

Shell - Process Redirect Output Not Working

Mar 1, 2012

I'm trying to redirect the output from a command-line application in VB.NET, and for some reason it fails to redirect the output. Here's my code:

Dim myProcess As Process = New Process
myProcess.StartInfo.FileName = "g++"
myProcess.StartInfo.Arguments = CMDLineCommand

[Code]......

View 1 Replies

System Tray In Shell Replacement?

Jun 14, 2011

First of, sorry if this is posted in the wrong place, I'm knew here and it looked like the right place lol.

Ok on with my problem. I am writing a replacement shell (for windows 7, if that makes a diffrence) in VS proffesional 2010 (in vb.net obviously lol) and i've hit a road block. I cant work out how to create the ystem tray for storing notify icons in. I'm totaly lost.

View 4 Replies

Cannot Start Application Shell From Location Because It Is Already Installed From Different Location

Jul 21, 2009

I have encounterd a problem when trying to re-enstall a program i have writen in vb 2008.I get the following message:"You cannot start application Shell from this location because it is already installed from a different location."This program is to be used on many workstation computers and i need to be able to update any changes by just reinstalling the program, no uninstalling needed first. If the program was installed from a cd first and needs to be updated from a flash disk this error will be a problem, if the update is from a cd as well then there is no problem.Is there a way to change the installation package to ignore where the program installs from and just update itself?

View 2 Replies

Launch App Using Shell From Another .net App Within Windows 7?

Aug 19, 2010

I am having an issue with a .net application launching another application using Shell On Windows 7 the app will not launch at all. I am assuming UAC is preventing this?

View 2 Replies

VB 2010 Shell In Windows 7?

Apr 23, 2011

Shell(
"c:windowssystem32SoundRecorder.exe",
AppWinStyle.NormalFocus)

[code].....

View 5 Replies

Api Call - Moving And Resize External Window From Application

Jun 5, 2009

I had been looking for a way to move and resize an external window from my application and I came across this method: [Code] now this does not work, after looking around I many threads about how api calls in .net are different.

View 6 Replies

Error: Type System Windows Forms Application Has No Constructors

Sep 28, 2010

I grabbed an example program to modify for my needs to grab data from a Word doc and transform to XML. Right off the bat I get multiple errors. [Code] I am getting Error Type 'System.Windows.Forms.Application' has no constructors.

View 6 Replies

Getting An Error About Filesearch Not Being A Memeber Of 'system.windows.forms.application'?

Aug 23, 2010

I am adapting this code from excel vba to a Visual Studio program I am writing that will list files that are relevant to given information. I keep getting an error about filesearch not being a memeber of 'system.windows.forms.application' on line fs = Application.FileSearch, I have read and saw that I should be using the DIR function...

Sub SearchForForms()
Dim fs As FileSearch ', ws As Worksheet, i As Long
Dim SearchFileName As String
fs = Application.FileSearch <~~~ ERROR[code]....

View 1 Replies

Add Shell Item To Right Click Windows Menu?

Mar 25, 2010

I want to run my application on Windows Desktop when click my Shell Item in right Menu, for example any antivirus application add a menu for Scan item on the right menu of Windows and you can click right button on a file and scan the file via Antivirus Application how can i do this ?

i think i have to add a value on the Registry(HKEY_CLASSES_ROOTDirectoryShell)

View 3 Replies

Windows Context Menu + Shell Extension

Nov 2, 2010

I know this has been asked many times before, but since google is flooded with advertising upon this subject i thought i might try here. the problem is pretty much, how the ____ do i add an item to windows explorer context menus. I specifically want to target .xls file "Excel" Files. I understand that i can make an item by creating a key and sub Key in * registry. but besides that i am lost.

[Code]...

View 5 Replies

Determine If There Is An Error When Using The Shell Command?

Mar 11, 2010

I'm using a VB.net process to shell another exe process (which will wait until completion before processing is continued in the main app); however, I need to know if there is an error in the shelled exe process before continuing in the main app.

View 2 Replies

Vague Error Message In A .net Windows Application Concerning System.Data.SqlClient.SqlClientPermission With The Intranet

Jun 4, 2009

I am working on a windows application in vb.net 2005 and it needs to connect to the SQL Server database. In this example I testing if the connection is able to open properly:

[Code]...

Is it something dealing with the permissions set with the database server or something? I am new at .NET programming and I have been spinning my wheels on this for the past couple of days and I am at a loss. From what I research, this error should only occur if I was creating a web program, but I am not. It is a windows application.

View 7 Replies

VS 2008 Call Shell("explorer.exe ") - Keeps Hitting/missing At Random?

Apr 5, 2010

Ok i cant seem to trace why this happens, i have a button which simply opens a folder (from a list of folders shown in a listbox) in windows, using this Dim folder12 As String = ListBox1.SelectedValueCall Shell("explorer.exe " & folder12, vbNormalFocus)The problem is it keeps working then failing, ive managed to trace it down to the size of the folder thats making it fail, it works fine if the selected folders size is sub 300mb, but anything above and it fails ad opens the 'my documents' folder instead.

View 2 Replies

Open File With Shell - Returns Error On Correct Path

Mar 15, 2010

I need to open a *.py file in the shell (DOS) box, but it returns an error that no file was found at the specified path. But this path is completely correct. Unless Visual Basic are referencing to paths in another matter than C#? 'Cause I am developing in C# and referenced to VB to do this.

View 3 Replies

Controlling External Application Using Windows Handles

Dec 22, 2009

I am trying to control an external application using visual basic. I have spy++ in order to get the windows handles of all the tool bars/buttons etc. Can someone refer me to some code/ tutorials on how i can control the application. I will need to perform mouse clicks (ex clicking file>open) and sending key strokes in that application.

View 2 Replies

Windows - Block MsgBox From External Application?

Oct 7, 2010

Is there a way to intercept a MsgBox() from an external application and block it using VB.Net?

For this discussion, let's say the MsgBox Title is "SQL Application" and the Message is "SQL Error - Try Again".

I have found some examples of looking for the MsgBox to pop-up (by watching for the Window title) and then sending key(s) to press OK, but I was curious if the whole process could be avoided. Otherwise, the user still sees a MsgBox or a "flash", even if it's only temporary.

View 1 Replies







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