Solved

Embedded dll resource

Posted on 2004-10-14
7
246 Views
Last Modified: 2008-03-17
Once a dll file is embedded into a program as a resource how can you call it in code and use it as if it was sitting in a directory or can this be done with VB.NET 2002?
0
Comment
Question by:teamdad
[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
  • 4
  • 3
7 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 12315248
You don't embed the DLL as a resource in your application.

Instead, you add a reference to it and invoke its objects/methods from in your code.

When you deploy your application, the DLL should be packaged with the app so it will be on the target machine.

What DLL are you trying to use or is this just a generic question?

~IM
0
 

Author Comment

by:teamdad
ID: 12315739
Well, I have been trying to find something the dll at this url http://www.codeproject.com/vb/net/ToolBarEx.asp I know you have helped me make a moch method to make a menu kinda like this but I was hoping to use the file as embedded if/when I ever found one.  I guess it makes more sence to just deploy and invoke it.  

I either wish I had vb.net 2003 or a version of that dll that would work with my vb.net 2002.  It seems like a pretty good control to use.
0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 12315810
Does vb.net 2002 not have a ToolBar control?

~IM
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Author Comment

by:teamdad
ID: 12315843
It does.... but not a very good one. It don't allow you to do the hover effects on the buttons etc... It's just a basic row of bland buttons you can put pictures into and use.
0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 12315867
The VB.Net 2003 ToolBar has an Appearance property that can be set to either "Normal" or "Flat".  In Normal mode, the buttons appear as standard buttons.  In Flat mode, they all run together but as you pass over them, a "raised" button appears over the current button.

Does the Vb.Net 2002 Toolbar have this option?

~IM
0
 

Author Comment

by:teamdad
ID: 12315868
On a whim I added a toolbar, a few buttons and tried using a manifest file but then the application won't start. It gives an error that the configuration settings is not correct.  Here's what I tried using as the WindowsApplication32.exe.manifest

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1"
    manifestVersion="1.0"><assemblyIdentity    version="1.0.0.0"    processorArchitecture="x86"    name="MyApp"        type="win32"        /><description>My Great Solution</description><dependency>   <dependentAssembly>     <assemblyIdentity type="win32"          name="Microsoft.Windows.Common-Controls"          version="6.0.0.0"          processorArchitecture="X86"          publicKeyToken="6595b64144ccf1df"          language="*"      />   </dependentAssembly></dependency></assembly
0
 

Author Comment

by:teamdad
ID: 12315908
After hours of playing with it.... all I found it could do is make the button change borders when it was pressed. It has the same option for Normal or Flat but neither change the look of it I can tell.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

632 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