I am in need

I have two forms in Windows Application Project created using VB.NET. On the first form there are two buttons "Find" & "Registration Form". When i click on the "Registration Form" button it hides itself and opens the 2nd form, on the second form I also have two buttons on that one is "Register" & other is "Close". Now i want that when i click on the "Close" button of the 2nd form, the 2nd form should get closed and the first form would be shown. I have used this code but it's not working; Code:- "Me. Close()" and on the next line "Form1.Show()", Form 2 is getting closed but it's unable to show the First Form and the application is getting terminated. I have tried writing this one also but it also is having the same problem; Code:- "Form1.Show()" and on the next line "Me. Close()".
Can anyone help me out please.
[836 byte] By [rajibdey2005] at [2007-11-20 0:41:35]
# 1 Re: I am in need
sample
aniskhan at 2007-11-10 3:12:50 >
# 2 Re: I am in need
Thank You Aniskhan. One more question is the Module code required, I am asking this because I have many other forms on that project which are also linked to each other
rajibdey2005 at 2007-11-10 3:13:51 >
# 3 Re: I am in need
Useage of Modules in Visual Basic.NET :

http://visualbasic.about.com/od/learnvsnet/l/blecvbnet10201.htm

http://www.homeandlearn.co.uk/NET/nets9p7.html

Please also Edit your first post's Title to something more descriptive. 'I am in need' is not descriptive. By doing that, you increase your chances of getting responses :thumb:
HanneSThEGreaT at 2007-11-10 3:14:53 >
# 4 Re: I am in need
rajibdey2005Can you give me the solution of one more thing i.e., on the same project i want to make one changes is that when the first form is loaded, first button should be disabled and the second button should be enabled, then when i click onto the second button it takes me to the second form and the first form is hidden. Now on the second form when i click on the "Show Form1" button, second form should get closed and first form should be shown at that time only, first button should gets enabled and second button should be disabled.
aniskhan at 2007-11-10 3:15:48 >