diff --git a/samples/VelloWindowsFormSample/Form1.cs b/samples/VelloWindowsFormSample/Form1.cs
index be66202..5e7256a 100644
--- a/samples/VelloWindowsFormSample/Form1.cs
+++ b/samples/VelloWindowsFormSample/Form1.cs
@@ -30,7 +30,9 @@ private void OnPaintSurface(object sender, VelloPaintSurfaceEventArgs e)
// Maak een pen aan
var pen = new VelloPen(Color.Blue, 5);
- const string vtfile = @"cadastral.pbf";
+ // Load cadastral.pbf from the executable's directory
+ var exeDirectory = AppContext.BaseDirectory;
+ var vtfile = Path.Combine(exeDirectory, "cadastral.pbf");
using (var stream = File.OpenRead(vtfile))
{
var layerInfos = VectorTileParser.Parse(stream);
diff --git a/samples/VelloWindowsFormSample/VelloWindowsFormSample.csproj b/samples/VelloWindowsFormSample/VelloWindowsFormSample.csproj
index 9177b44..4cb7d85 100644
--- a/samples/VelloWindowsFormSample/VelloWindowsFormSample.csproj
+++ b/samples/VelloWindowsFormSample/VelloWindowsFormSample.csproj
@@ -7,10 +7,12 @@
true
enable
10.0.17763.0
+ win-x64
+