Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

How to Open a file(like picture) with Our pro when we double click on It?

open a file with double click auto file detection opening a file without opendi

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1 MichaelKhany


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 27 August 2014 - 11:02 PM

How to Open a file(like picture) with Our pro when we double click on It?


I want to open external files automatically with my program like other programs, without opening it in program with open dialog.

Simply with double click on them... .

How can I?


(Delphi Programming)

Edited by MichaelKhany, 27 August 2014 - 11:04 PM.

#2 WingedPanther73


    A spammer's worst nightmare

  • Moderator
  • 17757 posts

Posted 28 August 2014 - 04:25 AM

When you double click on a file in Windows, and there is an associated program for that file type (set in the registry), it generally calls the program with the file to open as an argument, like "myprogram.exe dafile.txt". Your program then needs to be able to read the arguments list and do the file open process itself.

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/

#3 Luthfi


    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts

Posted 25 September 2014 - 03:23 AM

You have to register your program to be associated as default program to open a specific file extension. Here is a thread that discuss this: http://forum.codecal...ram#entry626046

#4 BlackRabbit


    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts

Posted 25 September 2014 - 04:47 PM

And for the very same price, this article, which clearly explain the steps for file-type / exe association by using the windows user interface.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download