c# - Method must have a return type on an InitializeComponent() method -


i have partial public class

namespace bugnetwpf {     public partial class reportscreen_idrangereport : page     {         public generatereport(mainwindow mainwindow)         {              initializecomponent();          }     } } 

the error saying method must have return type, ideas how fix this?

what else saying return type true, i'm guessing want:

namespace bugnetwpf {     public partial class reportscreen_idrangereport : page     {         public reportscreen_idrangereport(mainwindow mainwindow)         {             initializecomponent();         }     } } 

the constructor needs have same name class.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -