How to Register a file extension and context menu operations?



How to Register a file extension and context menu operations?..

Answer / Mohd Saddam Laeeq

In Delphi, you can register a file extension and its associated context menu operations using the `RegisterFileType` function. Here's an example:nn```delphinprocedure TForm1.FormCreate(Sender: TObject);nbeginn RegisterFileType('MyExtension', 'My Application File', '[IcoFile]', '#037', '', '', True, False, True, False);nend;n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

How to Insert a file at the cursor ?

1 Answers  


How to keep seconds from being included in the display when using TDateTimePicker?

1 Answers  


How to Check available disk space on large drives?

1 Answers  


How to Set a transparent background color for TImageList?

1 Answers  


How to Deploy DBClient in a Web Application?

1 Answers  


How to Add a document to the Windows 95 Start Button's documents ?

1 Answers  


How to Use the Application's OnIdle Event?

1 Answers  


How to Get the Windows version in code?

1 Answers  


How to Covert string of (zeros and ones) to binary?

1 Answers   Infosys,


Why is there no automation in releasing the memory automatically during the termination of the program?

1 Answers  


How to Get a list of the available drives on a system?

1 Answers  


How do we get access to a database from Delphi?

1 Answers  


Categories