Compile at RunTime

  • Thread starter Thread starter Saroj
  • Start date Start date
S

Saroj

Hi Guys,
I have a Form or Class called Form2.
I am trying to compile(Form2.vb) at runtime.
Because it has a partial class (Form2.Designer.vb) I am not able to
successfully compile it.

I can successfully compile it at runtime only if I cut all the code from
Form2.Designer.vb and put it in Form2.vb, which I don't want to do.
How can I compile Form2.vb and Form2.Designer.vb together.

I'll appreciate any help you can provide.

Thanks, Saroj.
 
Saroj said:
Hi Guys,
I have a Form or Class called Form2.
I am trying to compile(Form2.vb) at runtime.
Because it has a partial class (Form2.Designer.vb) I am not able to
successfully compile it.

I can successfully compile it at runtime only if I cut all the code
from Form2.Designer.vb and put it in Form2.vb, which I don't want to
do.
How can I compile Form2.vb and Form2.Designer.vb together.

I'll appreciate any help you can provide.

Have you already had a look at the command line description for vbc.exe?

http://msdn2.microsoft.com/en-us/library/s4kbxexc.aspx
(including sub topics)


Armin
 
Back
Top