ALright, I need to know step by step how to link a button or anything to another forum. like when they click the " options " on the drop down menu it would open up frmoptions....so how do i do that step by step in .net?
Printable View
ALright, I need to know step by step how to link a button or anything to another forum. like when they click the " options " on the drop down menu it would open up frmoptions....so how do i do that step by step in .net?
Put this in the click event of the menu or button you need it in (or whereever)
VB Code:
dim frm as New frmOptions frm.ShowDialog()
how do i define it? cuz its givin me a compile error.
Make sure that the form is really called frmOptions?
On the form at the top where it says:
Public Class Form1
it should say:
Public Class frmOptions
If you change it then you will get an error in the autogenerated code too because there is one spot in there that you will need to change Form1 to frmOptions also. Or you could search and change it.
this is what it says..look at the pic..
http://www.visiondev.net/pic1.jpg
You see at the top of the picture in the code window it says 'Public Class Form1' well go to the Options form and make sure it says 'Public Class frmOptions' in that one.Quote:
Originally posted by Edneeis
Make sure that the form is really called frmOptions?
On the form at the top where it says:
Public Class Form2
it should say:
Public Class frmOptions
If you change it then you will get an error in the autogenerated code too because there is one spot in there that you will need to change Form1 to frmOptions also. Or you could search and change it.
k they should be all named correctly now, but i get a compile error when i put it what u typed b4.
Did you search in the auto generated code for another reference that has to be changed to frmOptions?
this is the only frmoption that there was....
http://www.visiondev.net/pic2.jpg
I think you have to check 'Search Hidden Text' for it to search the collapsed regions. But there is onw spot in the in the 'Windows Form Designer generated code'.
Also make if you rename your startup form that you reset the startup object in the Project properties.
here i found 2 more that were named frmoptions.
http://www.visiondev.net/pic3.jpg
Actually you should be searching for whatever it was called before you changed it to frmOptions. You need to change it TO frmOptions so it isn't currently named frmOptions.
With this error i think that you have your startup object set to submain, instead of frmmain.Quote:
To change/check this, right click on your project (in solution explorer) and choose properties.
There is a combo box with you startup object selected. Make sure this is set to frmmain
Hope that helps