[Closed] Load asembly , Help ?
Right now im trying to load assembly from this source
http://www.codeproject.com/Articles/43265/ImageListView
but wont load , is everyone willing to help me out here ?
myThumbDll="D:\\script file\\Thumb Viewer\\List View Image\\ImageListView.dll"
dotNet.loadAssembly myThumbDll
rollout myThumb "Thumbnail Viewer Example"
(
dotNetControl myThumbCtrl "ImageListViewDemo" pos:[0,0] width:200 height:200 align:#center
)
createDialog myThumb 500 500
Thank you very much :buttrock:
everything works fine. you’ve tried to load a wrong control…
/*
a = dotnet.loadassembly @"c: emp\ImageListView.dll"
ilv = a.createinstance "Manina.Windows.Forms.ImageListView"
*/
rollout dialog "Image List View" width:300 height:300
(
dotnetcontrol ilv "Manina.Windows.Forms.ImageListView" pos:[2,2] width:296 height:296
)
createdialog dialog
Wow thanks Mr.DenisT , may I have little question ? where do you ussualy get “Manina.Windows.Forms.ImageListView” or “other assembly name from” source located in the C# script ? is it ussually from InitializeComponent () or namespace bla bla , cos ussually the C languange contain many control in it, where ussually you search the dotnetControl when load it using dotnet.loadassembly ? Sorry for the confusing question and little unknowledgeable ?
Thanks for answering me. :arteest: :applause:
i’ve simply looked in the c# code… but if you don’t have code you can use GetTypes() assembly method to get collection of types in this assembly and check namespace property of all types to find all namespaces.
Another way (if you have just the assembly) is to drag and drop it into visual studio – it will add it to the object browser and let you look through the assembly to see all the types, properties and methods. The treeview will show the deafult namespace between the curly braces {} at the top, so this tells you what to include in your dotnetcontrol/object constructor.
Nice little control this, interesting to see the optimizations he’s made when developing it.
Hey Mr.Lone Robot , may I ask, what software are you using to view like in the attachment you attach ?
Thanks
Edit: never mind