button - Method must have a return type (C#) -


been getting "method must have return type, , don't understand why.

it "public helpview()" part returns error. (top of code, made block quote)

web browser application, code , forward buttons.

public class helpview     {      }     list<uri> historystack; int historystack_index; bool fromhistory;   //constructor public helpview() {     initializecomponent();     historystack = new list<uri>();     historystack_index = 0;     fromhistory = false;     webbrowser1.navigated += new eventhandler<system.windows.navigation.navigationeventargs>(webbrowser1_navigated);     updatenavbuttons(); } 

helpview not exact name of class. if meant constructor, make sure method name matches class name. if meant method, change

public void helpview() 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -