fkheng Posted May 22, 2003 Posted May 22, 2003 frmMain.Show() i wrote this syntax above and the whole thing got underlined in blue and a warning stating that Reference to a non-shared member requires an object reference. I read from the SDK that .show() is inherited from a control? What does this mean? and how do i solve this problem? Quote Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
Administrators PlausiblyDamp Posted May 22, 2003 Administrators Posted May 22, 2003 You need to create an instance of the Form before you can display it. i.e. dim f as new frmMain() f.Show() Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
jspencer Posted May 22, 2003 Posted May 22, 2003 This one's always a favourite as well: Public Sub main() Application.Run(New Form1) End Sub (Although this is only for launching your main form during application startup). Quote
fkheng Posted May 22, 2003 Author Posted May 22, 2003 i see, thanx a lot... onli for startup? okok, will try... Quote Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.