I hope I am using the right forum for this question..
So, I am using VB.NET, and I have a Control Manipulation Class that I am coding.
I want to create an array as a property, where its size is dynamic. This way I can in a form just add text boxes to the array and then call a method and do what I wish with the arrary. For example lets say I wanted to check a bunch of text boxes for nulls before I send the information to a database.
However I cant quite figure out how to do this...I can set up an arrary of text boxes as a property just fine, its the dynamic size thats throwing me.
So, I am using VB.NET, and I have a Control Manipulation Class that I am coding.
I want to create an array as a property, where its size is dynamic. This way I can in a form just add text boxes to the array and then call a method and do what I wish with the arrary. For example lets say I wanted to check a bunch of text boxes for nulls before I send the information to a database.
However I cant quite figure out how to do this...I can set up an arrary of text boxes as a property just fine, its the dynamic size thats throwing me.
Code:
Private MarrTxt(dynamic size...) as Textbox
Public Property arrTXT() as TextBox
Get
Return MarrTXT()
End Get etc...