By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,100 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

Linking more than 2 forms together in VB.net

P: 1
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.



Expand|Select|Wrap|Line Numbers
  1. Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
  2.  
  3. Main_Window.Show()
  4.  
  5.     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


Expand|Select|Wrap|Line Numbers
  1.     Private Sub LinkLabel2_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel2.LinkClicked
  2.  
  3.         Help.Show()
  4.  
  5.     End Sub
Apr 8 '15 #1
Share this Question
Share on Google+
2 Replies


IronRazer
P: 82
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.
Apr 12 '15 #2

P: 9
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.
Apr 13 '15 #3

Post your reply

Sign in to post your reply or Sign up for a free account.