Odd build error

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
wjstarck
Posts: 949
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Odd build error

Post by wjstarck »

This just started popping up when I try to build OD:

Error 1 'OpenDental.FormAnestheticMedsInventory.Dispose(bool)': no suitable method found to override C:\Users\wjs\Desktop\OD 6.2x\OpenDental\Forms\FormAnestheticMedsInventory.designer.cs 12 27 OpenDental

I've scoured the form in question with a fine-toothed comb and everything looks in order. Have I missed something obvious somewhere?
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
User avatar
jordansparks
Site Admin
Posts: 5776
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Odd build error

Post by jordansparks »

Doesn't look familiar.
Jordan Sparks, DMD
http://www.opendental.com
User avatar
wjstarck
Posts: 949
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Re: Odd build error

Post by wjstarck »

Thanks. It's probably easier for me to remake the form. I'm guessing something may have gotten corrupted when I made it originally...
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
User avatar
jordansparks
Site Admin
Posts: 5776
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Odd build error

Post by jordansparks »

So the error seems to indicate that you are missing the Dispose method in your designer. Did you look to see if it's there?
Jordan Sparks, DMD
http://www.opendental.com
User avatar
wjstarck
Posts: 949
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Re: Odd build error

Post by wjstarck »

Yes,it was, which is what was so odd...

Another strange thing is that if I do this

Code: Select all

 namespace OpenDental {
	
public partial class FormAnestheticMedsInventory:Form {

            private List<AnesthMed> listAnestheticMeds;           
            public FormAnestheticMedsInventory() {
            InitializeComponent();
            Lan.F(this);
		}


            private void FormAnestheticMedsInventory_Load(object sender, System.EventArgs e) {

            FillGrid();
            }
The ODGrid won't fill. But If I move the FillGrid() to the method above, it does....?

Code: Select all

namespace OpenDental {
	public partial class FormAnestheticMedsInventory:Form {

            private List<AnesthMed> listAnestheticMeds;
            public FormAnestheticMedsInventory() {
            InitializeComponent();
            Lan.F(this);
            FillGrid();

             }

            private void FormAnestheticMedsInventory_Load(object sender, System.EventArgs e) {

            }
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
User avatar
jordansparks
Site Admin
Posts: 5776
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Odd build error

Post by jordansparks »

That seems reasonable. I never put it in the constructor.
Jordan Sparks, DMD
http://www.opendental.com
User avatar
wjstarck
Posts: 949
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Re: Odd build error

Post by wjstarck »

OK, Thanks...
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
User avatar
wjstarck
Posts: 949
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Re: Odd build error

Post by wjstarck »

I figured out why the FillGrid() wasn't loading properly.

When I made the form I copied the BasicTemplate *before* double clicking on the form in the designer to create the load event.

So, this statement

this.Load += new System.EventHandler(this.BasicTemplate_Load);

Was missing from the designer generated code in my form. Once I put that statement back in my form, FillGrid() works now from within the Load method.
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Post Reply