Solved

Which File Contains A Control

Posted on 2004-03-30
8
195 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now