SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

C# Windows App Source code changed incorrectly after changing the design

Last post 06-30-2009 11:23 AM by graveen. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-29-2009 11:47 PM

    • cdc
    • Not Ranked
    • Joined on 06-29-2009
    • Posts 1

    C# Windows App Source code changed incorrectly after changing the design

    I created a new Windows application and added the following source...

    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Windows.Forms;

    namespace TestBug
    {
        public partial class MainForm : Form
        {
            int[,] numbers;

            public MainForm()
            {
                numbers = new int[2,2];
                InitializeComponent();
            }
        }
    }

    I switch to the design view, changed something, saved, returned to the source view, and my source looked like this:

    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Windows.Forms;

    namespace TestBug
    {
        public partial class MainForm : Form
        {
            int[ ] numbers;       // <---- no space between the brackets

            public MainForm()
            {
                numbers = new int[2,2];
                InitializeComponent();
            }
        }
    }

    I have been able to repeat this with properties of various types and access levels, and it will happen with all two-deminsional array properties in the class. It also occurs whether I change the design in MainForm.cs or MainForm.Designer.cs

    SharpDevelop Version : 3.0.0.3800
    .NET Version         : 2.0.50727.3074
    OS Version           : Microsoft Windows NT 6.0.6001 Service Pack 1
    Current culture      : English (United States) (en-US)
    Working Set Memory   : 136080kb
    GC Heap Memory       : 34451kb

  • 06-30-2009 11:23 AM In reply to

    Re: C# Windows App Source code changed incorrectly after changing the design

    Hi,

     

    This bug is fixed in SD3.1beta

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.