procedure Register;
begin
RegisterCustomModule (TMyNewForm, TCustomModule);
//This is what does the magic - it installs the form as a system module so it can be seen by the ToolsApi - getting to that part
end;

procedure TMyNewFormExpert.Execute;
//This is what actually installs the form into the IDE. It queries the system for the module (you must install Form first!) and adds a menu item to the help menu which allows you to install it

Whew! Now that that is done, lets move on. You must follow the following steps carefully to get this right:

1. Save both of the above units somewhere in your search path after making whatever modifications you want to them.

2. Open the MyNewForm Unit in Delphi and click Component>Install Component. Go ahead and compile. If you have bug in your code you can address it here.

3. Once that is done let the package library rebuild, close the MyNewForm unit and open the FormWizard unit. Repeat step 2 on it.

4. Now close all files and goto the help menu - you should see an entry that says "Create a MyNewForm" (or whatever you changed it to). Click it and your form should pop up in the IDE, new properties and all! But you arent finished yet

5. You must now a "MyNewForm" to the end of the uses clause of the form code that just popped up. Go ahead and save this form now somewhere (it will be a template)

6. Right click on the forms client area and select "Add to repository". Fill in the blanks. If you ALWAYS want to use this form you can check the mainform box.

7. Now to use the form all you have to do is click file>new form and select it from the list. If you want it to be the MainForm the easiest thing to do is just create a new project, add your form to it, and remove the original TForm.

I hope this was all clear enough for you to understand. It is very difficult to explain clearly. Hope this helps

BTW - you didnt clarify and I didnt think about this earlier. Are you running Delphi 3? If not then the above code will not work. I am not sure how to do this in Delphi 2 or even if it can be done at all. I dont think it can.