Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB
<Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
        Protected Overrides Sub OnCreateMainForm()
            Me.MainForm = Global.BLL.UserBL
        End Sub
    End Class
End Namespace




this my program

it shows like

'UserBL' is a type in 'BLL' and cannot be used as an expression
Posted

1 solution

The error message basically tells you that you are trying to use a type where you need to use some element of expression: variable, type member, constant, expression composed of such things. In other words, it makes no sense at all.

Write something else instead. What? I have no idea of your purpose. The text you have written in this wanna-be-code is so weird that all guesses are useless. The whole idea to assign anything to Me.MainForm looks weird. If you still want to ask what to do, I would answer: "first understand what do you want to do". It looks like don't have a clue yet. I, by any chance, I'm wrong here, please explain; then I'll gladly help you some more.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900