Modifying a ready application

R

Ronny

I have a simple winform application that has some controls and some
functionality around it.
I would like to add a new form that would be may main form, and convert the
original form with its functionality into a secondary form.
Is it simple?
How can I do it?
Regards
Ronny
 
M

Marc Gravell

Look at (typically) Program.cs; or just look for the "Main" method.
There is nothing special about your current main form, except that this
is what your "Main" method happens to display. Change this to show your
new form and you should be done. You don't need to do anything to make
your current form a secondary form, except show it at some point.

Marc
 
I

Ignacio Machin ( .NET/ C# MVP )

I have a simple winform application that has some controls and some
functionality around it.
I would like to add a new form that would be may main form, and convert the
original form with its functionality into a secondary form.
Is it simple?
How can I do it?
Regards
Ronny

Hi,

your post is not very clear, do you have the source code?
if so it's simply, just look for an Application.Run line and change
the form to your new form

if you do not have the code though, then thigns are more interesting
 

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