butterknife | 4 May 2013 08:44
Picon
Favicon

How to handle the fact that controls have a different size under mono

Winforms controls seem to be of a different size under mono then they are
under .net, this sometimes results in controls being cut off because they
are wider than the window they are in. Is there an effective approach to
resize the windows or force controls to be the same size as they are under
.net, that people recommend?  I am using Lubuntu with Mono JIT compiler
version 2.10.8.1 (Debian 2.10.8.1-5ubuntu1) and
building using Mono Develop 3.0.3.2 and project originally developed in
VS2010.

--
View this message in context: http://mono.1490590.n4.nabble.com/How-to-handle-the-fact-that-controls-have-a-different-size-under-mono-tp4659582.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

json-lala | 6 Apr 2013 08:52
Favicon

Problem with mkbundle Gtk#

 I try to  mkbundle Gtk# application  on Window  , that`s embed moon good.  
but the  Bundled Application  not work in XP  。 double click  and give me
nothing

 if I  mkbundle  WinForm application   that  works  great! 

--
View this message in context: http://mono.1490590.n4.nabble.com/Problem-with-mkbundle-Gtk-tp4659241.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
Neil Thackeray | 2 Apr 2013 21:36
Favicon

Updating GUI from an asynchronous thread

I'm having trouble getting the output from a command line program to 
appear in the main window of a form. For simplicity I'm just trying to 
get it to appear in a label for now. When I run the function RunIt 
nothing from stdout of the child process appears in the label, but 
ConsoleWriteline seems to pick it up just fine. When it gets down to the 
while loop it updates the label perfectly fine.

I've also noticed that the form seems to be locked while the child 
process is running. When I was just using BackgroundWorker without 
Application.Invoke the form updated from the child process and the while 
loop, but the update was spotty and the application crashed sporadically.

Any suggestions are appreciated.

Thanks

namespace windowtest
{
public partial class MainWindow: Gtk.Window
{
     public MainWindow (): base (Gtk.WindowType.Toplevel)
     {
          Build ();
     }

     protected void OnDeleteEvent (object sender, DeleteEventArgs a)
     {
         Application.Quit ();
         a.RetVal = true;
     }
(Continue reading)

Innovative Solutions SL | 20 Mar 2013 09:51
Picon

Help with Mono uses

Good morning.

I have some doubts on how to deal with applications that I want to develop.

I need to develop applications for a smart camera (VRMagic, in the description says it is compatible with MONO. NET) that has Linux (Debian) and above these applications I want to develop a setup wizard in C # where the user can set up the camera.  

I'm using Visual Studio and would like to use it as IDE if it's possible.

My question is:

How I can do this with MONO?

Can MONO be integrated with Visual Studio or do I have to use Xamarin Studio?

Can use WinForms with MONO?

I will be grateful if you clarify me what it is the best solution for my application.

Thank you and best regards,

Roberto.

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
xFleury | 8 Mar 2013 03:14
Picon

Incorrect, missing, and duplicate keypress events

There appears to be a bug in how the OS X implementation of keyboard events
is handled. The bug reveals itself when either multiple keys are pressed in
rapid succession or all at once.

Running my app on Win7 if I hit the keys 'J' 'K' 'L' all at once, I can
always get all three keys (though not in any particular order). But on OS X,
while running Windows Forms applications, I can get 'JJJ' or 'JKK' or 'LLL'.
Nowhere else in OS X is this behavior exhibited (native Cocoa apps, such as
TextEdit, behave identical to Win7).

Source code: (in Visual Studio, create a windows forms project, and edit
Form1's code):

public partial class Form1 : Form
{
    public Form1(){
        InitializeComponent();
        KeyPress += Form1_KeyPress;
        KeyDown += Form1_KeyDown;}
    void Form1_KeyDown(object sender, KeyEventArgs e)
        {Console.WriteLine("KeyDown: " + e.KeyCode.ToString());}
    void Form1_KeyPress(object sender, KeyPressEventArgs e)
        {Console.WriteLine("KeyPress: " + e.KeyChar.ToString());}
}

Running on Windows 7 (hitting JKL all at once):

KeyDown: L
KeyPress: l
KeyDown: J
KeyPress: j
KeyDown: K
KeyPress: k

Running on OS X Mountain Lion, via Mono 2.10.10 (hitting JKL all at once;
note it can take a couple attempts)

KeyDown: L
KeyPress: k
KeyDown: J
KeyPress: k
KeyDown: K
KeyPress: k

If you missed it, all KeyPress events are 'k', the result was 'kkk'. Why is
that?

--
View this message in context: http://mono.1490590.n4.nabble.com/Incorrect-missing-and-duplicate-keypress-events-tp4658863.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

tradis | 25 Feb 2013 09:44
Picon
Picon
Favicon

I can install alone mono and not framework

4 looked for alternative to framework, since when net installed it framework
client, on disc it occupies very much 1GB

and I do not want to fill disc of so many files

I do not understand how a file of 41mb ends up by filling so much the disc
and has to cover several services

pardon for my English I am from Spain

gracias
karlos

--
View this message in context: http://mono.1490590.n4.nabble.com/I-can-install-alone-mono-and-not-framework-tp4658734.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

Nigel Delaney | 15 Jan 2013 06:48

Tab Control Issue on Mac OSX

Hello,

 

Thanks to all who have been working on this project!  I had a quick question I was hoping someone could help me with.    I was hoping to port an application to the Mac OSX using mono, but sadly appear to have run in to a problem with controls on hidden tab controls painting themselves on the main window, even if not in that tab.  I have seen this described (a bit better) a few places online as filed bug reports:

 

http://lists.ximian.com/pipermail/mono-bugs/2010-December/107562.html

 

http://lists.ximian.com/pipermail/mono-bugs/2010-December/107542.html

 

https://bugzilla.xamarin.com/show_bug.cgi?id=3124

 

Unfortunately,  I don’t have regular access to a Mac computer (or any knowledge of the apple particulars) and so can’t track the issue down further, but I was hoping someone who has seen this before might know of a quick work around that they could let me in on (short of removing the tabs of course).  Any help appreciated, and once again thanks for all the work.

 

Warm wishes,

Nigel

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
rcam | 6 Jan 2013 22:08
Picon
Favicon

Mono link to Apache

I am totally new to Mono. I was reading about it a little and I was
wondering...
Can Apache use mono to open asp.net (asp, aspx...etc) pages for webhosting ?

If yes, How do I install it and link Mono to apache V 2.4.3 on Windows?

If someone can give me some detailed instructions I would be very great full
since I am new to all of apache and mono.

Thanks

--
View this message in context: http://mono.1490590.n4.nabble.com/Mono-link-to-Apache-tp4658011.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

Petit Eric | 30 Sep 2012 11:40
Picon

DataGrid broken

Hi
My old software, Cs-Obexftp, worked like an charme, but, the last code modification of Datagrid has broken it :

30/09/2012 11:31:00: Cannot create a child list for field Table1.
  at System.Windows.Forms.BindingContext.CreateBindingManager (System.Object data_source, System.String data_member) [0x0006c] in /home/qateam/rpm/BUILD/mono-2.10.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/BindingContext.cs:124
  at System.Windows.Forms.BindingContext.get_Item (System.Object dataSource, System.String dataMember) [0x00067] in /home/qateam/rpm/BUILD/mono-2.10.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/BindingContext.cs:100
  at System.Windows.Forms.DataGridView.get_DataManager () [0x00029] in /home/qateam/rpm/BUILD/mono-2.10.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs:763
  at System.Windows.Forms.DataGridView.ClearBinding () [0x00029] in /home/qateam/rpm/BUILD/mono-2.10.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs:6104
  at System.Windows.Forms.DataGridView.ReBind () [0x00018] in /home/qateam/rpm/BUILD/mono-2.10.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs:6381
  at System.Windows.Forms.DataGridView.set_DataSource (System.Object value) [0x00099] in /home/qateam/rpm/BUILD/mono-2.10.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs:747
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.DataGridView:set_DataSource (object)
  at CsObexFtp.BluetoothAdvertising.InitializeComponent () [0x00811] in /home/eric/Projects/CobexFtp/CobexFtp/cs-obexftp/trunk/Cs-ObexFtp/Cs-ObexFtp/Forms/BluetoothAdvertising.Designer.cs:212
  at CsObexFtp.BluetoothAdvertising..ctor () [0x0000d] in /home/eric/Projects/CobexFtp/CobexFtp/cs-obexftp/trunk/Cs-ObexFtp/Cs-ObexFtp/Forms/BluetoothAdvertising.cs:19
  at (wrapper remoting-invoke-with-check) CsObexFtp.BluetoothAdvertising:.ctor ()
  at CsObexFtp.MainForm.bluetoothAdvertisingToolStripMenuItem_Click (System.Object sender, System.EventArgs e) [0x00010] in /home/eric/Projects/CobexFtp/CobexFtp/cs-obexftp/trunk/Cs-ObexFtp/Cs-ObexFtp/Forms/MainForm.cs:1457

The wole code of Cs-obexftp is aviable at sourceforge.net :
http://cs-obexftp.svn.sourceforge.net/viewvc/cs-obexftp/trunk/Cs-ObexFtp/

Sorry if i use the mailling list, but cannot remember or retrieve again the good bugzilla place.
--
 Cordially.
"Quand le gouvernement viole les droits du peuple, l’insurrection est, pour le peuple et pour chaque portion du peuple, le plus sacré des droits et le plus indispensable des devoirs."

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
nks_33 | 10 Aug 2012 15:46

Accessing Outlook Calendar API in MAC OS

Hi,

I am currently writing an application in C#.Net(Windows + Mono Develop) to
access all calendar events in my outlook. Now I want to port the application
in MAC OS using Mono. But I am getting "Microsoft.Office.Interop.Outlook"
namespace not found error in Mac. Can you please suggest me how to get rid
of this problem in MAC OS so that I can get all calendar events
(appointments, meetings etc) that I am already getting in Windows platform.

Thanks

--
View this message in context: http://mono.1490590.n4.nabble.com/Accessing-Outlook-Calendar-API-in-MAC-OS-tp4650874.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

ManuteBall | 26 Jun 2012 19:04
Picon

SQL SERVER 2008 - IDbConnection.Open exception

Hi,

I am porting an existing .net app to be ran in macosx.

Both my code and example code in(http://www.mono-project.com/SQLClient fail
with same error:

 public class Test
    {
        public Test()
        {
          string connectionString = "Server=DEV-PC\\SQLEXPRESS;" +
          "Database=DBIntranet;" +
          "User ID=user;" +
          "Password=pwd;";
            IDbConnection dbcon;

            using (dbcon = new SqlConnection(connectionString))
            {
                try
                {
                    dbcon.Open();
                }catch (Exception e)
                {
                    Clipboard.SetText(e.Message + " " + e.InnerException + " 
" + e.ToString());
                   }
             ....

This code works fine when "normal-run" in VS2010 but fails when mono-run.
Here's the exception:

An existing connection was forcibly closed by the remote host.
   System.Net.Sockets.SocketException: An existing connection was forcibly
closed by the remote host.

  at System.Net.Sockets.Socket.ReceiveFrom_nochecks_exc (System.Byte[] buf,
Int32 offset, Int32 size, SocketFlags flags, System.Net.EndPoint&
remote_end, Boolean throwOnError, System.Int32& error) [0x000be]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System\System.Net.Sockets\Socket.cs:1758 
  at System.Net.Sockets.Socket.ReceiveFrom_nochecks (System.Byte[] buf,
Int32 offset, Int32 size, SocketFlags flags, System.Net.EndPoint&
remote_end) [0x00000]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System\System.Net.Sockets\Socket.cs:1717 
  at System.Net.Sockets.Socket.ReceiveFrom (System.Byte[] buffer,
System.Net.EndPoint& remoteEP) [0x0004a]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System\System.Net.Sockets\Socket.cs:1648 
  at System.Net.Sockets.UdpClient.Receive (System.Net.IPEndPoint& remoteEP)
[0x0001d]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System\System.Net.Sockets\UdpClient.cs:332 
  at System.Data.SqlClient.SqlConnection+SqlMonitorSocket.DiscoverTcpPort
(Int32 timeoutSeconds) [0x000aa]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System.Data\System.Data.SqlClient\SqlConnection.cs:986 
  at System.Data.SqlClient.SqlConnection.DiscoverTcpPortViaSqlMonitor
(System.String ServerName, System.String InstanceName) [0x00008]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System.Data\System.Data.SqlClient\SqlConnection.cs:653 
  at System.Data.SqlClient.SqlConnection.ParseDataSource (System.String
theDataSource, System.Int32& thePort, System.String& theServerName)
[0x0007e]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System.Data\System.Data.SqlClient\SqlConnection.cs:597 
  at System.Data.SqlClient.SqlConnection.Open () [0x000c2]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System.Data\System.Data.SqlClient\SqlConnection.cs:546 
  at CeydeWM.Classes.Test..ctor () [0x0001a] in CeydeWM\Classes\Test.cs:25 

thanks guys

--
View this message in context: http://mono.1490590.n4.nabble.com/SQL-SERVER-2008-IDbConnection-Open-exception-tp4650181.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