Solved

Which File Contains A Control

Posted on 2004-03-30
8
196 Views
Last Modified: 2013-11-25
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
Comment
Question by:ssteeves
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 5

Expert Comment

by:g0rath
ID: 10717593
load up the OLE/COM Object viewer look for your control then just see what file it belongs to
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 10717597
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
 
LVL 6

Expert Comment

by:___XXX_X_XXX___
ID: 10717695
Msvbvm60.dll contains Line control :) In fact, this is not a control at all I think.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 5

Expert Comment

by:JMoon5FTM
ID: 10720823
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
 
LVL 1

Author Comment

by:ssteeves
ID: 10722954
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
 
LVL 5

Expert Comment

by:g0rath
ID: 10723237
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
 
LVL 1

Author Comment

by:ssteeves
ID: 10723270
Yes, I'm trying to add the Vb6 line control to VB.NET, which doesn't seem to have a line control..
0
 
LVL 5

Accepted Solution

by:
JMoon5FTM earned 50 total points
ID: 10732501
Sorry, ssteeves, but can't do - you have to draw the line during your Paint event.  No other way.  :(
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question