hi.
i am developing MIS application in c#, i managed my forms in separte folders e.g (Hostel,students,transport ) these are all folder names in which the corresponding forms are present. but when i want to access the forms by code they are not accessible(visible) TO CODE. so how to access them???
regards.
Loading
Satish BhatPosted Aug 19, 2011, 3:05 AM
Usually when you create a folder and add a form inside that folder in Visual Studio, it adds the form in the AppName.FolderName namespace.
e.g. If you add a form Form1 in Hostel folder then it will be in the namespace [YourApplicationName].Hostel
Now when the second form Form2 which is in Students folder then it is in the namespace [YourApplicationName].Students
So if you want to access Form1 from Form2, you have to access either by calling [YourApplicationName].Hostel.Form1 or importing the [YourApplicationName].Hostel namespace (by using directive in C#).
Basically VS intellisense will not show the form directly when they are in different namespaces and you have not imported the namespace.
SADAM HUSSAINPosted Jan 6, 2017, 6:13 AM
Satish Bhat
Thank you very much Satish.sufy azeemPosted Dec 16, 2013, 12:02 PM
Satish BhatPosted Aug 19, 2011, 3:32 AM
mansoor altafPosted Aug 19, 2011, 3:30 AM
mansoor altafPosted Aug 19, 2011, 2:30 AM
Sam HobbsPosted Aug 17, 2011, 7:52 PM