Click here to Skip to main content
15,612,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I add the Agauge control to the (2008) toolbox?
I tried the general purpose ways described on the internet but it gives an error each time. Using the right-click menu gives an error that the dll " not a Microsoft.Net module", or "the type library could not be loaded". Even dragging the dll to the toolbox does nothing.

I just found there is a dedicated question section for this control, so I have started a question there and pointed to this. I will continue there so the thread is more easily found in relation to the control. (See

What I have tried:

Using the right-click menu to choose item; and dragging the dll to the toolbox.
Updated 30-Oct-20 10:02am

After unzipping the zip folder, please make sure the actual .dll is not being blocked. Visual studio will allow you to add a .dll as a reference even if the .dll is being blocked, the key here is to make sure the .dll as well as any and all other .dlls that were uncompressed are not blocked. You can unblock all dlls by performing these steps on your computer.

Step 1 - Unzip the original archive.
Step 2 - Select the contents of the unzipped files and compress them as a zip folder.
Step 3 - Unzip your zip folder from step 2.

When you compress a folder on your computer, than Info from your computer will be added to it's contents. When the contents are unzipped on your computer the info will match and none of the files will be blocked.

You are absolutely right by posting your question where the control is documented, it is usually the best place to obtain help.
Share this answer
CHill60 30-Oct-20 5:09am    
Did you know that you can use the "Improve Solution" link to add information to your existing solution? If it doesn't show straight away hover your mouse over your post and it should appear in the bottom right of your post. That is preferable to posting multiple solutions to the same question - apart from the fact it is confusing to have one person saying two things, some members will see it as rep-point hunting and report you for abuse.
YorkshireCap 30-Oct-20 16:04pm    
ok thanks- I added that note/link about the control's own question page to my original post here and deleted the note above.
I am used to other forums, where you "reply" to posts, but here it seems you can only accept a solution or use"Permalink" (whatever that is).
Once a comment has been posted I see you can reply to the comments.
YorkshireCap 30-Oct-20 16:24pm    
Henry Z. I followed that idea and although it still will not add as a reference or into the toolbox, I tried something new: I dragged the dll into the solution explorer and when I was on top of the project name a plus sign appeared, so I dropped it and now the dll appears under the project files in the solution explorer. However, I still do not see it in the toolbox so I cannot use it.
Is there something I don't know here? Surely a .Net control is a .Net control, so even if this is built in C# it is now a compiled dll designed for .Net so I should be able to use it in the toolbox and drag the control onto my form?
YorkshireCap 30-Oct-20 17:57pm    
Hmm, I just tried dragging the dll name from the solution explorer window to the toolbox and it appears there, but only as a text file object.
I also right-clicked on the dll in the solution explorer and selected "Open with... object explorer". The name and properties of the control are then listed, but still,I cannot get the proper control into the toolbox so that i can drag one onto a form.
Henry Z. 30-Oct-20 23:16pm    
YorkshireCap, can you share with me where I can download the source files so I can investigate your issue more fully...
Add a reference to your project: open the solution in the Solution Explorer pane, open teh project branch, and right click the References twig. Select "Add a reference" and then browse to the DLL file.

Provided it is a .NET assembly, it will be added and you can use it.

If it isn't, then you will get a error message, and you can't use it directly.
If that's the case, try this version: (AGauge) WinForms Gauge Control[^] or this: An Improved Version of AGauge (A fast and performing gauge)[^] in case your DLL file is corrupt.
Share this answer
YorkshireCap 26-Oct-20 18:54pm    
Thanks Original Griff, that's a different method so I have tried that. Unfortunately it did not work...
I right-clicked on the project in solution explorer, selected "Add Reference...", selected the "Browse" tab, selected the Agauge dll and clicked "OK".
It didn't work so I used your link to download the (DLL and Demo) once more, to my "C:\Program Files (x86)\Microsoft Visual Studio 9.0\AGauge_Control-CustomControl" folder.
Then I tried adding the reference again, but unfortunately that didn't work; nothing showed up in the solution explorer. Looking in the project references list, I see the reference title "Agauge", but the path says 'the system cannot find the reference specified'.

Has this tool been successfully added by anyone else? I don't understand why it will not add to my vs2008
Please make sure Windows 10 is not blocking your downloaded dll. Often times Windows 10 will automatically block dlls that have been transferred from one computer to another. You can check to see if your dll is being blocked by right clicking the dll file and choosing properties, than look toward the bottom to see if it's being blocked. You could always do a google image search for "Unblock Dll" which would give you a better visual.
Share this answer
YorkshireCap 28-Oct-20 18:22pm    
Thank you Henry Z. I have Windows 7 but it was certainly blocked as you suggested, so I unblocked the original zip file then extracted again and tried to add it. Drat- still won't drag in or have a reference added. The reference list still shows "the system cannot find the reference specified".
I also just tried to download the older, original Agauge control, but the web page can no longer be found.
Wow, I only wanted to try and replace my simulator's digit RPM display with a proper dial tachometer. The web page description sounded like it would be easy :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900