URGENT !! i like to execute dynamc scripts from vb.net program (language basic)

Using vs2008 / vb.net .net 3.5 sr1.

I don't know if this are possible  to do.

I like to execute dynamic scripts from my program

myscriptfile.vb (textfile)

some type of script (vba, .net script or something else)

(this is only a example in vb to show how a function can work)
(it should be possible to change variables / use functions / subs / classes and so on)

module myscriot
sub mysub(byref myobj as object)

    'in this case the object are a label.
    object.text="only test"
end sub

from the vb.net code
execute some function to dynamic load the textfile into some are.
execute some function to run the dynamic function from my text file (mysub)
eg. myscrtip.mysub(me.label1)
brg /Richard
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
You can use the MS Script Control to do things like that:
PryratesConnect With a Mentor Commented:
maybe this might help you:

I posted a sample of how to compile and execute code at runtime.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.