[RESOLVED] Something Wierd with default Constructor.
I keep getting an error on the line below saying type frmAddnote has no default constructor.
However it's just a normal for it does have a constructor and I aint deleted nowt. If I close VS then open it again the error goes and the app compiles and runs fine, it's only when I open the form in design view that the error appears again?
VB Code:
If (objAddNote Is Nothing OrElse objAddNote.IsDisposed) And (objAgent.IfrmNewCall Is Nothing OrElse objAgent.IfrmNewCall.IsDisposed) Then
objAddNote = [U]New frmAddNote[/U] objAddNote.Show()
Me.btnDial.Enabled = False
Me.btnNote.Enabled = False
Re: Something Wierd with default Constructor.
Maybe if you exclude the form from the project, try to compile it, and then add the file back to the project hat might refresh some project settings or something. That's wroked for me in the past with things like resource files.
Re: Something Wierd with default Constructor.
That seems to have worked, what could have caused the problem?
Re: [RESOLVED] Something Wierd with default Constructor.
Hard to say really, I think that there are SOOO many settings in VS one or two have become corupt somewhere along the line. Doing the above idea must reset some defaults.
Just a hunch really.
Re: [RESOLVED] Something Wierd with default Constructor.
ARRGHHH,
It's done it again!
Is it something thats happening because it is a form inherited form?
Re: Something Wierd with default Constructor.
Could be. Did you create it in the first place by selecting "Add Inherited Form" rather than "Add Windows Form"?
Re: Something Wierd with default Constructor.
Yes why what is the difference?
ps I inherited it from another form on purpose as they are almost identical.