gooberking | 1 Jan 2012 02:08
Picon
Favicon

Empty Folderbrowser dialogs

I started having a rather unexpected problem while remaking an older program
of mine. As part of it I copied some work I had already done involving a
form that launches a couple of folderbrowser dialogs for typical path
selections. However, when the dialogs open, they are empty. The create new
folder, cancel, and OK buttons all appear but there is no way to navigate to
a desired folder. I have not found any evidence that this is happening to
anyone else

To make things a bit weirder The older program running the same code,
compiled on the same system works just fine. Then to test it I created a
super stripped down program that does nothing more than create folder
browser dialog and it appears blank on my windows system and works fine on
my linux system(running monod 2.4)

using System;
using System.Windows.Forms;
using System.Globalization;

namespace ScreenSaver1
{
    static class Program
    {

      
        static void Main(string[] args)        {            

                FolderBrowserDialog fd = new FolderBrowserDialog();
		fd.ShowDialog();

            
(Continue reading)

Stifu | 12 Jan 2012 21:09
Picon
Favicon
Gravatar

Re: Porting Windows .NET 4 WinForm Application To *NIX With Mono - Unexpected binary element 0

It sounds like a Mono ResourceManager bug to me.
I reported a bug that sounds similar a little while ago:
http://bugzilla.xamarin.com/show_bug.cgi?id=749

In my case, I found out a workaround: adding the file to the project, and
setting it as embedded resource, rather than using an resx file.

plaid wrote
> 
> I have a WinForms program ported from .NET 1.1 to .NET 4 (Full Profile)
> compiled as an x86 project within Visual Studio 2010 Ultimate on Windows 7
> 64-bit.
> 
> It has a combination of VB, C#, ASP.NET (Web Service ported to WCF) and as
> well connects to SQL.
> 
> --------------------------------------------------------------------------------------------------------
> 
> I've installed a VM of openSUSE 11.4 (both 32-bit and 64-bit) with the
> latest repository of Mono (2.10.6 and 2.10.2 respectively).
> 
> I've also installed the packages for
> libgdiplus0
> mono-basic (mono-data, mono-data-sqlite, mono-web, mono-winforms)
> mono-wcf (mono-extras, mono-mvc)
> 
> and eventually found I also needed
> mono-locale-extras
> 
> as well as the necessity to use
(Continue reading)

plaid | 12 Jan 2012 21:59
Favicon

Re: Porting Windows .NET 4 WinForm Application To *NIX With Mono - Unexpected binary element 0

Sounds like your case is pretty much exactly the same case.  In my case I
find that it fails with Images as well as Icons (where the Cursor is
effectively the same as an Icon).

What is the resx entry for the Cursor you tried in your example?

What I did with that GetBMPImage Function is essentially the same as your
workaround, however, in my case, I have waaaay too many forms with images
and icons in this manner to try to replace them all with this sort of
process (especially considering it shouldn't be necessary to "workaround").

I get the feeling the issue is in how it's handling/converting

application/x-microsoft.net.object.bytearray.base64

types when it tries to digest the resources.

Any ideas of where I might be able to post this to verify such a premise
and/or elevate it as a bug?  It seems like it would be a fairly common
problem for ANY Windows Forms application generated from Windows to *NIX
and/or Mac.

-----
Ars Longa, Vita Brevis.
--
View this message in context: http://mono.1490590.n4.nabble.com/Porting-Windows-NET-4-WinForm-Application-To-NIX-With-Mono-Unexpected-binary-element-0-tp4289685p4290440.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
(Continue reading)

Stifu | 12 Jan 2012 22:22
Picon
Favicon
Gravatar

Re: Porting Windows .NET 4 WinForm Application To *NIX With Mono - Unexpected binary element 0

"What is the resx entry for the Cursor you tried in your example?"
What do you mean? You should have everything you need in the solution
attached to the bug report.

"Any ideas of where I might be able to post this to verify such a premise
and/or elevate it as a bug?"
Well, I already reported the bug, so if it's the same one, there's no need
to report anything else. But you may post extra info on the bug report. It
may also help to bring up this issue on more popular mailing lists, such as
Mono - Dev. And you might want to  check out the ResourceManager class 
(https://github.com/mono/mono/blob/master/mcs/class/corlib/System.Resources/ResourceManager.cs),
or related classes...

I don't think I'll be able to help much, but feel free to ask for more info
if needed.

plaid wrote
> 
> Sounds like your case is pretty much exactly the same case.  In my case I
> find that it fails with Images as well as Icons (where the Cursor is
> effectively the same as an Icon).
> 
> What is the resx entry for the Cursor you tried in your example?
> 
> What I did with that GetBMPImage Function is essentially the same as your
> workaround, however, in my case, I have waaaay too many forms with images
> and icons in this manner to try to replace them all with this sort of
> process (especially considering it shouldn't be necessary to
> "workaround").
> 
(Continue reading)

sharkal | 16 Jan 2012 17:13
Favicon
Gravatar

Re: CurrentCellDirtyStateChanged DataGridView

Hi Ingemar,
Solution: 
Before you ask the values of the checkboxes, do this:

                if (dgVTransceivers.IsCurrentCellInEditMode)
                {
                    dgVTransceivers.EndEdit();
                }

At least with this workaround it worked.

greetz
Wolfgang

--
View this message in context: http://mono.1490590.n4.nabble.com/CurrentCellDirtyStateChanged-DataGridView-tp3780468p4299995.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

matteot | 19 Jan 2012 18:08
Picon

Windows Forms is broken on OSX

Hello mono!
I posted the following bug on bugzilla time ago
http://bugzilla.xamarin.com/show_bug.cgi?id=2474

We tried this on many machines and we can confirm that the bug occurs on any
MAC.
I'm wondering if there is something we can do help you fix the problem.

Thanks,
Matteo

--
View this message in context: http://mono.1490590.n4.nabble.com/Windows-Forms-is-broken-on-OSX-tp4310650p4310650.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Gmane