Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 28th, 2005, 09:27 PM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to create a program autostart

I have tow question want to ask
(1)I created a windows application using c#, my client want to autostart the application when windows is starting up and in my application, it must have a menuitem to set program will autostart or not.

(2)In my application, it has a textbox to display user's input text.
I set textbox's scrollbars property to vertical.when user input text, the scrollbar will not auto scroll to the end of the textbox.I want scrollbars autoscroll to the end according to the user input.

Thanks any suggestion!


 
Old June 29th, 2005, 05:04 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You should be able to add a shortcut to the users Start->Programs->Startup start menu area. This would launch the program on windows startup.

-Peter
 
Old June 29th, 2005, 08:08 AM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you.
when I create a shortcut on windows's startup folder.The application really can auto startup.But how I can create an option for client to choose whether auto startup.

The second question I have solved.I can invoke following method to see the last line wroted in textbox control:
textBox.select();
textBox.srollToCaret();

 
Old July 14th, 2005, 01:15 AM
him him is offline
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi

if you want to start ur application when system start, then for the same u have to write one regsitry entry in hkey_local_machine\software\microsoft\windows\curr entversion\run
where u give ur application path

for eg : if ur application is saved at location C:\xyz.exe

then at specified loaction in regsitry

ur entry will be look like

AnyNameForKey=C:\xyz.exe

AnyNameForKey= is any name u can give for the key.

so u will be able to control from ur application code wheather to run ur application when system starts.

Enjoy Programming !!!

Enjoy Programming
 
Old September 8th, 2006, 04:34 AM
Registered User
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

may i ask 1 question, where to get references(notes) to learn how to make a start up programme. thanks!

 
Old September 8th, 2006, 12:55 PM
Authorized User
 
Join Date: Aug 2006
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to shivanshub
Default

u can try C# 2005 by wrox publication ( pro. version)

I am not like every body else.
 
Old September 10th, 2006, 04:20 AM
Registered User
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oh, thanks!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Autostart Macro stepdev Excel VBA 0 June 2nd, 2006 11:03 AM
I need some codes to create a program skoob JSP Basics 1 April 14th, 2005 12:56 AM
Please Help Create Java Program!! Tigermoney JSP Basics 4 April 18th, 2004 09:21 PM
How to create a search program? kyootepuffy Classic ASP Basics 4 August 25th, 2003 08:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.