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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. Custom Control Property

Custom Control Property

Scheduled Pinned Locked Moved The Lounge
questioncssdesignhelp
5 Posts 4 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.
  • P Offline
    P Offline
    pjholliday
    wrote on last edited by
    #1

    I have a control that includes a few buttons, a drop down and a text box. There is a property called DestinationGrid which is set at design time to be the grid the control works with. I also have another property called SelectedRow which is used to set the on the grid. Because the grid doesnt have any rows I get an error when I view the form at design time saying that SelectedRow - Object not set to an instance ... How can I stop thsi error occuring? I could remove the property and use a SetSelectedRow() and GetSelectedRow() method, but would like to use a property. Any suggestions? Thanks

    D 1 Reply Last reply
    0
    • P pjholliday

      I have a control that includes a few buttons, a drop down and a text box. There is a property called DestinationGrid which is set at design time to be the grid the control works with. I also have another property called SelectedRow which is used to set the on the grid. Because the grid doesnt have any rows I get an error when I view the form at design time saying that SelectedRow - Object not set to an instance ... How can I stop thsi error occuring? I could remove the property and use a SetSelectedRow() and GetSelectedRow() method, but would like to use a property. Any suggestions? Thanks

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      pjholliday wrote: How can I stop thsi error occuring? Simple: ask on the C# or the .NET forum. I bet there are people there willing to answer your question. Did you actually read those big, red letters when you posted here? Yes, even I am blogging now!

      A 1 Reply Last reply
      0
      • D Daniel Turini

        pjholliday wrote: How can I stop thsi error occuring? Simple: ask on the C# or the .NET forum. I bet there are people there willing to answer your question. Did you actually read those big, red letters when you posted here? Yes, even I am blogging now!

        A Offline
        A Offline
        Anders Molin
        wrote on last edited by
        #3

        Chris should make some AI that can detect programming questions, and tell the poster to go somewhere else ;) - Anders My Photos

        WDevs - The worlds first DSP, free blog space, email and more

        D J 2 Replies Last reply
        0
        • A Anders Molin

          Chris should make some AI that can detect programming questions, and tell the poster to go somewhere else ;) - Anders My Photos

          WDevs - The worlds first DSP, free blog space, email and more

          D Offline
          D Offline
          Daniel Turini
          wrote on last edited by
          #4

          I bet spambayes could be used for this. If people voted "this is a programming question", spambayes would be able to quickly learn how to detect them. Not to mention that only top-level posts are programming questions. Yes, even I am blogging now!

          1 Reply Last reply
          0
          • A Anders Molin

            Chris should make some AI that can detect programming questions, and tell the poster to go somewhere else ;) - Anders My Photos

            WDevs - The worlds first DSP, free blog space, email and more

            J Offline
            J Offline
            Jon Pawley
            wrote on last edited by
            #5

            Isn't that what Paul was employed for? ;) Jon

            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