C# - Launch A Windows Application From A Webpage?
Mar 8, 2011
We have a company intranet and the powers that be think it would be nice to have a collection of icons/links representing the applications that most reps use (Outlook, Excel, few other apps).
The idea would be that if the application is installed, clicking the link/icon would launch the application on the client machine.
Anyone ever had a requirement like that and been successful implementing it?
View 3 Replies
ADVERTISEMENT
Aug 26, 2010
I run the app under current logged in user from the service.To give you background, I have a VB.NET Windows service whose sole functionality is to run a Winform App at a specified time. Apart from that it also sets a system wakeup timer so that the system can be woken up at the specified time, if it goes into standby/sleep, to run the app. This service has to cater to XP/Vista/Win7 desktops on our network. This service won't run on servers and laptops.
The Winform App shows a UI for the user to provide some inputs. If the user does not provide the input within 15 minutes, then it defaults the value and then goes into system tray icon. The user can click on the icon and change the values later (within in a specified time frame and that too only twice).
There is absolutely no interaction between the service and the winform app apart from the service starting the app. It also monitors if the app has been killed by the user/crashed. If it has been killed/crashed, then a new instance is run after 30 mins from previous run.
If there is no user logged on, then also I want the app to be run at the specified time. As I said before, the app has a default timer. So if some user has just logged off from the system, then defaults would be set by the winform app.Now coming to why I am stuck with this design - I cannot use TaskScheduler because it has been disabled on all machines and security team is not willing to change it. TaskScheduler had the option to wakeup the machine from sleep and other things. So basically I ended up creating a service which is acting like task scheduler.
Currently when I run the app.exe via process.start() within the service, its running under SYSTEM account as the service is also running under LOCAL SYSTEM. So basically I am not getting any UI. Is there anyway to run it under the current logged in user? I am not worried about multiple user login as we wont be running it on servers and switch user is not enabled on our desktops. Even if somebody has done a remote login via mstsc, then also I need the run the app and show the UI to the user.
View 1 Replies
Jul 16, 2009
I have seen various applications that can be launched from a link embedded in a web page. example: irc ://irc .freenode.net/#roomname Opens IRC and joins the room.
View 1 Replies
Nov 1, 2010
I can launch Excel with the document I want using VB.Net 2010:
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "c: empmyfile.xlsx"
p.Start()
Excel starts OK with the file opened. I edit the file, but when I close it down, Excel doesn't ask if I want to save changes. So it closes and loses my edits.
If I do the same with a text file:
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "c: empmyfile.txt"
p.Start()
It opens (in Notepad++), I edit it and close it, and Notepad++ asks if I want to save changes.
I've now tried similar code with a Word document - and that's OK. Also with an OpenOffice Sheet document and that works as well.
This behaviour is happening in Windows 7 with Excel 2010. It works as expected in Windows XP with Excel 2007.
What am I doing wrong with Excel? Is it me?
View 2 Replies
Feb 16, 2010
Can I programmatically change the startup form on application launch in VB.Net?
View 2 Replies
Sep 16, 2010
Is there a .Net control I can use to display a web page from a vb.Net windows forms application?
I am writing an app that will produce a slide show from a specified directory. The idea is it will ideally include Images, Video clips (via Windows Media), URL's (held in a text file), PDF documents and power point presentations.
Images and media clips aren't an issue. At present I am looking at displaying specified web pages. I am aware that I can use
System.Diagnostics.Process.Start("http://webinta/Pages/Home.htm"
to open a browser window, but I want control of that as after a specified amount of time it needs to close so I can display the next image (media clip, url etc).
View 2 Replies
Feb 27, 2010
I'm using Process.Start method to launch another application from my application. Until today, there was no problem. But I have tested my application in a different OS, Windows XP (SP3), and my application didn't work right on that. I'm also using arguments to run that application. I guess for some reason my application couldn't send arguments to other application correctly under Windows XP. Maybe it is related to my code. But you should know, it works great on Windows 7.
[Code]...
View 3 Replies
Feb 12, 2009
I have a windows app written in Visual Basic (Visual Studio 2005) where different URLs are launched in a new windows when every time a different button is clickedHowever, if it has already been launched, I would like to bring it to front instead of opening up several windows for the same url.
View 1 Replies
Oct 29, 2010
I need help on how to launch the normal windows desktop. I have a TCP Client/Server application where the client should start before any other application starts. To do this, I replaced explorer.exe with my application file path in the registry. What I want to do is the client minimizes when it receives a command from the server, and start windows as normal.
View 4 Replies
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
May 3, 2012
The problem is as follows: If Windows starts up in Safe Mode, no applications I make with VS 2010 will run. Even if I try to launch them, doubleclicking, running, almost everything I tried, the problem is that the application just doesn't show up. There is no window there, and I don't know (haven't checked) if a process related to the application is running.
[Code]...
View 1 Replies
May 9, 2009
We are running XP workstations in an Active Directory domain. I used gpedit.msc to setup a startup script that launchs Spy++. This works, and just before the login screen comes up, Spy++ pops up. The only problem is, the Spy++ window then goes away just before the login window loads.
I want to use Spy++ to find the attributes of the XP (Active Directory) login window. Is there a way to do this?
View 1 Replies
Jun 24, 2009
I am trying to allow the user to launch the Windows Screen Saver by clicking on a button. I have the following code:
Code:
Option Explicit On
Public Class Form1
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd
[Code].....
View 3 Replies
May 8, 2012
I am running Microsoft Visual Basic 2010 Express. I created a simple program that is nothing more than dozens of Windows Forms that are linked together by the various clickable buttons I put on each form. The program is like a "book" with several pages, and you jump to a specific page by clicking on specific buttons on the current page ("Windows Form").
My question is, how do I change my program so that when it is launched, instead of just 1 Windows Form opening, the program opens up several Windows Forms (of my choosing) automatically? In other words, instead of my "book" (VB program) opening "page 1," when I run it, I want it so that pages 4, 7, 8, 10, and 15, are "opened" whenever I run my "book."
Is there some code I need to insert into each Windows Form I wanted opened automatically when the program is loaded? Or is this a MS VB 2010 Express environment option I need to set?
View 7 Replies
Dec 14, 2011
I am trying to launch a application from a visual basic script. Everytime I run the script it looks for the application in whatever folder the script is sitting in. If I put the script in the folder where the executable is it works. Unfortunatley this script need to run from users temp directories.
' *****Declaring variables*****
Option Explicit
' Comment the next line out if you are not getting this to work and you need to debug.
[Code].....
View 1 Replies
Apr 28, 2009
In VB 2008, I am using the class 'process' to launch and external application with a few parameters. Does anybody knows how can I send it programmatically to second monitor?
View 1 Replies
Jul 13, 2011
I want to launch an .exe file from my resources.?
View 1 Replies
Aug 15, 2011
I've been working on a piece of software for a few weeks now and I've got to the point where I'm publishing it and testing it on other computers, namely my colleague's. We're both working on the same network and have similar permissions for our accounts, but for some reason the application will launch on my account but not his.
We've tried using the same computer and just changing accounts, but that won't work either; he still isn't able to launch the published application.
I receive the standard "[x] has encountered a problem and needs to close. We are sorry for the inconvenience." message.
What is baffling me is that we've tried previous versions on his computer and they worked just fine. I can't think of any changes that I've made that would suddenly stop the application from running.
A few extra pieces of information: the application has a splashscreen, which displays for a few seconds before the error message crops up. In this time, the program is supposed to check if certain files and directories exist and, if not, create them. It also changes file attributes. These files exist in a directory we are both able to access and both have permissions to change. It also changes and sets some variables within the program itself, but I don't see that being an issue. It is able to catch exceptions of type IOException and InvalidOperationException (which was being thrown when a computer didn't have access to the intranet).
View 4 Replies
Mar 7, 2011
I have a windows program which is launched after pressing certain key combination (if its already running). Now i want to do this triggering through vb.net code? How can it be done?
View 3 Replies
Feb 10, 2011
how to check the server DateTime when the application launch. i want to make sure the user PC has the same DateTime as server when the user use the application. Reason being is some user may tend to change their DateTime backward and it causes a major confusion when it update in the server database. Below is my code....Both of the code giving problem and does not compare the date time to my pc datetime... how to check the the server datetime is same with the pc server time....
Public Sub GetServerDateTime()
Dim WMIScope As Management.ManagementScope
Dim WMIConnectionOptions As New Management.ConnectionOptions
[Code].....
View 1 Replies
Mar 19, 2011
I have developed an application which launch an external executable. I want to be able that if I am using another one, like notepad, I dont loose the focus to the one called by my application. I have test it changing the startinfo.windows style ( http://msdn.microsoft.com/en-us/libr...ndowstyle.aspx ) from Normal, minimized and hidden.Every one I have used make notepad loose the focus to the new launched application. Is it there any way to launch an application and make this dont get the focus, in order I can continue working in other app without problems?
View 7 Replies
Feb 8, 2010
Gentlemen, I have an application made by a Vendor that sends a set of arguments to an application I am working on. I am unsure how to "launch" my application with these arguments. The vendor's app is a service that runs and launches my application when necessary. I'm assuming i need to modify the main form's constructor, but not sure.
View 2 Replies
May 3, 2009
I know how to run forms in second monitor, but I dont know how can I lauch and external exe program in second monitor. How can I do this?
View 9 Replies
Apr 12, 2007
What I'm trying to do is to launch Powerpoint Wiever 2003 in my secondary screen.I can get a form to launch in the 2nd screen but any programs I launch from that form stary screen.[code]
View 5 Replies
Aug 23, 2010
I have an application that consists of about 4 screens. Screens can be changed by clicking on buttons or via menu item. I use about 16 to 17 tables in all for all 4 screens. I've publised the application and it works fine except that it takes about 1 1/2 to 2 minutes to launch the application using the setup file that I save onto my PC. If I get lucky, a little over a minute is already fast for me. What can I do to help speed up the launch time?
View 12 Replies
Aug 20, 2010
I have a legacy application that has an interactive graphical user interface, but also periodically checks for files in a directory and reacts to the files. I want to launch the application from a VB program, but not see the GUI (i.e., just let the file interface do it's thing). I really don't want to see the application running on the desktop at all (e.g., no windows, nothing on taskbar), the only evidence would be if I checked task manager I'd see it running.
Obviously this app would be ideally a service, but that's not where we are and I can't change it so I'm trying to simply not see the GUI.
I've seen the ProcessStartInfo.CreateNoWindow and WindowStyle = hidden flags but they don't hide the GUI of the legacy app.
again launch the legacy app (actually an unmanaged C++/MFC app) from a VB managed admin app.
View 4 Replies
Apr 26, 2010
This is what I'm trying to accomplish: I have a Point of Sale application that integrates with a credit card processesor. I wan't to remove any user interfacing logic in regards to the credit card processor in the point of sale and add it to a application that sits in the background or system tray. I want to be able to send a command to the background app to popup a form for user input.
For example: User in the Point of Sale clicks a button "Credit Card" at this point it will send a command to the background app say "ProcessCC" which will pass a transactionid and an amount , this will open a form for the user to enter in the credit card information and submit the payment to the credit card proccessor.
Reason: I need to get a padss certification and don't want to submit the point of sale to do it. Rather send the simple background app that will control any credit card processing functionality such as encryption , storing etc. I know it can be done using sockets but was hopping for an alternative solution.
View 1 Replies
Aug 11, 2010
I was trying experimenting with things and I was stuck in a way about how to refresh a webpage from a windows form. E.g.: a start button on the form refreshes the page [URL] and stop button stops the process.
View 6 Replies
Aug 18, 2011
I want to allow a user to click a button that will launch Windows Explorer and go straight to the My Pictures folder when I don't know who the current user is.
[Code]...
View 1 Replies
Apr 22, 2011
I have developing application to Remote Control Winamp. I want to know What number of the Windows Handle Message to Launch Winamp automatically?
I have been search in many forums, but I have no get anything.
I only several Window Handle Message about Winamp :
CODE:
View 3 Replies