I am making a trainer for the game Assault Cube as it is my first real C# project. Using VAMemory I can read and write the memory addresses to change stuff like health/ammo. I want to use this code in my Windows Form so that it'll modify the addresses on a button click event.
Check the picture in my spoiler for a possibly better explanation.
Spoiler (Click to View)
Apparently I need to pass vam to Form1.cs or subscribe to the events in Program.cs, but I have absolutely no idea how to do either or even understand why this needs to be done. Searching the docs helped me a little but I'm still really stuck... :(
Check the picture in my spoiler for a possibly better explanation.
Spoiler (Click to View)
Apparently I need to pass vam to Form1.cs or subscribe to the events in Program.cs, but I have absolutely no idea how to do either or even understand why this needs to be done. Searching the docs helped me a little but I'm still really stuck... :(
![[Image: Ijqx9DX.png]](https://i.imgur.com/Ijqx9DX.png)
Quick Love my posts please!


![[Image: neSIipT.png]](https://i.imgur.com/neSIipT.png)

![[Image: 2eb99610.gif]](https://i.ibb.co/55SJhvG/2eb99610.gif)