View Single Post
  #11 (permalink)  
Old 03-26-2008, 07:50 PM
Erel's Avatar
Erel Erel is offline
Administrator
 
Join Date: Apr 2007
Posts: 13,119
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The CLR searches mscorlib by default.
You can just write:
Code:
ofrm.CreateNew2("System.IO.DirectoryInfo", args.Value)
(Assuming that System.IO.DirectoryInfo belongs to mscorlib.dll)
The full name is required for all other libraries:
Code:
oIcon.CreateNew2("System.Drawing.Icon" & oIcon.System_Drawing, args.Value)
Reply With Quote