none
Guys, see this simple program . I am a begineer i have this error RRS feed

  • Question

  •   private void button_Click(object sender, RoutedEventArgs e)
            {
                string name = "amneet";
                int a = 3;
                a = a * 17;
                double d = Math.PI / 2;

                myLabel.Text = "name  is " + name
                + "\na is " + a
                + "\na is " + d;

            }

    Severity Code Description Project File Line Suppression State
    Error CS1061 'object' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) WpfApp1 C:\Users\Harry Singh\source\repos\WpfApp1\WpfApp1\MainWindow.xaml.cs 37 Active


                
    • Edited by AmneetSingh Monday, January 22, 2018 5:59 PM
    Monday, January 22, 2018 5:59 PM

All replies