Загрузка...

The MessageBox.Show function. Error "The name 'MessageBoxIcon' does not exist in the current context."

Thread in C# created by Matthew1982 Sep 12, 2018. 574 views

  1. Matthew1982
    Matthew1982 Topic starter Sep 12, 2018 proxys.io - лучшие анонимные ****** 27 Jun 15, 2018
    Code

    private void btnOk_Click(object sender, RoutedEventArgs e)
    {
    MessageBox.Show($@"Привет, {txtName.Text}", @"Сообщение", MessageBoxButton.OK, MessageBoxIcon.Information);
    }

    Имя "MessageBoxIcon" не существует в текущем контексте, простите, что (функция же так и описывается)? Приложение не консольное, Visual Studio 2017, в чем проблема?
     
  2. Matthew1982
    Matthew1982 Topic starter Sep 12, 2018 proxys.io - лучшие анонимные ****** 27 Jun 15, 2018
    Решено, не MessageBoxIcon, а MessageBoxImage надо было.
     
Top
Loading...