You dont need to do anything except set up a setting in
My Project -> Setttings -> add a new setting call EmailServer which is of type string
And on form ensure there is a textbox control called txtmailserver.
Create a simple project with a single form and a setting and see if this works for you - it sounds like something has gotten screwed up on the project to me. This works fine for me.
The error is interesting as it occurs when you are trying to use a instance member as a Shared member, like in the following example. If you can find the exact line that is failing then you may be able to work back and see if something has gotten screwed up.
Module Module1
Sub Main foo.x = 1 '<-- this will generate the error
'This will work dim a as new foo a.x = 1 End Sub End Module
Class Foo Public x As Integer End Class
|