Results 1 to 11 of 11

Thread: VB on Linux

  1. #1

    Thread Starter
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    VB on Linux

    I'd like to hear if anyone has any Visual Basic apps running on Linux using Mono. I'd be curious to see app screen shots, code, and info on what issues you had.

    Brad!
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: VB on Linux

    Yeah I have. I'm preparing a tutorial anyway. I'll post it in a day or two.
    I don't live here any more.

  3. #3
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    Re: VB on Linux

    I don't have any screen shots right now, but the biggest issue by far that I have seen is that sometimes programmers will do something in a windows-specific way when an alternative exists, usually because it's easier.

    The first example that jumps to mind is dealing with file paths -- if you write some code (C#) like:

    Code:
    new FileStream("SomeFolder\\data.xml");
    // or
    path = this_path + @"\" + "data.xml";
    this is going to cause a problem running under Linux, where the '/' character is used to separate directories. Appropriate code would be:

    Code:
    path = Path.Combine(this_path, "data.xml");
    // or
    path = this_path + Path.DirectorySeparatorChar + "data.xml"
    //  etc.
    Another issue is that file names under *nix systems are case sensitive. The files 'README' 'ReadMe' and 'readme' can all coexist in the same directory. So if a programmer refers to a file as "MyFile.txt" once and "myfile.txt" later, strange behavior will occur.
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  4. #4
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Re: VB on Linux

    Ubuntu users should avoid the mono package from repo and instead use the Linux Installer for x86 from this page .This installs the latest package from mono.

    Also useful is the Mono Analyzer tool that finds out porting issues with your project.

    Applications built using gtk# on Linux require the gtksharp runtime to run under windows.

    The monodevelop IDE is pretty much easy to use and easily converts VS.2003 projects to VS.2005 but the widgets were a bit buggy esp. the way they required containers to be added first.

    ps:waiting anxiously for woss's tuto's.
    __________________
    ________________0îîî___
    ___îîî0________(___)____
    __(___)_________) _/_____
    ___\_ (_________(_/______
    ____\_)_________________

  5. #5
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: VB on Linux

    If you're doing .NET development on linux, try to stay away from using the System.Windows.Forms namespace. It has less support on mono and there are plenty of better alternatives, GTK# coming to mind here. It's got a different style to the SWF way of creating a GUI, but that's half the fun in learning something new
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  6. #6

    Thread Starter
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: VB on Linux

    Quote Originally Posted by tr333
    If you're doing .NET development on linux, try to stay away from using the System.Windows.Forms namespace. It has less support on mono and there are plenty of better alternatives, GTK# coming to mind here. It's got a different style to the SWF way of creating a GUI, but that's half the fun in learning something new

    What does this do if you want to create IL that will run on both windows and linux? Wouldn't it be best to stick to .NET Framework classes if you want cross platform compatability?

  7. #7
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: VB on Linux

    You can get GTK for Windows.
    I don't live here any more.

  8. #8
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: VB on Linux

    Quote Originally Posted by brad jones
    What does this do if you want to create IL that will run on both windows and linux? Wouldn't it be best to stick to .NET Framework classes if you want cross platform compatability?
    You can download GTK# for Windows.

    EDIT: These apps aren't written in .NET, but Pidgin and Gimp both use Gtk on their windows versions.
    Last edited by tr333; Jun 12th, 2007 at 01:59 PM.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  9. #9
    Hyperactive Member xxarmoxx's Avatar
    Join Date
    Mar 2007
    Posts
    378

    Re: VB on Linux

    I just installed mono on my mac, how do I create apps?

  10. #10
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: VB on Linux

    Quote Originally Posted by xxarmoxx
    I just installed mono on my mac, how do I create apps?
    You might find an IDE for C# on OSX if you search google, but I never bothered to look. Compile your code for .NET1.1 with the "mcs" (C#) or "mbas" (VB) cmdline programs. Use the "gmcs" program for compiling .NET2.0 code. Then create a .app file for your program with the "macpack" utility.

    Mono:OSX
    Last edited by tr333; Aug 16th, 2007 at 10:28 PM.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  11. #11
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: VB on Linux

    Mono Migration Analyzer - A tool to help you identify issues when porting .NET apps to Mono.

    Guide: Porting Winforms Applications - A guide on porting Winforms apps to Mono.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width