Remove rptTextBox in Data Report during Run Time
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I want to remove all the text boxes in a data report during run time. I used the following code, but it shows error. [CODE] For i = 1 To DataReport1.Sections(3).Controls.Count If TypeOf DataReport1.Sections(3).Controls.Item(i) Is RptTextBox Then Unload DataReport1.Sections(3).Controls.Item(i) End If Next i [/CODE] [ERROR] Can't load or unload this object [/ERROR] Guide me to rectify this. Thanks in advance.