CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Location
    Texas
    Posts
    645

    DataGridViewColumnHeaderCell attempts to open with a designer

    I have a class derived from a DataGridViewColumnHeaderCell. When I attempt to open the file for viewing, VS attempts to open the file with a designer.

    I'm not sure what designates the file as having a designer. The DataGridViewColumnHeaderCell doesn't have one.

    Is there a way to prevent VS from trying to open the file with a designer?

    My Imports are:
    Code:
    Imports System
    Imports System.ComponentModel
    Imports System.Windows.Forms.VisualStyles
    Imports System.Reflection
    I've attached my source file.
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2001
    Location
    Texas
    Posts
    645

    DataGridViewColumnHeaderCell attempts to open with a designer

    There is a ListBox as a Private Internal class to my class.

    This is what VS is seeing and is causing the error.

    I can do one of the following:
    1. Put a simple class derived from Control before my class in its file
    2. Move the internal ListBox class to a different file.
    3. Make a designer or attach one to my class.

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

Featured