Click here to Skip to main content
14,455,338 members
Rate this:
Please Sign up or sign in to vote.
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
Updated 8-Jan-17 7:28am
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
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 :

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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100