i dont know whats wrong, i think ive done what i should have done
but the it still dont function
heres the code
'projectx' is the first project
'projecty' is the project that i added in projectx
imports projecty
private sub btnclck (bal bla)
dim frm as new projecty.formtobecalled
formtobecalled.show
end sub
in the error list it says "Reference to a non-shared member requires an object reference."
btw ive already added the projecty in the references
problem with codes in calling another form from another project
Started by yerdaddy, Apr 12 2010 06:48 PM
1 reply to this topic
#1
Posted 12 April 2010 - 06:48 PM
|
|
|
#2
Posted 13 April 2010 - 08:09 AM
The problem is in this line:
If you want to create a new form equal to formtobecalled use this instead
dim frm as new projecty.formtobecalledformtobecalled is not a class and therefore it can't be instantiated.
If you want to create a new form equal to formtobecalled use this instead
Dim frm as new windows.forms.form=projecty.formtobecalledHope this helps


Sign In
Create Account

Back to top









