Example :


suppose i have a form1 and a form2.

form1 has a button on it which would display a message "Clicked" when clicked

And if form2 inherits form1. How can i change
the properties of that button and make display a message "Now Clicked" ?


please help.....:?:

Create a new method in form2 to handle the click event using the override keyword in the method signature i.e. public override blah blah blah...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.