Help with my version of Drug Wars (show/hide forms)

skaryChinezeGuie

Well-known member
Joined
Apr 23, 2006
Messages
94
Programming Experience
Beginner
I am new to programming and have started a personal project. I am remaking the MS-DOS classic "Drug Wars" using VS.NET. It's Lookin pretty cool so far but I have a hundred questions at least. If anyone is interested, I'm looking for a couple of people to team up with to get this done and learn from. I was thinking 2 months from now would be a decent deadline for myself, but it's turning out to be more complicated than originally anticipated. Anyone interested in teaming up (newbies welcome) please send a request to SkaryChinezeGuie@aol.com and I will e-mail the solution files to you. other than that my immediate question is this: I need to pull up the "buy" menu, and disable all other controls until the buy is made or canceled.

PrivateSub BtnBuy9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBuy9.Click
Dim nBuy As Form = New Buy
nBuy.Show()
Me.Hide()
EndSub

This is the code I used on the Main(calling) form to bring up the "buy" form and hide the main form with all the controls on it. But I don't know how to bring the main form back up after the transaction is completed. I assume it would go in the same button click subs on the "buy" form that close the "Buy" form (ME.close) Any help would be much appreciated.

Thanks,
Skary Chineze Guie:D
 
VB.NET:
Private Sub BtnBuy9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles BtnBuy9.Click
  Dim nBuy As Form = New Buy
  Me.Hide()
  nBuy.ShowDialog()
  Me.Show()
End Sub
 
Back
Top