if you want to add c# code to your vb project try this. add a new c# library project to your vb solution. so then you will have a 2 projects in the solution. then add the c# library to the reference of the vb solution. and now the c# will compile as a dll and the vb exe will use the dll