One day while newbie was playing around with the properties...

  • Thread starter Thread starter caincognito
  • Start date Start date
C

caincognito

After I finished playing around I found the following snippet of code
in my program and the automatically generated code section calls it so
I can't get rid of it with the editor.
private void crystalReportViewer1_Load(object sender,
System.EventArgs e) { }

I scoured the properties of the CrystalReportViewer looking for what I
might have set to create it, to no avail.

Can somebody tell me which buttons I should unpress and settings
I should unset to get rid of this nuissance?
 
Did you drop a CrystalReportsViewer control on your form then removed it?
You can delete that line of code...then build and see if any errors refer to
that control, and delete those too.

Ron
 
RYoung said:
Did you drop a CrystalReportsViewer control on your form then removed it?
You can delete that line of code...then build and see if any errors refer to
that control, and delete those too.

Gee I don't know. It says not to do that. Here is what breaks the
compile...
It clearly says DO NOT MODIFY WITH CODE EDITOR.

+/- Windows Form Designer Generated Code

/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.

this.CrystalReportViewer.Load += new
System.EventHandle(this.crystalReportViewer1_Load);
 
Back
Top