Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys
i want to know how can i load dll class library in load event using code like
UserControl TestContainer Form In Visual Studio
When I Press Load Button And Select File Its Load
Thanks



ok but it's can work with UserControl Library Or No
Send And Revise Data From TextBox Just Ex.
Posted
Updated 24-Nov-12 10:23am
v2

hi dear,
you can use

Assembly.LoadFrom (String)

or [DLLImport] function

C#
[DllImport("KERNEL32.DLL", EntryPoint="MoveFileW",  SetLastError=true,
CharSet=CharSet.Unicode, ExactSpelling=true,
CallingConvention=CallingConvention.StdCall)]
public static extern bool MoveFile(String src, String dst);
 
Share this answer
 
At Frist Thanks For Answer.

But If This Library Is A UserControl Can I View It , Send And Revise Data From Tools Like TextBox Or This For Assembly Method Only.

And Thanks For Answer Again.
 
Share this answer
 
Comments
Nelek 24-Nov-12 8:55am    
Please don't post solutions to add information, to ask something or to comment another user.
- To add information to your message, you can use the widget "Improve question" / "Improve solution" at the bottom of your text.
- To ask/answer a user, you can use the widget "Have a question or comment?" (as I am doing right now with you) or the widget "reply" in another comment.
Ahmed Emad Mohamed 24-Nov-12 16:26pm    
Sorry For This Error
Nelek 25-Nov-12 5:32am    
No problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900