I have created a sample form as
Dim obj_CommonForm As New Form
Dim btn_Create As New Button
btn_Create.Location = New System.Drawing.Point(30, 200)
btn_Create.Size = New System.Drawing.Size(60, 15)
btn_Create.Text = "MyCommand"
obj_CommonForm.Controls.Add(btn_Create)
obj_CommonForm.Show()
Now I would like to save this form as .vb file and include it in my project.
Similar I have created in PHP where output html and saving as .php file is easy. This I have used as a initialize function as i start doing some project whose database has been created already.
Your question is not clear to me… so I try to guess.
If you want to have a .vb file then you just have to take the .vb created by Visual Studio or by your application and include it in the project at compile time.
Instead if you are talking about a generic form created by your program and load it at runtime, you have to learn something about Serialization.
In latter case, I had your same problem some time ago and following article was a good starting point:
http://community.visual-basic.it/lucianob/archive/2007/10/14/20711.aspx
It is in Italian, but I think you can translate via some tool (except for code examples, obviously) 🙂