Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Newcomer with disappearing ()
I'm having an odd issue as I try to learn VB.Net out of a book. I'm using Visual Studio .Net 2003, but I have Visual Basic 2005 Express Edition installed as well. It tells me to put this code in:
Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click
Dim frmOutput As New Output()
Me.BackColor = Color.FromKnownColor(CInt(Int(150 * Rnd()) + 1))
after the part that says Windows Form Designer generated code. There is a second form called Output that has a label thingy with some text in it. For some reason, every time I type this in, the parenthesis after As New Output disappears and I get an error compiling. Can someone help me figure this out?
0 · ·