ZAX | 13 Feb 2012 22:57
Picon
Favicon

How to get SQLite to Work w Mono based on MVS developed WinForms app?

Hi all!

I'm almost finished with an application of mine that I developed with M
Visual Studio 2010 using c#.

The software uses a lot of SQLite transactions, all of which work perfect
compiled and run under Windows.
Now I try to make my app multiplatform, using Mono (for the first time). And
I can't seem to get Mono work with SQLite properly.

Run w Mono basically the first of almost any type of SQLite transaction
makes the app instacrashquit.:(

I have a reference for
using System.Data.SQLite;

as a starting point.

Mono adapter tool MoMa throws 100 errors about this current .dll

I downloaded a dll called 
Mono.Data.Sqlite;
but as funny as it seems, MoMa throws around 100 other problems about this
.dll too!

I'm sure I'm missing something as I'm pretty inexperienced yet especially w
Mono, porting and other systems than Win.

Please help me what to do next!

(Continue reading)

treendy | 16 Feb 2012 14:04
Picon

Help needed publishing winforms c# project to mac using mono?

Hello,

Really struggling here, searched all over google and having no luck.

I have written a simple form app in windows vs 2010 express (click a button
and a label text is changed to "hello, button clicked" now i want this to be
able to run on a MAC

Im so far guessing how to do this, i have created the project within visual
studio 2010 c# express then when finished opened the project in Mono

From Mono i can run and test this project and it works.

Now, how do i publich my mono project so there is a setup file (or install
file etc...) and how do i make this setup file work on a MAC?

Thank you in advance 

--
View this message in context: http://mono.1490590.n4.nabble.com/Help-needed-publishing-winforms-c-project-to-mac-using-mono-tp4393850p4393850.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 | 16 Feb 2012 20:47
Picon

Re: Help needed publishing winforms c# project to mac using mono?

I don t really know mac, but, with MonoDevelop or vs, yu generate the exe, then with an script or directly in an console, yu make : mono ./Myapp.exe, after what, i think mac is just an archive decompressed somewhere for installation?


2012/2/16 treendy <darren <at> treendweb.co.uk>
Hello,

Really struggling here, searched all over google and having no luck.

I have written a simple form app in windows vs 2010 express (click a button
and a label text is changed to "hello, button clicked" now i want this to be
able to run on a MAC

Im so far guessing how to do this, i have created the project within visual
studio 2010 c# express then when finished opened the project in Mono

From Mono i can run and test this project and it works.

Now, how do i publich my mono project so there is a setup file (or install
file etc...) and how do i make this setup file work on a MAC?

Thank you in advance

--
View this message in context: http://mono.1490590.n4.nabble.com/Help-needed-publishing-winforms-c-project-to-mac-using-mono-tp4393850p4393850.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



--
 Cordially.

windows take you more($), Linux give you more!!
Political Power cannot be wisdom!

 Small Eric Quotations of the days:
 ---------------------------------------------------------------------------
 I have no special talents. I am only passionately curious

 ---------------------------------------------------------------------------
Un intellectuel assis va moins loin qu'un con qui marche!!!
 ---------------------------------------------------------------------------

Déclaration des Droits de l’Homme et du Citoyen de 1793 Art 35 :


"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
Miljenko Cvjetko | 17 Feb 2012 09:54
Favicon

Re: Help needed publishing winforms c# project to mac using mono?

Hi

  • just ot run
    • install mono on MacOSX
    • copy Your exe (lets say app.exe) together with assemblies needed to Mac
    • execute: mono app.exe
  • to develop
    • install mono on MacOSX
    • install MonoDevelop on MacOSX (Monodevelop installation will install mono I think)
    • open solution/project with MD
    • that's it!

There is no setup.exe.
Mono's idea is what .net was at the beginning: Deployment by xcopy/cp!
No need for setup.exe, though packaging is possible...

regards

mel

On 2012.02.16 14:04, treendy wrote:
Hello, Really struggling here, searched all over google and having no luck. I have written a simple form app in windows vs 2010 express (click a button and a label text is changed to "hello, button clicked" now i want this to be able to run on a MAC Im so far guessing how to do this, i have created the project within visual studio 2010 c# express then when finished opened the project in Mono From Mono i can run and test this project and it works. Now, how do i publich my mono project so there is a setup file (or install file etc...) and how do i make this setup file work on a MAC? Thank you in advance -- View this message in context: http://mono.1490590.n4.nabble.com/Help-needed-publishing-winforms-c-project-to-mac-using-mono-tp4393850p4393850.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


-- Miljenko Cvjetko dipl.ing. ET Direktor/CEO Projektant rješenja/Solution Architect Razvojni programer/Senior developer Voditelj projekta/Project Manager IX južna obala 13 Kajzerica Zagreb T: 385 1 7775555 M: 385 91 557 447 3 F: 385 1 7779556 e: mcvjetko <at> holisticware.net w: http://www.holisticware.net
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
savita | 22 Feb 2012 13:54

winform drag and drop functionality

Hi, We have developed a drag and drop functionality in .net win form using c#. drag sourse is list box drag target is textbox. It doesn't give any error when compiled in mono. However the drag and drop functionality doesn't work in mono. The text in texbox set as a blank when dragged a list item from listbox. It works fine in .net. Kindly help and let me know what I am missing. I have set the this.textBox1.AllowDrop = true; this.listBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.listBox1_MouseDown); this.textBox1.DragDrop += new System.Windows.Forms.DragEventHandler(this.textBox1_DragDrop); this.textBox1.DragEnter += new System.Windows.Forms.DragEventHandler(this.textBox1_DragEnter); -------------------------------------------- public Form1() { InitializeComponent(); listBox1.Items.Add("ABC"); listBox1.Items.Add("XYZ"); listBox1.Items.Add("AAA"); } private void textBox1_DragEnter(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.Text)) e.Effect = DragDropEffects.Copy; else e.Effect = DragDropEffects.None; } private void textBox1_DragDrop(object sender, DragEventArgs e) { textBox1.Text = (string)e.Data.GetData(DataFormats.StringFormat); ; } private void listBox1_MouseDown(object sender, MouseEventArgs e) { listBox1.DoDragDrop(listBox1.SelectedItem.ToString(), DragDropEffects.Copy); } --------------------------------------------------------- Note : I have also refered the 'Dragging Text' code from http://zetcode.com/tutorials/monowinformstutorial/dragdrop/ . This also doesn't work when compiled in mono.

View this message in context: winform drag and drop functionality
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
Stifu | 22 Feb 2012 14:13
Picon
Favicon
Gravatar

Re: winform drag and drop functionality

Must be a Mono bug, then. It might be OS specific, but you didn't specify the
OS.

PS: Note that you don't need to recompile your app with Mono in order to run
it with Mono.

savita wrote
> 
> Hi,
> 
> We have developed a drag and drop functionality in .net win form using c#. 
> drag sourse is list box
> drag target is textbox.
> 
> It doesn't give any error when compiled in mono. However the drag and drop
> functionality doesn't work in mono. The text in texbox set as a blank when
> dragged a list item from listbox. It works fine in .net.
> Kindly help and let me know what I am missing.
> 
> I have set the 
> 
> this.textBox1.AllowDrop = true;
> this.listBox1.MouseDown += new
> System.Windows.Forms.MouseEventHandler(this.listBox1_MouseDown);
> this.textBox1.DragDrop += new
> System.Windows.Forms.DragEventHandler(this.textBox1_DragDrop);
> this.textBox1.DragEnter += new
> System.Windows.Forms.DragEventHandler(this.textBox1_DragEnter);
> --------------------------------------------
>  public Form1()
>         {
>             InitializeComponent();
>             listBox1.Items.Add("ABC");
>             listBox1.Items.Add("XYZ");
>             listBox1.Items.Add("AAA");
>         }
> 
>         private void textBox1_DragEnter(object sender, DragEventArgs e)
>         {
>             if (e.Data.GetDataPresent(DataFormats.Text))
>                 e.Effect = DragDropEffects.Copy;
>             else
>                 e.Effect = DragDropEffects.None;
> 
>         }        
> 
>         private void textBox1_DragDrop(object sender, DragEventArgs e)
>         {
> 
>             textBox1.Text =
> (string)e.Data.GetData(DataFormats.StringFormat); ;
>          
>         }
> 
> 
> 
>         private void listBox1_MouseDown(object sender, MouseEventArgs e)
>         {
>             
>             listBox1.DoDragDrop(listBox1.SelectedItem.ToString(),
> DragDropEffects.Copy);
>          
> 
>         }
> ---------------------------------------------------------
> 
> Note : I have also refered the 'Dragging Text' code from
> http://zetcode.com/tutorials/monowinformstutorial/dragdrop/ . This also
> doesn't work when compiled in mono.
> 

--
View this message in context: http://mono.1490590.n4.nabble.com/winform-drag-and-drop-functionality-tp4410189p4410231.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

savita | 22 Feb 2012 17:50

Re: winform drag and drop functionality

Thank you for quick reply. 
OS is windows XP.
The application is developed in VS2010. Installed Mono tools for visual
studio 2010 so that we can run the application in mono.
http://www.mono-project.com/GettingStartedWithMonoVS#Download_Mono_for_Windows_to_Run.2FDebug_Locally

Also opened and run the application in monodevelop. Drag and drop
functionality is not working.

--
View this message in context: http://mono.1490590.n4.nabble.com/winform-drag-and-drop-functionality-tp4410189p4410983.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

Stifu | 23 Feb 2012 11:36
Picon
Favicon
Gravatar

Re: winform drag and drop functionality

May be this bug: https://bugzilla.novell.com/show_bug.cgi?id=462687
Feel free to repost this bug on the new bugzilla
(https://bugzilla.xamarin.com/) so it gets more attention.

savita wrote
> 
> Thank you for quick reply. 
> OS is windows XP.
> The application is developed in VS2010. Installed Mono tools for visual
> studio 2010 so that we can run the application in mono.
> http://www.mono-project.com/GettingStartedWithMonoVS#Download_Mono_for_Windows_to_Run.2FDebug_Locally
> 
> Also opened and run the application in monodevelop. Drag and drop
> functionality is not working.
> 

--
View this message in context: http://mono.1490590.n4.nabble.com/winform-drag-and-drop-functionality-tp4410189p4413502.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