You are missing the parentheses of the method call:
ToString()
Without the parentheses, the expression is a method group — that is, a reference to one or more overloaded methods.
More Related Contents:
- Operator '==' cannot be applied to operands of type 'int' and 'string
- Why does Read interfere with ReadLine? [duplicate]
- Using non-literal strings in different methods in C#
- How can I convert String to Int?
- Get a Windows Forms control by name in C#
- Color different parts of a RichTextBox string
- How do I write a backslash (\) in a string?
- Convert int to string?
- C# listView, how do I add items to columns 2, 3 and 4 etc?
- Add item to Listview control
- C# ListView Column Width Auto
- How to change listview selected row backcolor even when focus on another control?
- ComboBox.SelectedText doesn’t give me the SelectedText
- string.Format() giving “Input string is not in correct format”
- Why does .ToString() on a null string cause a null error, when .ToString() works fine on a nullable int with null value?
- How to convert string to integer in C#
- How to prevent flickering in ListView when updating a single ListViewItem’s text?
- How to hide the vertical scroll bar in a .NET ListView Control in Details mode
- How can I take a screenshot of a Winforms control/form in C#?
- Changing color of scroll bar in ListView in WinForms
- Question about terminating a thread cleanly in .NET
- How to move and resize a form without a border?
- Comparing two strings, ignoring case in C# [duplicate]
- TabControl with Close and Add Button
- Invoke NotifyIcon’s Context Menu
- How to split a number into individual digits in c#? [duplicate]
- C# – How to make two forms reference each other
- How to display text with subscripts or superscripts in the Title Bar?
- How do you change the text in the Titlebar in Windows Forms?
- Winforms DotNet ListBox items to word wrap if content string width is bigger than ListBox width?