[Mono-list] Backdrop behaving different in Mono

Peter Dennis Bartok peter at novonyx.com
Wed May 17 16:16:42 EDT 2006


Can you post a full testcase? The code should behave the same as on MS.Net 
when run with Mono. You might want to file a bug at bugzilla.ximian.com and 
attach both the image and a simple testcase to reproduce.

Cheers,
  Peter

-----Original Message-----
From: "Glen Farrell" <glensmono at telus.net>
To: <mono-list at lists.ximian.com>
Date: 17 May, 2006 14:04
Subject: [Mono-list] Backdrop behaving different in Mono


Hi, I've created an MDI window with a toolbar on the right side. I'm trying 
to load a backdrop image from a file, and display it as the background for 
the MDI window. So I've added this code to the form constructor:
  System.Drawing.Image Backdrop = System.Drawing.Image.FromFile("Images" + 
System.IO.Path.DirectorySeparatorChar + "Backdrop.jpg");
  this.BackgroundImage = Backdrop;

Now this code works fine running it directly from Visual Studio (in 
Windows). However (using the VSPrj2Make add-in), when I test it with Mono 
(1.1.15), the backdrop image appears on the toolbar instead!

Do I need to do this differently in Mono?

Thanks,
Glen.





More information about the Mono-list mailing list