|
-
Oct 21st, 2005, 05:08 AM
#1
Thread Starter
Frenzied Member
[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
Last edited by FishGuy; Oct 28th, 2005 at 04:11 AM.
-
Oct 21st, 2005, 05:30 AM
#2
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.
I don't live here any more.
-
Oct 21st, 2005, 05:48 AM
#3
Thread Starter
Frenzied Member
Re: Something Wierd with default Constructor.
That seems to have worked, what could have caused the problem?
-
Oct 21st, 2005, 05:51 AM
#4
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.
I don't live here any more.
-
Oct 28th, 2005, 04:11 AM
#5
Thread Starter
Frenzied Member
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?
-
Oct 28th, 2005, 04:19 AM
#6
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"?
-
Oct 28th, 2005, 04:19 AM
#7
Thread Starter
Frenzied Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|