|
-
Dec 7th, 2004, 11:14 PM
#1
Thread Starter
New Member
Question about Classes
I am making a program for my CIS class. She gave us an example and I am trying to create it on my own. In VB.net, she has it seperated into like three different forms if you view it in the code window. There is the main form (Form1.vb) then two other forms she made called petstore.vb and petstorediscounted.vb
How do i make it so it creates two seperate forms in addition to the main one? Thanks in advance. This is what I have in my main form so far.....
Dim mypetstore As mainpetstore
Dim mypetstorediscount As mainpetscorediscount
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
mypetstore = New mainpetstore
mypetstorediscounted = New mainpetstorediscounted
mypetstore.Cat = radCat.Checked
mypetstore.Dog = radDog.Checked
mypetstore.Quantity = CDbl(txtQuantity.Text)
mypetstorediscount = radCat.Checked
mypetstorediscount = radDog.Checked
mypetstorediscount = CDbl(txtQuantity.Text)
If chkMember.Checked Then
txtResults.Text = FormatCurrency(mypetstorediscount.ExtendedPrice)
Else
txtResults.Text = FormatCurrency(mypetstore.ExtendedPrice)
End If
End Sub
End Class
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
|