Smarton Smarton - 6 months ago 14
Vb.net Question

Is there a way to search for controls in VB.Net Designer?

I have a form that has about 130 Text boxes, Labels, Timers, Buttons etc. Now if i need to select say "Button34" to rename it to "btnUpload" I have to click through about 19 buttons.

I tried the search tool to find it, but it only searches through the code.

Please is there a way to search for controls in VB.Net? this will make development much easier.

Thanks.

Answer

You can select control in Properties Window

View > Properties Window or F4 like below :

enter image description here

Or You can select control in Document Outline

View > Other Windows > Document Outline or Ctl + ALT + T like below :

enter image description here