473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Run Application at windows logon.

487 Expert 256MB
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.
Sep 27 '07 #1
4 2653
Ali Rizwan
925 512MB
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
Sep 27 '07 #2
hariharanmca
1,977 1GB
Hi i think the below code helps you both to start your application at windows logon.

First give refrence to Registry access function

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim regKey As New Registry
  3. Dim strKeyValueHere As String
  4. Dim strMyExePathAndName As String
  5. Const strKeyRootPath As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run\"
  6. Const HKEY_LOCAL_MACHINE As Long = &H80000002
  7. strKeyValueHere = "MyKey"
  8. strMyExePathAndName = App.Path & "\MyExeName.Exe"
  9. If Not regKey.GetKeyValue(HKEY_LOCAL_MACHINE, strKeyRootPath, strKeyValueHere, strMyExePathAndName) Then
  10.         regKey.UpdateKey HKEY_LOCAL_MACHINE, strKeyRootPath, strKeyValueHere, strMyExePathAndName
  11. End If
  12.  
Sep 27 '07 #3
CyberSoftHari
487 Expert 256MB
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

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim regKey As New Registry
  3. Dim strKeyValueHere As String
  4. Dim strMyExePathAndName As String
  5. Const strKeyRootPath As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run\"
  6. Const HKEY_LOCAL_MACHINE As Long = &H80000002
  7. strKeyValueHere = "MyKey"
  8. strMyExePathAndName = App.Path & "\MyExeName.Exe"
  9. If Not regKey.GetKeyValue(HKEY_LOCAL_MACHINE, strKeyRootPath, strKeyValueHere, strMyExePathAndName) Then
  10.         regKey.UpdateKey HKEY_LOCAL_MACHINE, strKeyRootPath, strKeyValueHere, strMyExePathAndName
  11. End If
  12.  
Sep 28 '07 #4
Ali Rizwan
925 512MB
Thank you it is working, how can I show my project icon in system tray?
Ok
Try this Example.
Attached Files
File Type: zip Sys Tray.zip (4.1 KB, 179 views)
Sep 28 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
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...
3
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: ...
1
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...
2
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...
4
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...
0
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...
6
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...
5
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...
4
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,...
9
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.