Windows - Programmatically Change The Startup Form On Application Launch?
Feb 16, 2010Can I programmatically change the startup form on application launch in VB.Net?
View 2 RepliesCan I programmatically change the startup form on application launch in VB.Net?
View 2 RepliesIs there some way of programtically changing the culture for a multi form application on startup so that the application will interpret date formats correctly. For example if the aplication runs on a machine with a en-US culture it would be able to take a date from a database in the MM/dd/yyyy format and convert it to a date object and when the same application runs on a en-GB machine it can take that same MM/dd/yyyy date and convert it into a date object without getting a date format exception.
View 4 Repliesi was wondering if i can copy my application to the startup folder in windows when the form loads. The path i want my app to copy to is: C:Documents and SettingsAll UsersStart MenuProgramsStartup
View 1 Repliesi deleted my previous start up form to be replaced by another one but each time i launch the application,the deleted start up form is still displayed.i dont know from where this deleted start up form is being loaded.
View 3 RepliesI can hide my startup form (or make it appear hidden) on startup. I can start my app on windows startup--through registry values--if the user checks a checkbox.
But if the app starts up on windows startup, I want the form to be hidden, so the program can just keep working without bothering anyone. If it starts up because the user started it, I want the form to be showing, because the user probably wants to change some settings or something.
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?
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.
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 RepliesI 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?
when i change the startup window on the application settings it still doesnt apply the change i made
for example i change the startup for to reservation but the startup form in execution is still the client form
one of the apps that I wrote a couple months ago is getting to be rolled out to my production floor; one issue tho - It works great as a standard executable (you double-click, it starts and waits for data), however, I cannot get it to start as a system service.
I've already done a little bit of research for how to create a system service, but most of the information that I've come across is point to VC# or Visual Studio 2010 - I'm not finding much for VB 2010. Additionally, I'm only using VB 2010 Express and I'm pretty sure that I don't have the Windows Service application template's on my PC.
My application does have a "UI", but there isn't any user interaction; it starts and just sits minimized in the system tray polling a directory for the existence of a file - i.e. the windows form is not required.
Is there any other way to create a shortcut of an application programmatically or just make the application run every time windows loads up..I got this code of google but I am not too happy with it because it requires some assembly that other users might not have and I get an error when launching this feature on other computer could not load file or assembly interop.IWSHruntimelibrary..[code]
View 11 RepliesI developed an application in Visual Basic 2010 Express which has two features:
1) It is portable and uses some .dlls which must be in the same folder
2) Requires Administrator in order to run
I want my application to run on windows startup. So i created the registry string value and made some tests that gave me the following results:
1) Windows XP -> Runs on startup without any errors
2) Windows 7 Starter -> It simply ignores my application
3) Windows 7 Premium -> The run confirmation box from unknown publisher appeared and when i selected to run, AVG gave a virus warning
4) Windows 8 Consumer Preview -> It simply ignores my application
well i successfully docked a perpixel alpha form with the main form(form1). but the perpixel alpha form always appears at the top left corner of the screen and when i move the main form the form(perpixel alpha form) inside it dosen't move it stays at the top left corner. ALWAYS. to dock the perpixel alpha form i used
Me.toplevel = false
Me.parent = form1
I wrote a small app we use on our computer to keep them running optimally and do some utility things (delete temp files, defrag drives, clean registry, backup my docs to the server, etc). One of the options I ahve in there is "Reset Windows to Defaults" and the objective was to setup windows how we normally would set them up before we give them to our users. So if a user messes with all his/her settings we can click this button and reset it all back. So far it resets IE settings, changes Window Explorer views, puts all the default icons on the desktop and turns off desktop cleanup, etc. Well one of the last things I want to do is change to the default Windows XP theme and apply it. After a lot of searching the internet I found this:
[Code]...
It does reset colors and stuff back to the theme. The problem is if a user has "Windows Classic" set and this is run it does apply the theme.....mostly. Things like dialog boxes stay in classic while the menu structure and desktop go the XP style. If you go into display properties it still shows "Windows Classic" but under Appearance it shows "Windows XP" which leads me to believe even though this function is for themes its actually just applying the appearance and not actually setting the theme.
I am making a setup application and I need to know how to properly add a registry key so the application startup with windows. I have made what you can see on the image but I get an error when my PC restarts.This setup is nothing special I just need to make the registry key properly.
View 10 RepliesI am just wondering if you people will be able to help me make my application autload on windows startup (Like Windows Live Messenger does), I have been researching on the internet and I cannot find anything for it.
View 5 RepliesI'm working with an app that starts at OS startup. Is there any way to know if the app was started from system startup or from a manual execution?
My current attempt (won't work):
RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
rkApp.SetValue("Low CPU Detector /fromStartup",
[Code]....
I also read this How to detect whether application started from startup or started by user?
How to Add an Application to Windows Startup visual basic 2008?
View 7 RepliesI want to launch an .exe file from my resources.?
View 1 RepliesI'm looking for a way to change the startup form after 15 days. The best way to approach it seems to be by adding a registry key with the date on the first startup.
View 12 RepliesAlright so im working with a Tabbed web browser and i cant find a way to change the startup form by a button click..This is what im trying to make: In my webbrowser you can open a security window, in that window you can choose to "enable password on startup" or "disable password on startup". The enable password on startup button shall make the loginform the startup form, and disable shall make form1 the startup form. Ive got no clue about how to do this so im asking you.
View 5 Replies'm working on a Windows form application using VS 2008. I'm starting to get more and more forms in my application. There are times when I would just like to view the form I'm working on. Is there a way to view a form without having to change the startup from to the form you want to view?
View 2 RepliesHow can i automatically start a vb.net application on windows startup or load?
View 13 Replieshow can i run a application on windows startup for all user accounts on my computer?
View 3 RepliesI have an application that should run every time when boot windows(xp/vista). I currently added this app to all programs and startup. How can I do in code. Is the best way to use registry and put the key in HKEY_CURRENT_USERSoftwareMicrosoft Windows CurrentVersion Run. It is very important to start every time when windows start.
View 1 RepliesWell on my program I made a licence that shows at the begining. So, I was wondering how do I code a check box to change the startup form?
View 2 RepliesI'm using Application Settings to set the the text values of my buttons. I want to create a form that will allow the user to change what the text is. Is that possible? I'm using Application Settings because the text needs to save for the next time the program[code]...
View 2 RepliesI'm trying to create a 'trial version' for a software of mine, currently it is pay-only. Basically the most efficient way I can think of is to simply change the startup form of the trial version after 15 days. The new startup form will simply be a request to register.
-How can I change the startup form after 15 days?
-How can I ensure that this cannot be changed afterwards (so it isn't easily pirated).
How do I change the startup form for an application when a user clicks a button?
View 1 Replies