Solved

Which File Contains A Control

Posted on 2004-03-30
8
192 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
 
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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 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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

762 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

26 Experts available now in Live!

Get 1:1 Help Now