ok, so i have this application, and i need this long list of buttons that load a single form for each click.
but for some reason, it gives me an "ObjectDisposedException was unhandled" error when i try to open it, close it, then open it again. here's my code:
Public Class frmMain
Public complete As New frmCompleteOrder
Private Sub btnTC_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTC6.Click, btnTC5.Click, _
btnTC4.Click, btnTC3.Click, btnTC2.Click, btnTC1.Click
complete.Show()
End Sub
End Class
and also, the cancel button on frmCompleteOrder doesn't work the way it should. this is what the Cancel button has :
Private Sub btnOrderCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOrderCancel.Click
Me.Close()
End Sub
i'm sorry if i ask too many questions, i'm a real novice, but i plan on getting some books on it pretty soon.
thanks,
stephen