What you need to do is convert the form to TEXT. In Delphi 6 onwards, there is an option to make the form Text, i.e. open a form, rightclick on it and there is an option there called "Text DFM". Select this (which will tick it), and when you dave the form it will make it readable in notepad. BUT, that's no good for you if you cant opent he form, SO, you will need to use the tool that comes with D6 which is located in the BIN dir of your D6 install. The file is called "Convert.exe" Basicllly form a command prompt, you do convert -t -I c:\delphiapp\myform.dfm and that's it. But check out the help about it too, or if you go to a command prompt and go to the BIN dir and type convert.exe it gives you the switched.
A thought just occurred to me, if this does not work because the DFM file is corrupt, you can also just do an uncheck-out and go back a version in VSS and check an older version of the form out. I have used the above manytimes when converting form D5 to D6 to edit component names or types etc. with great success. HTH. Jeremy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Tishler Sent: Saturday, 17 April 2004 06:28 To: NZ Borland Developers Group - Delphi List Subject: [DUG] Corrupted form? I have a pretty large project I have been working on in Delphi 6. Up until last week every thing was OK. I have not touched the project since then except to add it as a project to Visual Source Safe. This is one of 6 projects I have added to VSS with no apparent problems. I have checked several of the projects in and out numerous times with no ill effect. This morning I checked out this particular project and started working with it. 99.99% of the project seems intact. But one particular form seems to be corrupted! When I double click on the form I get an error message: Error creating form: Cannot focus a disabled or invisible window. I tried to edit the form with Notepad, but it appears unreadable. (A lot of unprintable characters) Some of my other forms appear this way in Notepad as well, particularly if the form has included Image.Data, but they still open fine in Delphi. I have an older version of this form that still loads in Delphi, but I have made many changes and I do not want to have to go through that process again. Has anybody seen this type of problem, and more importantly, know how to resolve it? Thanks, Eric Eric Tishler Software Architect Resolute Partners, LLC Phone: 203.271.1122 Fax: 203.271.1460 [EMAIL PROTECTED] _______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi _______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
