Hi,
Any one here to point me how can I run my application at windows logon?
(I am doing application for Browsing center. So I don’t want to create shortcut is startup path)
Frontend : VB 6.0
Thanks advance.
4 2653
Hi,
Any one here to point me how can I run my application at windows logon?
(I am doing application for Browsing center. So I don’t want to create shortcut is startup path)
Frontend : VB 6.0
Thanks advance.
Hey Buddy
I too want to do such thing ill try this now and then tell you if you find the solution later then plz tell me.
Ok
Hi i think the below code helps you both to start your application at windows logon.
First give refrence to Registry access function -
-
Dim regKey As New Registry
-
Dim strKeyValueHere As String
-
Dim strMyExePathAndName As String
-
Const strKeyRootPath As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run\"
-
Const HKEY_LOCAL_MACHINE As Long = &H80000002
-
strKeyValueHere = "MyKey"
-
strMyExePathAndName = App.Path & "\MyExeName.Exe"
-
If Not regKey.GetKeyValue(HKEY_LOCAL_MACHINE, strKeyRootPath, strKeyValueHere, strMyExePathAndName) Then
-
regKey.UpdateKey HKEY_LOCAL_MACHINE, strKeyRootPath, strKeyValueHere, strMyExePathAndName
-
End If
-
Thank you it is working, how can I show my project icon in system tray?
Hi i think the below code helps you both to start your application at windows logon.
First give refrence to Registry access function -
-
Dim regKey As New Registry
-
Dim strKeyValueHere As String
-
Dim strMyExePathAndName As String
-
Const strKeyRootPath As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run\"
-
Const HKEY_LOCAL_MACHINE As Long = &H80000002
-
strKeyValueHere = "MyKey"
-
strMyExePathAndName = App.Path & "\MyExeName.Exe"
-
If Not regKey.GetKeyValue(HKEY_LOCAL_MACHINE, strKeyRootPath, strKeyValueHere, strMyExePathAndName) Then
-
regKey.UpdateKey HKEY_LOCAL_MACHINE, strKeyRootPath, strKeyValueHere, strMyExePathAndName
-
End If
-
Thank you it is working, how can I show my project icon in system tray?
Ok
Try this Example.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Guinness Mann |
last post by:
Pardon me if this is not the optimum newsgroup for this post, but it's
the only .NET newsgroup I read and I'm certain someone here can help me.
I have a C# program that checks for an error...
|
by: Lumpierbritches |
last post by:
I have an application my partner wrote that would allow an autoresponse to any
Mapi compliant email that apparently in .Net won't, can someone assist me with
fixing this?
Here is the code:
...
|
by: Maileen |
last post by:
Hi,.
I would like to know what is the technique to make my application uses
the Windows Logon (user name and password) and user right (admin, guest
,...) to log on my application.
for...
|
by: Matthias Wohlmann |
last post by:
Hi,
I'm getting the following error when trying to start my application
using Internet Explorer:
"Server cannot access application directory D:\xxx. The directory does
not exist or is not...
|
by: Rekha |
last post by:
Hi,
System: Windows XP, Visual Studio 2005, ASP.NET 2.0, framework 2.0
When I run my web application in debug mode, I am getting the following error:
"Unable to start debugging on the web...
|
by: jademoon |
last post by:
I have posted this message to the SharePoint.PortalServer group and the
SharePoint.PortalServer.Development group and did receive any
responses, so I suspect I was posting to the wrong groups. I...
|
by: =?Utf-8?B?UGFyYWcgR2Fpa3dhZA==?= |
last post by:
Hi All,
We have a requirement where we have to develop a custom Login Page which
will accept user's NT credentials ( Username , password, domain name).
This then needs to be passed to a website...
|
by: drummerpunk10 |
last post by:
Sorry if this is off topic, I haven't really used this forum a lot so I don't know where to put it. Anyways I have a game application that runs off a list games and users on a file, that I built in...
|
by: Preben Zacho |
last post by:
Hi there
The scenario I got is this: I have created a Windows application in VS and I
want to deploy it to another machine running Windows Vista. Since I have no
control over this other machine,...
|
by: Alex |
last post by:
Get the Name and Phone Number of the Current Windows User in a .NET
Application
I am writing a simple .NET (C#) application. It needs to "automatic"
get the Name (last, first) and phone number...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |