![]() |
Cannot assign 'Add' because it is a 'method group'
Beating my head against the wall on this one. Trying to write a simplified version of a combat routine (to make sure I have all the basic pieces working).
But getting stuck with just getting the basics done and drawing a blank on what I can do to solve this last issue. And hoping I can get some help. To start with, I have a windows form where some info is entered: :
namespace BasicCombatFormNext I have the class that handles the combat routine: :
namespace BasicCombatFormAnd last I have a simple output form I want to write the results to: :
namespace BasicCombatFormAfter all is said and done, the last issue I am having is at the writing to the lstDisplayFight listbox. I keep coming back to the compile error that tells me that .Add or .Equals or any other function I try, cannot assign because it is a 'method group'. And I have not been able to find anything that helps clear up exactly what my issue is. Am I just going about this the wrong way? Or is there something else I can do? (Of course, I don't even know if the rest of this is going to work either...) Thanks all. Jarod |
You use the Items property and then the Add method.
:
ListBox b = new ListBox();:
ListBox b = new ListBox();:
ListBox b = new ListBox();Hope this helps. Holla if you don't understand. |
| All times are GMT -5. The time now is 4:15 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC