Linking more than 2 forms together in VB.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • durinsbane
    New Member
    • Apr 2015
    • 1

    Linking more than 2 forms together in VB.net

    In my program I have a menu screen which has links to other forms on it. It's only a notepad but I'm trying to add maximum features to it as it's my final project. I have one link that works and that is to the main text editor.



    Code:
    Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
            
    Main_Window.Show()
    
        End Sub

    I have another link that takes you to the help screen that doesn't work at all. I get a green underline under 'help'. I don't know if I should declare it, but usually it recognizes a form and change colour but not this time


    Code:
        Private Sub LinkLabel2_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel2.LinkClicked
    
            Help.Show()
    
        End Sub
    Last edited by Rabbit; Apr 8 '15, 03:40 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • IronRazer
    New Member
    • Jan 2013
    • 83

    #2
    The word "Help" is the name of a Class in VB.Net so, you will want to rename your form. Try renaming the form to "HelpForm" or something other than just "Help". That should fix it.

    Comment

    • robherr
      New Member
      • Sep 2014
      • 9

      #3
      I guess IronRazer's answer is the best way to address this situation. I also thought of renaming your form and declare it on your code to connect two forms.

      Comment

      Working...