how to call a button's click event programatically wpf
  • how to call button click event in wpf on form load or how to use performclick in wpf button.
  • 1 Comment sorted by
  • hi developer use below code
    private void button1_Click(object sender, RoutedEventArgs e)
    MessageBox.Show("Button Clicked", "welcome to", MessageBoxButton.OK);

    private void Window_Loaded(object sender, RoutedEventArgs e)
    button1.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook


Popular Posts of the Week

    Optimum Creative