Unit1.pas, Unit1.dfm,l Unit1.dcu still exist.
Does Form1 show in the Object Inspector. Check the Left & Top
properties. If they are off screen (ie < 0 or > 800), change them to
50 for each.
Alan Lloyd
If I exit Delphi and in windows explorer I double click on unit1.dfm, it
loads delphi and has a tab that has unit1.dfm in it and in that it says:
object Form1: TForm1
Left = 72
Top = 72
Width = 921
Height = 650
etc.
Select the unit1.pas file in the editor so that it's in
view (source code) and then press the F12 key.
If the unit1.pas is not loading when you start the project then
open it via the file menu and do a save all.
Do you have Autosave Desktop set in your Tools | Environment Options
(or whatever gets the options in Delphi 7 - I'm using D3).
If so clear the option, rename the .dsk & try again.
You might also rename the .res file to force Delphi to re-create it.
Also check that the .dpr file is OK i Wordpad (ie specifying
"unit1.pas" & "{Form1}").
Of course your files in D7 may be totally different.
Alan Lloyd
> Do you have Autosave Desktop set in your Tools | Environment Options
> (or whatever gets the options in Delphi 7 - I'm using D3).
>
> If so clear the option, rename the .dsk & try again.
>
> You might also rename the .res file to force Delphi to re-create it.
> Also check that the .dpr file is OK i Wordpad (ie specifying
> "unit1.pas" & "{Form1}").
>
> Of course your files in D7 may be totally different.
>
> Alan Lloyd
Thanks that fixed it!
I was about to post saying it didn't work, but I was just re-checking
everything you said, and suddenly noticed that Form1 is now showing
again :). Thanks a lot!
I didn't have the autosave options checked and I didn't have a .dsk file.
I did rename the .res file like you said and it did re-create the file
and I think the first time I tried opening the project afterwards it
might not have shown form1 but somehow after re-loading the project
(maybe a couple of times) - it's somehow now showing form1 properly. I
think it might have been the recreating the .res file that could have
fixed it.
Whatever the problem was thanks a lot for everyone's help and I'll now
back up the whole project properly just to be safe.