views:

31

answers:

2

I have a VB6.0 application in which I have forms and user controls. I need to know in which form a particular user control is being used. Can anyone tell me how to do this?

A: 

Object Browser -> Input UserControl classname and Find

pinichi
This will work only if control instances are named UserControl1, UserControl2, etc. :-))
wqw
+3  A: 

frm files are text files. Use an editor like Notepad++, which is free, to search across all the files for the user control. You might want to add the user control to a form, and then view the frm file in Notepad++, so that you know what to search for.

Here is the manual topic on frm format

MarkJ