tbekasiewicz Posted May 10, 2004 Posted May 10, 2004 I found in VS.NET 2002 and 2003 big BUG. Try to write one Property definition in VB.NET. Such like this: '-------Code VB.NET----------- Public Class MyClass Private _strMyProperty As String Public Property MyProperty As String Get Return Me._strMyProperty End Get Set (ByVal Value As String) Me._strMyProperty = Value End Set End Property End Class '------------------ Next try to build the region on this property in this way: '-------Code VB.NET----------- Public Class MyClass Private _strMyProperty As String #Region " Public Property MyProperty As String " Public Property MyProperty As String Get Return Me._strMyProperty End Get Set (ByVal Value As String) Me._strMyProperty = Value End Set End Property #End Region End Class '------------------ Collapse this Region which contains the Property definition. If you made the Region on the Property definition try to write some different property upper to this Property such like this: '-------Code VB.NET----------- Public Class MyClass Private _strMyProperty As String Private _strMyNextProperty As String Public Property MyNextProperty As String Get Return Me._strMyNextProperty End Get Set Me._strMyNextProperty End Set End Property #Region " Public Property MyProperty As String " Public Property MyProperty As String Get Return Me._strMyProperty End Get Set (ByVal Value As String) Me._strMyProperty = Value End Set End Property #End Region End Class '------------------ In my instalation of VS.NET 2003 I am not able to finish the definition of the property which i defined as MyNextProperty. I have the message from VS.NET 2003. After I write the text: Public Property MyNextProperty As String and I press the enter the VS.NET 2003 Editor dosen't finish the definition and the intellisence dosen't work after I print the definition of Get by myself. Public Property MyNextProperty As String Get Me. '<- Intellisence dosen't work I send this BUG to the microsoft in Poland. They do nothing. I told about this BUG peoples from microsoft which were on the Cebit 2004 in Hannower and they do nothing. With Regards Tomasz Bekasiewicz tbekasiewicz@poczta.onet.pl Quote
Administrators PlausiblyDamp Posted May 10, 2004 Administrators Posted May 10, 2004 Hardly a BIG BUG though is it? All you need to do is type the 'end property' bit yourself and things work as normal. A bit of an annoyance admittedly.... Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.