Click here to Skip to main content
15,891,375 members
Home / Discussions / C#
   

C#

 
AnswerRe: Listbox Pin
NaNg152418-May-06 9:51
NaNg152418-May-06 9:51 
AnswerRe: Listbox Pin
microsoc8-May-06 16:31
microsoc8-May-06 16:31 
GeneralRe: Listbox Pin
JMichael24689-May-06 2:44
JMichael24689-May-06 2:44 
QuestionFew focused questions Pin
NaNg152418-May-06 9:37
NaNg152418-May-06 9:37 
AnswerRe: Few focused questions Pin
NaNg152418-May-06 9:40
NaNg152418-May-06 9:40 
GeneralRe: Few focused questions Pin
Stefan Troschuetz8-May-06 10:46
Stefan Troschuetz8-May-06 10:46 
AnswerRe: Few focused questions Pin
Stefan Troschuetz8-May-06 10:58
Stefan Troschuetz8-May-06 10:58 
AnswerRe: Few focused questions Pin
DigitalKing8-May-06 17:46
DigitalKing8-May-06 17:46 
1. Create some registry entries under HKEY_CLASSES_ROOT:

This can all be done programatically, but it takes some work. Look at the Microsoft.Win32 namespace for registry manipulation functions.
1) Create a key by the name of the file extension you want
2) Set the default attribute of this key to a word that describes your program. It's name doesn't really matter.
3) Create a key by the name of the word you decided on in step 2.
4) Create some subkeys: 'DefaultIcon' and 'shell'
5) Set the default attribute of the DefaultIcon key to the path of your icon. If you want to use the the same icon
   as your executable, do something like this: <code>c:\code\mysupercoolapp\exefile.exe,0</code>
6) Create a 'open' subkey under 'shell' and a 'command' subkey under open
7) Set the default attribute of the 'command' key to the path of your program (include the %1) <code>c:\code\mysupercoolapp\exefile.exe %1</code>
8) Restart
9) When a file with the extension you've picked is double-clicked, your application will run.
   The first argument will be the path of the file.


2. You can put a link in the startup folder of the start menu, or add a registry entry to either

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
(if you want it to run whenever the computer starts)

or

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
(if you want it to run whenever only the current user logs on)

3. As the other post-er said, search for "single instance"

4. System.Diagnostics.Process.Start("http://www.myurl.com"); will open the url in the default web browser

5. I should read up on cryptography

6. They are in a zip file in Visual Studio's program folder:
C:\Program Files\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary\VS2005ImageLibrary.zip
(or similar)

Hope this helps,
DigitalKing
GeneralRe: Few focused questions Pin
NaNg152419-May-06 0:52
NaNg152419-May-06 0:52 
QuestionRe: Few focused questions Pin
NaNg152419-May-06 1:54
NaNg152419-May-06 1:54 
AnswerRe: Few focused questions Pin
DigitalKing9-May-06 19:47
DigitalKing9-May-06 19:47 
QuestionFew focused questions Pin
NaNg152418-May-06 9:36
NaNg152418-May-06 9:36 
QuestionWalking an XSL to get node/attribute data Pin
LongRange.Shooter8-May-06 9:05
LongRange.Shooter8-May-06 9:05 
QuestionAsyncCallback Pin
yongwpi8-May-06 8:54
yongwpi8-May-06 8:54 
QuestionRichTextBox throws tab in there Pin
likefood8-May-06 8:25
likefood8-May-06 8:25 
AnswerRe: RichTextBox throws tab in there Pin
LongRange.Shooter8-May-06 9:09
LongRange.Shooter8-May-06 9:09 
GeneralRe: RichTextBox throws tab in there Pin
likefood8-May-06 9:23
likefood8-May-06 9:23 
GeneralRe: RichTextBox throws tab in there Pin
likefood8-May-06 9:28
likefood8-May-06 9:28 
AnswerRe: RichTextBox throws tab in there Pin
likefood8-May-06 10:01
likefood8-May-06 10:01 
GeneralRe: RichTextBox throws tab in there Pin
Office Lineman8-May-06 12:32
Office Lineman8-May-06 12:32 
GeneralRe: RichTextBox throws tab in there Pin
likefood9-May-06 7:27
likefood9-May-06 7:27 
Questionspeech sdk5.1 Pin
TheEagle8-May-06 8:09
TheEagle8-May-06 8:09 
Question2 clicks to activate form menu Pin
Ravi Bhavnani8-May-06 8:09
professionalRavi Bhavnani8-May-06 8:09 
Questionwhy the DataGridViewComboBoxColumn values are lost?!!! Pin
Elvia Gonzalez8-May-06 7:56
Elvia Gonzalez8-May-06 7:56 
QuestionShow and hide buttons Pin
Zspada158-May-06 7:26
Zspada158-May-06 7:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.