?
Solved

Which File Contains A Control

Posted on 2004-03-30
8
Medium Priority
?
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

771 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