Skip to content

showing icon with file name

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #191269
    nooob
    Member

    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 program

    2)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 alot

    nooob

    #191289
    Admin
    Administrator

    Well, either way, water still can’t make holes in rocks.

    #191288
    nooob
    Member

    not the same discussion again 😆

    #191287

    @Ghost wrote:

    Well, either way, water still can’t make holes in rocks.

    #191286
    nooob
    Member

    @nooob wrote:

    not the same discussion again 😆

    #191285

    lol nooob

    #191284

    I 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 😆

    #191283
    nooob
    Member

    well 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 anyway

    nooob – getting better – water pressure is increasing

    #191282

    Did you read about File type association? with c# is very easy to deal with registry 😉

    #191281
    nooob
    Member

    nop dude …i have not
    i have been trying to find something….but not quite

    can u give me whatever site u may have about file type association with c#?

    thx BattleStar

    nooob

    #191280

    poor 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

    #191279
    nooob
    Member

    Hello world
    I’m learning file type association:)

    i am also learning file type association 😛

    thx alooooooooooooooot BattleStar
    ty again
    got it

    noob

    #191278

    if 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

    #191277
    nooob
    Member

    thx 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

    #191276

    normally 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

Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.