Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi
i have a form which is used as a proces log in which the user can know what process is actually running for this i have created a form called processlog and initialized the form in another form called frmmain and got the values but i have to initialize the form process log to another form called frmpublish how to initialize the same form in more than one form such that the values will be maintained correctly
Posted
Comments
Prerak Patel 19-Sep-11 1:57am    
In both cases, the details in processlog will be same or different?

1 solution

There is no such problem. The problem is that you seemingly do not understand what is "form": a type or a instance (object). Any type can have any number of instance unless it is specially designed to behave like a singleton. This includes the form. You don't need to do anything special to achieve this; just create more than one instance of the same type. All instance (non-static) members of different instance will be independent. Different instances are different independent objects. Perhaps before doing any UI development you need to learn some basics of programming and OOP.

—SA
 
Share this answer
 
v2
Comments
m@dhu 19-Sep-11 2:12am    
My 5!
Sergey Alexandrovich Kryukov 19-Sep-11 2:19am    
Thank you.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900