Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
Yesterday i was read book .Net IL Assembler, i know how to code IL Assembly and produce managed code(exe or dll) using ilasm. we can create console based application using IL Assembly, My question is how to make Windows Form Application using ilasm? i am curious how to make simple form with button that contain an event click that show message box (windows dialog) using IL Assembly.

correct me if i was wrong, i need some book recommendation. thanks!

What I have tried:

1. Success create console application (exe & dll) using IL Assembly
2. Know a little how to code on IL Assembly (create variable, assign value to variable, loop, branch, create method, object, class etc)
3. Dissasembled WIndows Form Application using ILDASM
Posted
Updated 8-Jan-17 6:28am
Comments
OriginalGriff 8-Jan-17 12:28pm    
Downvote countered.
Gun Gun Febrianza 9-Jan-17 1:12am    
thanks sir, you are still awesome. helping people like us on this forum (y)

1 solution

It's not as simple to do as a console app, but it's possible - a lot of work though.
What I'd suggest you start with is by creating a basic WinForms app in C# - one button, one text box: press the button and the text box content goes into a MessageBox. Build it and look at the IL that it generates (ILSpy[^] may help there, but there are others available) to get a feel for what you need to do to create your own IL app directly.
 
Share this answer
 
Comments
Gun Gun Febrianza 9-Jan-17 1:22am    
good news if it's possible, i'll find a way. sir, last years you was help me on this forum.
now i can build compiler with target to IL Assembly. you can see the progress here :

http://gungunfebrianza.tumblr.com/post/147576884131/update-ilp-looping

i am undergraduate thesis, build compiler using our native language(indonesian language).
i am working hard to make this application with my limited programming skill,

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