Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Monogame render embbeded into PictureBox

[Image: CXHWGzd.png]

More images on spoiler:

Spoiler (Click to View)

How it works?

This tutorial has a triple combo:
  • Monogame stuff instead GDI/GDI+
  • Monogame stuff rendered on standard Winforms PictureBox control
  • Monogame stuff coded in VB.NET instead C#

Need Monogame installed on my rig to compile the source-code?

Technically no. Monogame is attached to solution as NuGet Package. And Content pipeline are "precompiled" to Content\bin\Windows\ folder

How the precompiled content is moved to debug\release output folder?

There is a PostBuild event on solution with this code:

Code
echo "Deleting previus Content Folder..."
rd "$(TargetDir)Content"
echo "Creating Content Folder..."
md "$(TargetDir)Content"
echo "Copying Content Files..."
xcopy "$(ProjectDir)Content\bin\Windows\*.*" "$(TargetDir)\Content" /Y /I /E

That postbuild event copy the precompiled content to your debug\Content or release\Content folder

That's nice. Give me the source-code!

Yes, sir:
Source: https://github.com/kernelENREK/MonogameWinformsDemo

Enjoy :)

Edited: highly recommended running the source code with headphones...
That looks nice zilogy, fine job you done there!!!!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by ShapelessSep 27, 2019 12:15 PM 16 602 Sep 27, 2019 12:15 PM
Last Post: 0xDEAD10CC
[C#] by fungooseSep 2, 2018 02:08 PM 0 237 Sep 2, 2018 02:08 PM
Last Post: fungoose
[C#] by JUSTINNov 9, 2017 11:42 AM 5 526 Nov 9, 2017 11:42 AM
Last Post: debug