Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. DataGridViewColumnHeaderCell attempts to open with a designer

DataGridViewColumnHeaderCell attempts to open with a designer

Scheduled Pinned Locked Moved Visual Basic
visual-studioquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cvogt61457
    wrote on last edited by
    #1

    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:

    Imports System
    Imports System.ComponentModel
    Imports System.Windows.Forms.VisualStyles
    Imports System.Reflection

    C 1 Reply Last reply
    0
    • C cvogt61457

      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:

      Imports System
      Imports System.ComponentModel
      Imports System.Windows.Forms.VisualStyles
      Imports System.Reflection

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I guess you've created a user control derived from that class. If you create a vanilla class derived from that class, instead of choosing new user control, that won't occur.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      C 1 Reply Last reply
      0
      • C Christian Graus

        I guess you've created a user control derived from that class. If you create a vanilla class derived from that class, instead of choosing new user control, that won't occur.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        C Offline
        C Offline
        cvogt61457
        wrote on last edited by
        #3

        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. Thanks for the help.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups