does anybody know why my project compiles but when I try to add my SFMLCanvas to my form it throws an error?
I have don't the following..
-added sfmlnet-audio-2 to references
-added sfmlnet-graphics-2 to references
-added sfmlnet-system-2 to references
-added sfmlnet-window-2 to references
-added all extlibs to root of project and set output directory to "Copy id newer"
and this is my code..
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SFML.Graphics;
using SFML.Window;
namespace Zelda_2_Editor
{
public partial class SFMLCanvas : UserControl
{
public RenderWindow renderwindow;
public SFMLCanvas()
{
InitializeComponent();
renderwindow = new RenderWindow(this.Handle);
}
protected override void OnPaint(PaintEventArgs e)
{
System.Windows.Forms.Application.DoEvents();
renderwindow.DispatchEvents();
renderwindow.Clear(SFML.Graphics.Color.Green);
renderwindow.Display();
}
protected override void OnPaintBackground(PaintEventArgs pevent)
{
}
}
}
here is what it looks like when it happens
can somebody tell me whats wrong and how to fix it?