Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,158,937 members, 7,838,344 topics. Date: Thursday, 23 May 2024 at 07:56 PM

VB.NET Issues,please Help - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / VB.NET Issues,please Help (1045 Views)

I Need A Help To Write A Simple Login Form Using Vb.net / Vb.net Crystal Report & Dataset / Post Ur Vb 6.0 Questions Here (2) (3) (4)

(1) (Reply) (Go Down)

VB.NET Issues,please Help by Lakulos(m): 3:23pm On Nov 07, 2012
Please help me wit this,i added 2 forms to my project,inorder for the second form to show i hid the first form using me.hide.But i discovered that when i closed the the second form,the program is still running on the background and form1 is nowhere to b found.I programming using VB.NET
Re: VB.NET Issues,please Help by Kobojunkie: 10:26pm On Nov 07, 2012
Please post code showing where you actually open the second form and hide the second form.
Re: VB.NET Issues,please Help by Lakulos(m): 9:36am On Nov 08, 2012
Kobojunkie: Please post code showing where you actually open the second form and hide the second form.

This is the code:

Public class form1
dim first as form2
private sub button1 click............
Me.hide
First.show()
end sub
end class

The problem is that,when i close the form2,i expect the whole program to close but only form2 closes while form1 keeps running in the background and it is nowhere to be found.
Re: VB.NET Issues,please Help by JstBrave(f): 11:53am On Nov 10, 2012
Lakulos:

This is the code:

Public class form1
dim first as form2
private sub button1 click............
Me.hide
First.show()
end sub
end class

The problem is that,when i close the form2,i expect the whole program to close but only form2 closes while form1 keeps running in the background and it is nowhere to be found.


i tink u shd jst put a command button on ur Form2 interface.
1) If u want d program 2end then try ds:

Private Sub Button1_Click()
End
End Sub


2) If u want to go back 2ur form1 (i.e form1 should b displayed again)

Private Sub Button1_Click()
Form1.Show
Me.Hide
End Sub

(1) (Reply)

Christmas Promo -get Ur Websites For As Less As #2000 / We Design And Program Website / Easter Promo - 10% Discount On All Courses

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.