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 |
How to Insert a file at the cursor ?
How to keep seconds from being included in the display when using TDateTimePicker?
How to Check available disk space on large drives?
How to Set a transparent background color for TImageList?
How to Deploy DBClient in a Web Application?
How to Add a document to the Windows 95 Start Button's documents ?
How to Use the Application's OnIdle Event?
How to Get the Windows version in code?
How to Covert string of (zeros and ones) to binary?
Why is there no automation in releasing the memory automatically during the termination of the program?
How to Get a list of the available drives on a system?
How do we get access to a database from Delphi?