Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
QuestionHow to sign digital certificate using vs.net 2005 IDE... Pin
Pankaj - Joshi23-Oct-07 18:41
Pankaj - Joshi23-Oct-07 18:41 
QuestionHow to add home page in start menu...? Pin
Pankaj - Joshi23-Oct-07 18:34
Pankaj - Joshi23-Oct-07 18:34 
AnswerRe: How to add home page in start menu...? Pin
N a v a n e e t h23-Oct-07 18:44
N a v a n e e t h23-Oct-07 18:44 
GeneralRe: How to add home page in start menu...? Pin
Pankaj - Joshi23-Oct-07 18:47
Pankaj - Joshi23-Oct-07 18:47 
GeneralRe: How to add home page in start menu...? Pin
N a v a n e e t h23-Oct-07 18:54
N a v a n e e t h23-Oct-07 18:54 
GeneralThanks for the suggestion Pin
Pankaj - Joshi23-Oct-07 19:14
Pankaj - Joshi23-Oct-07 19:14 
GeneralRe: How to add home page in start menu...? Pin
Abhijit Jana23-Oct-07 19:14
professionalAbhijit Jana23-Oct-07 19:14 
AnswerRe: How to add home page in start menu...? Pin
Abhijit Jana23-Oct-07 19:10
professionalAbhijit Jana23-Oct-07 19:10 
Hi Pankaj,

Use This one, I have done the same thing few times ago.. now it will help you. Cool | :cool: Cool | :cool:

Call Function
urlShortcutToDesktop("My Home Page ", myurl);


Function Defination
private void urlShortcutToDesktop(string linkName, string linkUrl)
{
string deskDir = Environment.GetFolderPathEnvironment.SpecialFolder.DesktopDirectory);
using (StreamWriter writer = new StreamWriter(deskDir + "\\" + linkName + ".url"))
{
writer.WriteLine("[InternetShortcut]");
writer.WriteLine("URL=" + linkUrl);
writer.WriteLine("IconIndex=0");
FileStream fs = new FileStream("C:\\Internet.ico", FileMode.Create);
Resource1.Internet.Save(fs);
fs.Close();
string icon = "C:\\Internet.ico";
writer.WriteLine("IconFile=" + icon);
writer.Flush();
}
}

internet.ico store in a Resource file, as Internet. AS i used Resource1.Internet.Save(fs); U can use this icon in ur own way also

Let me know when done. Cool | :cool:





Best Regards
-----------------
Abhijit Jana
View My CodeProject Articles

"Success is Journey it's not a destination"

GeneralRe: How to add home page in start menu...? Pin
Pankaj - Joshi23-Oct-07 19:18
Pankaj - Joshi23-Oct-07 19:18 
GeneralRe: How to add home page in start menu...? Pin
Abhijit Jana23-Oct-07 21:16
professionalAbhijit Jana23-Oct-07 21:16 
GeneralRe: How to add home page in start menu...? Pin
N a v a n e e t h23-Oct-07 19:48
N a v a n e e t h23-Oct-07 19:48 
GeneralRe: How to add home page in start menu...? Pin
Abhijit Jana23-Oct-07 21:18
professionalAbhijit Jana23-Oct-07 21:18 
QuestionWhat is the important of <!DOCTYPE > ? [modified] Pin
bug_aonz23-Oct-07 17:02
bug_aonz23-Oct-07 17:02 
AnswerRe: What is the important of <!DOCTYPE > ? Pin
N a v a n e e t h23-Oct-07 18:50
N a v a n e e t h23-Oct-07 18:50 
AnswerRe: What is the important of <!DOCTYPE > ? Pin
Guffa23-Oct-07 20:36
Guffa23-Oct-07 20:36 
QuestionData organization ideas Pin
kenprog23-Oct-07 13:54
kenprog23-Oct-07 13:54 
AnswerRe: Data organization ideas Pin
PIEBALDconsult23-Oct-07 14:07
mvePIEBALDconsult23-Oct-07 14:07 
GeneralRe: Data organization ideas Pin
kenprog23-Oct-07 14:18
kenprog23-Oct-07 14:18 
GeneralRe: Data organization ideas Pin
PIEBALDconsult23-Oct-07 16:45
mvePIEBALDconsult23-Oct-07 16:45 
GeneralRe: Data organization ideas Pin
kenprog24-Oct-07 11:01
kenprog24-Oct-07 11:01 
QuestionPossible to combine unmanaged dlls in a resource ? Pin
User 226147423-Oct-07 12:15
User 226147423-Oct-07 12:15 
Questionthis the code which i ask u about it please when u know the error tell me and i'm wait [modified] Pin
memaia23-Oct-07 12:12
memaia23-Oct-07 12:12 
AnswerRe: this the code... Pin
Guffa23-Oct-07 12:27
Guffa23-Oct-07 12:27 
GeneralRe: this the code... Pin
Luc Pattyn23-Oct-07 14:08
sitebuilderLuc Pattyn23-Oct-07 14:08 
AnswerRe: this the code which i ask u about it please when u know the error tell me and i'm wait [modified] Pin
Spacix One23-Oct-07 12:43
Spacix One23-Oct-07 12:43 

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.