This is a tutorial based off of one made for Visual Studio 2010, which can be found here.
Step 1: Moving the Dark GDK.NET Template
Once you’ve installed Dark GDK.NET head over to the template found in:
My Documents/Visual Studio 2008/Templates/ProjectTemplates/Visual C#/
Copy and paste the .zip file into the Visual Studio 2012 equivalent.
Step 2: Create a New Project in Visual Studio 2012
Start up Visual Studio 2012 and create a new project and you should find the Dark GDK template.
Step 3: Reloading Dark GDK References
When you start up, Dark GDK’s references haven’t loaded properly, as you’ll see below:
Right click on each of them and select ‘Remove’ to get rid of them. We’re going to manually add them.
Right click on ‘References’ and click ‘Add Reference’. We’ll first add DGDKLib. You’ll find it here:
Now we just need Dark GDK and Dark GDK Plugins. The problem with these two is that they don’t show in the reference manager, meaning we’ll have to add them manually. So go to ‘Add Reference’ again, but this time hit ‘browser’ and we can add both of them, which can be found at these 2 directories:
C: Windows/assembly/GAC_32/DarkGDK/[version number]/DarkGDK.dll/
C: Windows/assembly/GAC_32/DGDKPlugins/[version number]/DGDKPlugins.dll/
Once you’ve got them both, just make sure they’re selected and hit OK.
Step 4: Setting Up .NET Framework
The project will be created in VS 2012 for .NET 4.0 but we need it to run from 3.5. This is actually pretty simple. Right click on your project and hit Properties.
Then just change ‘Target Framework’ from 4.0 to 3.5
Then it’ll take a couple of seconds to switch. Now you can hit compile.
Open up the project file and code to your heart’s content.
Optional Step: Don’t like Windows Forms?
This is an extra step for people who want to run the project outside of Windows Forms.
Open up fMain.cs[design] by double clicking it in the solution explorer.
Click on the DarkGDK object inside of the form, look at the Properties pane and scroll down until you get to Dark GDK. Turn ‘Embedded’ off. You’ll notice other useful settings you might be familiar with from using Dark Basic Pro.
That’ll get Dark GDK running outside of the Windows Form window, but the Window will still be there. Double click on the Windows Form itself (not the Dark GDK object) and it’ll open up a bit of code and that code determines the behaviour of the Windows Form. What you’ve just done is created a behaviour for when the Windows Form loads, hence fMain_load.
Inside of that method between the two curly braces add this line:
And what that does is minimalizes the Windows form on start up so that it is out of your way.