Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to have a function in a form that doesn't have a return type, it just sets some form controls. Something like the following.
private void SetList { }
However, I get error CS0547 that a property or indexer cannot have a void type. The method doesn't need a return type or any arguments. The problem is that VS thinks it's a property.
Ed
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.
Solved! Go to Solution.