|
-
Mar 3rd, 2003, 03:42 PM
#1
Thread Starter
Junior Member
Can anyone help me on this toughy?
probably only a toughy to me...
This project i'm working on is a Game Organizer
Okay, first of all i have a menu that allows people to go to the second form, that works just dandy, i just say
VB Code:
Private Sub mnueditnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnueditnew.Click
Me.Hide()
Dim Form2 As New frmnewgame()
Form2.Show()
End Sub
Okay no problem, then when it comes up with the small screen, it has a list of options that you can chose from, varying from comboboxes to textboxes, when that's done i want it to close that screen and open up the previous screen with the new item added, so i used this code (pretend Items = every option combined)
VB Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Form1 As New frmplay()
Me.Hide()
Form1.ListBox1.Items.Add(Items)
Form1.Show()
End Sub
Now that works, but whenever i try and do it again, it clears the list...
I think it's because i'm declaring the form as a new form, but when i get rid of the new, it won't work...
Question 1:
is there another way of doing this so it organizes the information in it's own little spreadsheet format, so i don't have to add all the items together into one large variable?
Question 2:
if not, is there a way that it won't clear the list every time i go back to the form?
sorry this is rather lengthy...
Last edited by SamuraiMooCow; Mar 3rd, 2003 at 03:54 PM.
-
Mar 3rd, 2003, 04:42 PM
#2
-
Mar 3rd, 2003, 05:37 PM
#3
Thread Starter
Junior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|