• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Which File Contains A Control

How can I tell what the file name is that contains a VB control?  For example, what file contains the "Line" control in Visual Basic 6?

Thanks,

ssteeves
0
ssteeves
Asked:
ssteeves
  • 2
  • 2
  • 2
  • +2
1 Solution
 
g0rathCommented:
load up the OLE/COM Object viewer look for your control then just see what file it belongs to
0
 
AzraSoundCommented:
Line control is in VB6.OLB (you can usually find this in your Object Browser).  Are you asking this generally or some type of programmatic method?
0
 
___XXX_X_XXX___Commented:
Msvbvm60.dll contains Line control :) In fact, this is not a control at all I think.
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
JMoon5FTMCommented:
All of the default VB "controls" - line, shape, label, text box, picture box, etc. - are built into the Form designer, and aren't real controls.

The type information for the controls in in VB6.OLB.  The implementation of the form designer and all the built-in controls is in MSVBVM60.DLL.
0
 
ssteevesAuthor Commented:
So, if it's not really a control, then I wouldn't be able to add it to my Visual Basic.NET 2003 toolbox?
0
 
g0rathCommented:
To add a control to VB .Net just...

Add User Control from the Solution Explorer...unless what your trying to do is really add vb6 controls to VB .Net
0
 
ssteevesAuthor Commented:
Yes, I'm trying to add the Vb6 line control to VB.NET, which doesn't seem to have a line control..
0
 
JMoon5FTMCommented:
Sorry, ssteeves, but can't do - you have to draw the line during your Paint event.  No other way.  :(
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 2
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now