getting VS intellisense to suggest classes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lekkerverjaarfrikkie
    New Member
    • Jul 2008
    • 2

    getting VS intellisense to suggest classes

    i have create a class
    Code:
       
    public class foo
    {
    private int _status;
     
    public int status
    {
    get { return _status;}
    set {_status = value;}
    }
    }
    for which i have created an enum
    public enum foo_Status
    {
    Included = 1,
    Excluded = 2
    }
    now i want the compiler to suggest foo_Status as the status when i type

    if(foo.status ==

    how do i do this..
    Last edited by DrBunchman; Jul 23 '08, 09:42 AM. Reason: Added [Code] Tags - Please use the '#' button
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Hi lekkerverjaarfr ikkie,

    Welcome to Bytes.com! I hope you find the site useful.

    You've posted your question in the ASP Forum which is for Classic ASP only - I've moved it for you but in future please post all ASP.NET questions in the .NET Forum.

    Also, please wrap your code with [CODE] tags when posting by using the # button in the edit window - it makes it much easier for everyone to read.

    Good luck finding an answer to your query.

    Dr B

    Comment

    • lekkerverjaarfrikkie
      New Member
      • Jul 2008
      • 2

      #3
      lol ja thanks.
      i only got to reading the way to submit posts after the first post.

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        You need to define _status and status as type foo_Status for it to suggest the enum values.

        Comment

        Working...