Hack Forums
[C#] Adding a VB theme to a .dll - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Adding a VB theme to a .dll (/showthread.php?tid=4653768)



Adding a VB theme to a .dll - AspectModding - Jan 25, 2015

Hello there HF, I am having a problem adding a vb theme to a .dll for a C# project, what I am doing is the following: I am creating a Class Library in VB adding the source from the theme to the class and trying to build it but I am getting over 200 errors, I tried it in a vb windows form and the theme works fine there. Can you please tell me what I am doing wrong please.


* - Nikey646 - Jan 25, 2015

You will need to add references to at least System.Drawing and potentially System.Windows.Forms...A class library usually doesn't require either of those two References, so the template for Class Libraries does not include them.


* - AspectModding - Jan 25, 2015

I got those mate, any other ideas what I could of done wrong :D

Edit: I fixed it now thank you.


* - Astek - Jan 25, 2015

if you couldn't tell why you were getting 200+ errors you shouldn't be using custom controls.


* - SaketSaket - Jan 25, 2015

(Jan 25, 2015 06:46 AM).Aero Wrote:  if you couldn't tell why you were getting 200+ errors you shouldn't be using custom controls.

The theme might needed Themebase... which must have added now by him/her as errors are resolved... ;)


* - Astek - Jan 26, 2015

(Jan 25, 2015 11:30 AM)SaketSaket Wrote:  The theme might needed Themebase... which must have added now by him/her as errors are resolved... ;)
I guess that could be true, but he wasn't adding Drawing and Windows.Forms as a ref 😊


* - Nikey646 - Jan 27, 2015

(Jan 26, 2015 06:40 PM)Ae‎r‎o Wrote:  I guess that could be true, but he wasn't adding Drawing and Windows.Forms as a ref 😊

(Jan 25, 2015 05:10 AM)AspectModding Wrote:  I got those mate, any other ideas what I could of done wrong :D

Edit: I fixed it now thank you.

According to ^, he did have System.Drawing/Windows.Forms referenced and it was something else.


* - Astek - Jan 27, 2015

(Jan 27, 2015 02:56 AM)Nikey646 Wrote:  According to ^, he did have System.Drawing/Windows.Forms referenced and it was something else.
touche 🤝, but I'm guessing he had the Imports but didn't actually reference them...