- This topic has 20 replies, 4 voices, and was last updated 17 years ago by Admin.
-
AuthorPosts
-
February 4, 2007 at 11:26 am #191269nooobMember
hi all
i have made a simple word processing program.
1) i want to show the icon that appears on the main gui with the file name that is written with my word processing program2)how can i open a file that is written in my program when someone double-clicks it?
plz help me if you have an idea of how to do those two
ty alotnooob
February 4, 2007 at 4:57 pm #191289AdminAdministratorWell, either way, water still can’t make holes in rocks.
February 4, 2007 at 5:29 pm #191288nooobMembernot the same discussion again 😆
February 4, 2007 at 5:51 pm #191287ThE DJ GaNgStERMember@Ghost wrote:
Well, either way, water still can’t make holes in rocks.
February 4, 2007 at 6:39 pm #191286February 4, 2007 at 10:47 pm #191285ThE DJ GaNgStERMemberlol nooob
February 4, 2007 at 10:50 pm #191284BattleStar-GalacticaMemberI dont get what you want to do, I have to take a English class this autumn 😆
if you want extract icon from a file then there are many source with google and with your registry you can specify what type of file can be open with what programm
example .battlestart when you click on file.battestar is alway open with my app 😆
February 6, 2007 at 10:36 am #191283nooobMemberwell the story goes like this:
i have made a simple word processer program that saves files with a specific file extension, so i wanted to be able to show an icon (icon of the main gui) next to the file (like e.g. word etc). i also wanted to open any of of these files when someone double clicks it 😀seems like i m not far from getting them (but i m still not able to open a file when its double clicked tho*)….here is a link if someone else wants to learn it:
[url][/url]
its always good to take english classes 😀
thx anywaynooob – getting better – water pressure is increasing
February 6, 2007 at 2:00 pm #191282BattleStar-GalacticaMemberDid you read about File type association? with c# is very easy to deal with registry 😉
February 6, 2007 at 3:31 pm #191281nooobMembernop dude …i have not
i have been trying to find something….but not quitecan u give me whatever site u may have about file type association with c#?
thx BattleStar
nooob
February 6, 2007 at 3:35 pm #191280BattleStar-GalacticaMemberpoor you 😆 Ok wait… 2 minutes, I will write it for you, come back in 2 minutes and see 😉
ok it’s done, just download it and run it one time and go to debug folder click on file test.battlestar to see the result
February 7, 2007 at 11:35 am #191279nooobMemberHello world
I’m learning file type association:)i am also learning file type association 😛
thx alooooooooooooooot BattleStar
ty again
got itnoob
February 7, 2007 at 12:32 pm #191278BattleStar-GalacticaMemberif you want file.battlestar has explorer icon change this line
szKeyValue = szPath + “,0”;
to
szKeyValue = “C:Program FilesInternet Exploreriexplore.exe,0”;
all file.battlestar will have internet explorer icon, I dont know why it didn’t associate with my app test icon
for your information if I know many sites?, I just use three webs site for my programming reference the one you posted and codeproject.com and codeguru.com
February 7, 2007 at 1:32 pm #191277nooobMemberthx alot battlestar
if you go to the site that i have posted, in that example the guy does file type association by creating a c# setup project and then he sets up file extention, program and so on. then in the Form_Load event he checking if a file was double clicked…i tired that but didnt work.
he also has a method (as you have for file type association) but he is not using it i think…!!!
which method is better, yours or the one in that example?
is it possible for you to show me file type association by creating a setup project…like in the example?i have attached the example…it didnt complie though
noob
February 7, 2007 at 2:08 pm #191276BattleStar-GalacticaMembernormally I prefer to do the thing programmatically and dont like to use GUI setting, you can ask the author of that article if you cannot figure it out how to do that.
I dont read his article, just look quickly the pic 😆 I prefer to use my method. simple and quick, just a few line to deal with the registry
-
AuthorPosts
- You must be logged in to reply to this topic.