Join 132,290 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,077 people online right now. Registration is fast and FREE... Join Now!
I'm very new to visual basic and its nuances. I'm working on this grade book program for one of my classes and it was building with no errors until this point. Now I've encountered an error that I don't understand any help would be greatly appreciated.
CODE
Public Class frmGradeApp
Private Sub frmGradeApp_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles btnExit.Click
Me.Close() End Sub
Private Sub mnuFileExit_Click(ByVal sender As System.Object, ByVal e _ As System.EventArgs) Handles mnuFileExit.Click
Me.Close() End Sub
Private Sub mnuCourseAddCourse_Click(ByVal sender As System.Object, ByVal e _ As System.EventArgs) Handles mnuCourseAddCourse.Click
Me.Visible = False frmAddCourse.Show()
End Sub
End Class
Public Class User
Private m_UserName As String Private m_Password As String Private Shared m_InstanceCount As Integer = 0
Public Shared ReadOnly Property InstanceCount() As Integer Get
Return m_InstanceCount
End Get End Property
Public Property UserName() As String Get Return m_UserName End Get Set(ByVal value As String) m_UserName = value End Set End Property
Public Property Password() As String Get Return m_Password End Get Set(ByVal value As String) m_Password = value End Set End Property
Public Overrides Function ToString() As String
Return m_UserName & ", " & m_Password End Function
End Class
Public Class Student Inherits User
Private m_FirstName As String Private m_LastName As String Private m_BirthDate As Date Private m_ID As Integer
Public Sub New(ByVal p_UserName As String, ByVal p_Password As String, _ ByVal p_FirstName As String, ByVal p_LastName As String, ByVal p_Id _ As Integer, Optional ByVal p_BirthDate As Date = #1/1/1900#)
Private Sub frmAddCourse_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub btnCreate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCreate.Click
End Sub End Class
This is the error I'm recieving:
'HoppeGradeApp1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualBasic\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll', No symbols loaded. The thread '<No Name>' (0x2c4) has exited with code 0 (0x0). 'HoppeGradeApp1.vshost.exe' (Managed): Loaded 'C:\Documents and Settings\Dustin Hoppe\My Documents\Visual Studio 2005\Projects\HoppeGradeApp1\HoppeGradeApp1\bin\Debug\HoppeGradeApp1.exe', No symbols loaded. 'HoppeGradeApp1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Remoting\2.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll', No symbols loaded. The thread '<No Name>' (0x47c) has exited with code 0 (0x0). The thread 0xe58 has exited with code 0 (0x0). The program '[3124] HoppeGradeApp1.vshost.exe: Managed' has exited with code 0 (0x0).
This post has been edited by HopDizzle10: 16 Feb, 2008 - 08:36 PM
For VB.Net you don't need the line Imports Microsoft.VisualBasic. You only need the Namespaces for the items you're using, such as System.Windows.Forms (if its a Windows application) and such. Try saving the project, close Visual Studio then relaunch it and see if that solves it. Ive never seen that error before, and if you've written no new code since the last successful build then I'm a little stumped.
Ok, I tried saving and then reopening and that didnt work. I rebuilt again and this time I got a different error message. I used the error look up and the description says "Power has been restored at %1. The server is no longer paused. " I still don't know how to solve this problem.
Well the 2nd error you posted is related to the battery in your laptop, not to your code. It's starting to sound to me that maybe your laptop is the issue here, not your code.