Results 1 to 6 of 6

Thread: .NET Framework 1.1 Errors Moving from one form to another

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    19

    Question .NET Framework 1.1 Errors Moving from one form to another

    I have tried many times and many different ways to move from one form to another on my project but I keep getting the same error message which states:

    Resources 'Form2.resx' and 'frmCat1100.resx' have the same manifest resource name 'JeopardyGame.Form2.resources'.

    I am using VB Basic.NET and working on a game called Jeopardy. I want to have the user click a dollar amount on the Main form which takes them to another form called C1100 which has the question label and answer textbox. The when the Submit button is clicked, it should take them back to the Main form.

    The code I am using is as follows:

    In the module
    =========

    Module Jeopardy__Module1
    Dim Main1 As New Form1
    Dim C1100 As New Form2

    Public Sub Main()
    Application.Start(Main) 'program does not recognize "Start"
    End Sub

    Public Sub ShowForm2()
    C1100.Show()
    Main1.Hide()

    End Sub

    Public Sub ShowForm1()
    Main1.Show()
    C1100.Hide()

    End Sub

    End Module

    On on the Main form
    =============

    Private Sub btnC1100Button_Click(ByVal sender As Object, ByVal e As System.EventArgs)

    Handles btnC1100Button.Click
    Me.btnC1100Button.Enabled = False
    ShowForm2()
    Me.Hide()

    End Sub

    On the second form (C1100)
    ==================
    Private Sub uiSubmitButn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles

    uiSubmitButn.Click
    Me.Hide()
    ShowForm1()
    End Sub

    Can anyone tell me what I am doing wrong and why I am getting the error message?

    Thanks!

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    105,467

    Re: .NET Framework 1.1 Errors Moving from one form to another

    It sounds like, either spontaneously because of a bug or by some error on your part, something has gone wrong with your project resources. I'd suggest that you create a new project then import all the classes from the old one using the "Add Existing Item" option. That should hopefully fix any issues by regenerating the resource files. I don't know this for a fact but it's the first thing I'd try. The alternative is probably to get your hands dirty in some of the auto-generated files, which would probably be more time-consuming and more prone to error if you don't know what you're doing.

  3. #3
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: .NET Framework 1.1 Errors Moving from one form to another

    I don't mean to be a party pooper but unless you either own the rights to the Jeopardy name or you have written permission to use it, you'll never be able to release it, for free even, legally.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    19

    Re: .NET Framework 1.1 Errors Moving from one form to another

    Thanks for your replies, guys!
    I finally got it resolved.
    BTY, this is only a class project and will not be released in any form.

  5. #5
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    105,467

    Re: .NET Framework 1.1 Errors Moving from one form to another

    Quote Originally Posted by sheba2
    Thanks for your replies, guys!
    I finally got it resolved.
    BTY, this is only a class project and will not be released in any form.
    Any clues as to how you solved it? The answer may be useful to others so it's always good to share.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    19

    Re: .NET Framework 1.1 Errors Moving from one form to another

    I did as you suggested to create a new project then import all the classes from the old one using the "Add Existing Item" option.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width