Compile at RunTime

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.
 
A

Armin Zingler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top