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 -

VBA function to include CDATA -

php - Warning: file_get_contents() expects parameter 1 to be a valid path, array given 16 -