Re: Getting prog to run when the first desktop window is ahown after l

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Sanjeev,

MSDN have their own managaed forums if you are a subscriber

What language are you writing in?

V C++

microsoft.public.dotnet.languages.vc

VB.NET

microsoft.public.dotnet.languages.vb

ASP.NET

microsoft.public.dotnet.framework.aspnet

C#:

microsoft.public.dotnet.languages.csharp

Anyway,

If you are using a service controller object in .NET languages you can set it to
run as current user not just system. But using a service if the application runs
for a few seconds or a few minutes is a waste of computer resourses

Best thing you can do is add your application to the current user RUN key

Simply:

Imports Microsoft.Win32

Dim reg As RegistryKey =
Registry.CurrentUser.OpenSubKey(Software\Microsoft\Windows\Current Version\Run",
True) 'Open for writing
Dim strAppPath As String = Application.ExecutablePath()

Try

reg.SetValue("My Startup Name Here", strAppPath)

Catch ex As Exception

MessageBox.Show("Unable to create startup entry", "My Application Name)

Finally

If not (reg Is Nothing) Then reg.Close()

End Try

--
Newbie Coder
(It's just a name)



"Sanjeev Sharma" <Sanjeev Sharma@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A732C7CF-5194-4303-9B23-6243B7B2BFBE@xxxxxxxxxxxxxxxx
I didn't find appropriate forum for asking Windows based question in MSDN, so
I posted it here. I need to get my program to run just after the log in and
when the desktop is shown first. Tried using service but my program need to
run under the current user rather than under "SYSTEM". Please direct me to
appropriate forum if necessary.


.



Relevant Pages

  • Re: Vinca script, cross bar angle - Ki Ri Ke
    ... I was writing in English, ... I remembered that Marija Gimbutas ... wrongly thought it was in The Language of the Goddess, ... You ignore all I write about Goebekli Tepe, ...
    (sci.lang)
  • Re: Word count of minimum vocabulary
    ... Suppose an existing vocabulary in a certain language has ... of writing this word could be mentioned in a dictionary, ... Chinese or English. ... Now are these all different types of compounding for you? ...
    (sci.lang)
  • Re: SCWC 32: Discussion: IMPLEMENT
    ... Language is not writing. ... Writing and reading are clearly and obviously two facets of ... speech is unavailable; it is not speech, nor is it a 'recording' of ...
    (rec.puzzles.crosswords)
  • Re: Vinca script, cross bar angle - Ki Ri Ke
    ... writing to anyone who studies writing carefully. ... separate numbers from language and writing. ... You go on claiming that the chapter on the Sacred Script ... My experimental reconstruction of Magdalenian concerns ...
    (sci.lang)
  • Re: Invention or Evolution
    ... >>> the fact that no reading of the PSin inscriptions is widely accepted. ... >> characters the values that have been guessed for them from PSin. ... >> You can see a picture of a syllabary written by Sequoyah in *Language ... > symbols from looking at English writing, ...
    (sci.lang)