Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

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!




VB error on Grade Book program

2 Pages V  1 2 >  
Reply to this topicStart new topic

VB error on Grade Book program

HopDizzle10
post 16 Feb, 2008 - 08:31 PM
Post #1


New D.I.C Head

*
Joined: 10 Feb, 2008
Posts: 9


My Contributions


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 Sub New()

        m_UserName = ("Empty")
        m_Password = ("Empty")
        m_InstanceCount += 1

    End Sub

    Public Sub New(ByVal p_UserName As String, ByVal p_Password As String)

        Me.UserName = p_UserName
        Me.Password = p_Password
        m_InstanceCount += 1

    End Sub

    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#)

        MyBase.New()
        m_FirstName = p_FirstName
        m_LastName = p_LastName
        m_ID = p_Id
        m_BirthDate = p_BirthDate

    End Sub

    Public Property ID() As Integer
        Get
            Return m_ID
        End Get
        Set(ByVal value As Integer)
            ' Error Catch to ensure data entered is correct.

            If IsNumeric(value) Then
                m_ID = value
            Else
                Throw New Exception()
            End If
        End Set
    End Property

    Public Property FirstName() As String
        Get
            Return m_FirstName
        End Get
        Set(ByVal value As String)
            m_FirstName = value
        End Set
    End Property

    Public Property LastName() As String
        Get
            Return m_LastName
        End Get
        Set(ByVal value As String)
            m_LastName = value
        End Set
    End Property


    Public Property BirthDate() As Date
        Get
            Return m_BirthDate
        End Get
        Set(ByVal value As Date)
            m_BirthDate = value
        End Set
    End Property

End Class

Public Class Course

    Private m_CourseName As String
    Private m_CourseType
    Private m_CourseInstructor
    Private m_StudentList

    Public Sub New()

        m_CourseName = ("Empty")
        m_CourseType = ("Empty")
        m_CourseInstructor = ("Empty")
        m_StudentList = ("Empty")

    End Sub

    Public Sub New(ByVal p_CourseName As String, ByVal p_CourseType As String, _
    ByVal p_CourseInstructor As String, ByVal p_StudentList As String)

        m_CourseName = p_CourseName
        m_CourseType = p_CourseType
        m_CourseInstructor = p_CourseInstructor
        m_StudentList = p_StudentList

    End Sub
End Class



Public Class frmAddCourse

    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
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 16 Feb, 2008 - 08:41 PM
Post #2


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,923



Thanked 118 times

Dream Kudos: 8475

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


What are you doing when you get this error? Or is it doing it during the build process?

Also, this is VB.Net so moving to that forum smile.gif
User is offlineProfile CardPM

Go to the top of the page

HopDizzle10
post 16 Feb, 2008 - 08:47 PM
Post #3


New D.I.C Head

*
Joined: 10 Feb, 2008
Posts: 9


My Contributions


It is when I'm trying to build.
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 16 Feb, 2008 - 08:52 PM
Post #4


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,923



Thanked 118 times

Dream Kudos: 8475

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Why are you using the Microsoft.VisualBasic Namespace? That doesnt need to be there. Also, what changes have you made since the last successful build?
User is offlineProfile CardPM

Go to the top of the page

HopDizzle10
post 16 Feb, 2008 - 08:57 PM
Post #5


New D.I.C Head

*
Joined: 10 Feb, 2008
Posts: 9


My Contributions


What namepsace should I be using and how do I change it? The only thing I've done since the last successful build was debug.
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 16 Feb, 2008 - 09:04 PM
Post #6


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,923



Thanked 118 times

Dream Kudos: 8475

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


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.
User is offlineProfile CardPM

Go to the top of the page

HopDizzle10
post 16 Feb, 2008 - 09:14 PM
Post #7


New D.I.C Head

*
Joined: 10 Feb, 2008
Posts: 9


My Contributions


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.
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 16 Feb, 2008 - 09:20 PM
Post #8


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,923



Thanked 118 times

Dream Kudos: 8475

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Do you by chance have an Uninterruptible Power Supply? Are you working through a remote connection?
User is offlineProfile CardPM

Go to the top of the page

HopDizzle10
post 16 Feb, 2008 - 09:25 PM
Post #9


New D.I.C Head

*
Joined: 10 Feb, 2008
Posts: 9


My Contributions


NO to both. I'm just working on my laptop.
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 16 Feb, 2008 - 09:27 PM
Post #10


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,923



Thanked 118 times

Dream Kudos: 8475

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


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.
User is offlineProfile CardPM

Go to the top of the page

HopDizzle10
post 16 Feb, 2008 - 09:35 PM
Post #11


New D.I.C Head

*
Joined: 10 Feb, 2008
Posts: 9


My Contributions


I just restarted my computer and brought it back up. It seemed to fix the problem. Thanks for all your help and I'm sorry for wasting your time.
User is offlineProfile CardPM

Go to the top of the page

HopDizzle10
post 16 Feb, 2008 - 09:51 PM
Post #12


New D.I.C Head

*
Joined: 10 Feb, 2008
Posts: 9


My Contributions


Well, I lied. That wasn't the problem. I get the error whenever I build the solution the second time.
User is offlineProfile CardPM

Go to the top of the page

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 01:19AM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month