Author Topic: C# Form tag issue  (Read 3356 times)

JakeMontgomery

  • Community Member
  • Posts: 79
  • Hero Points: 8
C# Form tag issue
« on: December 14, 2006, 10:02:06 pm »
I had been using SlickEdit for C++, but just switched to C#.  for some reason, when I create a Form subclass, as in the code below, SlickEdit thinks it is derived from System.Web.UI.Mobile.Form.  This is particularly annoying when I try to use "Override Method".  Clearly from the code, I am only "using" System.Windows.Forms, so I would expect "Form" to be resolved correctly by SE. 

Code: [Select]
using System.Windows.Forms;

namespace MyTest
{
public class MyForm : Form {}

class Program
{
static void Main(string[] args) {}
}
}

If I modify MyForm to explicitly derive from System.Windows.Forms.Form, then SlickEdit will use the correct base class - but this is a giant pain, and a waste of keystrokes.  I am assuming that the SE c# parser looks at the "using" directives when deciding how to resolve names, and that something is wrong with my system.  Am I correct that this is not the general experience? 

I am using Windows SE 11.0.2, with the cumulative hotfix pack from 11/8/06.  I have used the "Auto Tag.." option to rebuild the C# tag files (v 2.0.50727) but that did not help.   

Any ideas would be appreciated.