Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
i want to inject some code into .net assemblies such as { windows forms application }

i think mono.cecil is a useful reference tool ,but i can't work whit it :(

my code i would to inject to a win forms application is :
C#
public class Program
{
    static void Main()
    {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        Application.Run(new myloginForm());
    }
}


thanks.
Posted

Hi.(salam)
You can create, build and run an application during run time of your other application using CodeDOM. You will need to learn it. Please start here:
LINK
[^]
 
Share this answer
 
Hi [ Salam :) ]

Thanks for reply but i want to use mono.cecil becuase i dot have time to learn CodeDOM mono.cecil is a better ( a fast way to do it ) .
 
Share this answer
 
Please read this article ( Advanced Code Injection with Mono.Cecil )

http://www.dotnetsharp.com/Forums/dispbbs.aspx?i=2007&j=434[^]

i want do this for a win forms application .
 
Share this answer
 

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