Questions tagged [vbcodeprovider]

A .NET Framework Class that provides access to instances of the Visual Basic code generator and code compiler.

The VBCodeProvider class in .NET can be used to compile Visual Basic.Net source code from an in-memory string or a file on disk into a .NET executable assembly in memory or in a DLL file on disk.

20 questions
0
votes
0 answers

Globally importing VB.Net namespaces

I've got a C# program this is attempting to dynamically compile some VB.Net code. var vbc = new Microsoft.VisualBasic.VBCodeProvider(new Dictionary { { "CompilerVersion", "v4.0" } }); var parameters = new…
Icemanind
  • 47,519
  • 50
  • 171
  • 296
0
votes
1 answer

VBCodeProvider Can not cast correctly the Implicit Variable declaration on compile

I am Compiling My string Code(I read My Code from Text File) In vb and it works fine but i have a function that returns nullable double(Double?) when i use it like this Dim x As Double? = Myfunc(1000) 'it returns Nothing my x variable fills with…
Pouya Samie
  • 3,718
  • 1
  • 21
  • 34
0
votes
1 answer

How to Use VBCodeProvider

I am writing a Windows Forms application using .NET Framework 4.0 on Windows 7 x64. My program needs to be able to compile some text to an EXE. I found out that I could do this with the VBCodeProvider. The problem is, I don't know how to use it, and…
Penguin
  • 33
  • 5
0
votes
1 answer

Run a codeCom code in AppDomain in .NET Framework 4.0

How can I run the compiled code in the current AppDomain in NET Framework 4.0? Below the code that works in net framework 3.5, but objCompilerParameters.Evidence is obsolete in NET Framework 4.0 so how to solve it? protected void…
Willy
  • 9,848
  • 22
  • 141
  • 284
-4
votes
1 answer

Get data from a site

I want to get special data from a site but i don't know how. I need a vb.net source code that help to get this data from web every 5 seconds and split them in a form. How can I achieve this?
noneoeo
  • 1
  • 1
1
2