hello everyone , i want to make a object or class that has all the button properties and also has a integer x and y . what shall i do , if your responding please write the code

You need to extends the Button class.

public class NewButton : Button
{
  public int X {get;set;}
  public int Y {get;set;}
}
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.