Solved

Embedded dll resource

Posted on 2004-10-14
7
239 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
  • 4
  • 3
7 Comments
 
LVL 85

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 85

Expert Comment

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

~IM
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 85

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multiple file Upload asp.net 2 38
Converting C# Objects into JSON file 7 65
Get String split 5 47
Run a batch file when a Crystal Report is opened 5 13
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 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

28 Experts available now in Live!

Get 1:1 Help Now