I've created an AIO tool in Visual Basic and i need to create some code so when the application is opened it places itself in the computer startup folder. I know i can do it manually but i want to do it on school computers (restricted access).
i have a word template that needs to be used in an application so to make the path simple i placed the template in the debug file and i used application.stertuppath and it worked but when i publish the application it does not work it seems that the template is not included in the application but even when i place it manually in the aplication folder it does not work
I have an app that gets info from the internet into a label, the progam then decides which event will hapen depending on the info obtained, either load next form and continue or Application.Exit
My problem is that the speed that the info is returned from the net, varies and because the info is late sometimes the program exits when it should not.
i 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.
I am making a small game of pong and i want to incorporate a pause feature. is there a way i could freeze the form in place and then unfreeze it later at the push of a button. the tutorial i used is below so check it out to get an idea of what i've made so far.
I want A application that im going to make in VB.NET to load on Startup. I found a few topics on Windows Service for creating a start up service but then I read that you can't use it to load up a form. So there must be a way to have your program load on a computer when the user turns on or log's in at startup.Thing is, this application is going to be installed on many computers and people wont like having to remember to run it.
I've made some application in VB.NET 2005 and it works fine.I sent this application to the custemer and he is getting the following error at the application startup: "An unexpected error has occured. Would you like to restart the application?".
This guy is using Windows Vista. I've tested this application on several Vista machines and it works fine.
Do you have any idea how to debug it? Of course this guy doesn't have Visual Studio.
I'm having problems with startup application I'm trying to use a checkbox to enable and disable boot on startup(The enabled code works but the disable code doesn't)
Private Sub AddCurrentKey(ByVal name As String, ByVal path As String) Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("SoftwareMicrosoftWindowsCurrentVersionRun", True)
I am facing a small problem with vista, i have this code, all i am trying to do is to run my application when the computer start up.It works on Windows XP, But in Windows Vista is shows me an error message: "Requested registry access is not allowed." I don't understand why? i mean i am Under Administrator account, it should work fine.
here is my code
PHP Dim regKey As RegistryKey regKey = Registry.LocalMachine.OpenSubKey("SoftwareMicrosoftWindowsCurrentVersionRun", True) 'Set the program to start with Windows: ' regKey.SetValue("Media", "C:Program FilesMediamedia.exe")
I am working on a vb.net windows 32 bit application. The application needs to startup. So I add the registry entry to rut it on windows startup. Also it is set to run asdministrator.The application starts fine onall OS except Win7 32 bit. It works fine for win 7- 64 bit. On Win 7 32 bit:If i execute the application directly, it runs fine. But it does not starts at the time of windows startup.
With my new ventures in VB, I wondered how I can allow the user to start the application on startup if they wish. Where when the checkbox for it is checked, it will launch on startup. And when its not checked, it is normally launched. (e.g. Windows Live Messenger)
I have created a small multithreaded application using VB.NET. There is no problem when the user manually runs this application. A problem exists when I added this application on startup. It hangs after I rebooted the system. The application is still running its thread but I can't see its GUI because its frozen. If I kill it on task manager and started again, the application works fine. What could be the possible reason/s why this application hangs when added on startup?
Imports System.Threading Public Class USBLock Public Event Lock()
[Code]....
or just a thought on this subject: the reason why the program hangs on startup is because the application is loaded while the .net framework service has not yet started.
I have completed a VB.NET app .its working very fine from vs2005. Now I am trying to publishing app. My problem is that i got an error when i tried to run exe.I was using five VB6 dll in my app.1)
I am using following code to add my application to StartUp of Windows. It works well in XP but gives error in Vista that you donot have permission to edit registty file.[code]
I have a VB.NET application with a connection to an SQL Server 2003. On the server there are two databases, MyDatabase and MyDatabase_Test. What I would like to do is to show a dialog when the program starts that let's the user choose which database to use. My idea is to create a new form as the starup form that sets this property and then launches the main form.Currently the connectionstring is specified in the application config file. Best would be if I can specify two different connection strings in that file to choose from, but for now it is also acceptable with other solutions like hardcoding the two connectionstrings into the startup form.EDIT: In the dataset.xsd file there seems to be the relevant part
<Connections> <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="MyDatabase_ConnectionString" ConnectionStringObject="" I
i like my application to start and goto system tray from begining from where i show or hide my main application form. To implement this i create 1 form named "FRM_main" and 1 Class named "MainClass" then define a procedure in MainClass which is as follow.
[code]Public Shared Sub Main() Dim FRM_main As Form = New Form FRM_main.Show() End Sub[/code]
and set Title, Size and location of form at design time.but i didn't get the desired result. my application didn't start and goto system tray as inteded.i also try coding the FormLoad Event to ME.Hide but it also doesn't work so how do i do this?
I am working on a Windows Forms application which is primarily to be used as a command line application with an optional GUI in the case where no command line options are specified. The program is intended to be a lightweight version of a larger program, intended to perform a couple of very specific tasks without requiring all the initialization required in the larger program.To this end, I am planning on using Me.Startup in applicationevents to process the command line options and determine if the Startup form should be displayed or not. In the case where the startup form should not be displayed, what is the method to close the application from within Me.Startup Application.Exit, Me.Close, and others are not available from within Me.Startup. My searches online have shown that I can use e.ApplicationExit() from Me.UnhandledException, but this method is also not available from Me.Startup.if anyone has any better ideas on how to accomplish what I am trying to do, those comments are always welcome.
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]
I 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
The MSDN page for System.Windows.Application lists a property called StartupUri. However,this MSDN example uses Startup.Where is Startup defined? I couldn't find it in the MSDN documentation.
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.
My application has encountered a problem and needs to close.Of course Microsoft is sorry for the inconvenience, but how am i supposed to debug my app?Which dll fails to load?
The error report contains between others, system.io.fileloadexception