I need to change size parameter of OvalShape, I have about 100 of them, named like OvalShape1, OvalShape1...... OvalShape100
Search the froum I noted this http://www.daniweb.com/software-development/csharp/threads/367949
This example works for Label, but throws error for OvalShape, following is my modified code that giving error;
For Count As Integer = 1 To 100 Me.Controls("OvalShape" & Count).Size = New Size(20, 20) Next
The error reporting is during run time, "Object reference not set to an instance of an object"
Can anyone PLEASE guide me where I am doing wrong.