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. General Programming
  3. Visual Basic
  4. property grid

property grid

Scheduled Pinned Locked Moved Visual Basic
helpcsharpcssdesign
7 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.
  • B Offline
    B Offline
    bhargava2409
    wrote on last edited by
    #1

    hi,i am trying to design a property grid that consisits of multiple drop downs of user defined and move those values selected to a variable in back end vb.net code and perform some matha matical calculations. But i am not able to create multiple dropdowns in single group can any one help? My main problem is i am creating multiple drop downs using class for each dropdown.i created one drop down but i can not able to create multiple. Getting error called base class have multiple definetions. code i am trying for drope down is: Imports System.ComponentModel Public Class MotoList1 : Inherits System.ComponentModel.StringConverter ''' ''' Private _Title As String Private _Show As Boolean Private _Number As Short ''' <CategoryAttribute("Other Inputs"), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute(""), _ DesignOnly(False), _ DescriptionAttribute("Enter Title for the application")> _ Public Property Title() As String Get Return _Title End Get Set(ByVal Value As String) _Title = Value End Set End Property ''' <CategoryAttribute("Other Inputs"), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute("True"), _ DesignOnly(False), _ DescriptionAttribute("Show option")> _ Public Property Show() As Boolean Get Return _Show End Get Set(ByVal Value As Boolean) _Show = Value End Set End Property ''' <CategoryAttribute("Other Inputs"), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute("0"), _ DesignOnly(False), _ DescriptionAttribute("Enter a number")> _ Public Property Number() As Short Get Return _Number End Get Set(ByVal Value As Short) _Number = Value End Set End Property Dim _Motor1in As String() = New String() {"400", "500"} Public Overloads Overrides Function GetStandardValues(ByVal context As System.ComponentModel.ITypeDescriptorContext) As System.ComponentModel.TypeConverter.StandardValuesCollection Return New StandardValuesCollection(_Motor1in) End Function ''' Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean Return True End Function ''' Public Overloads Overrides Function GetStandardValuesExclusive(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean Return True End Function ''' End Class here while am trying to create another drop down --GetStandardValues-- i got error as function can not be o

    C J 2 Replies Last reply
    0
    • B bhargava2409

      hi,i am trying to design a property grid that consisits of multiple drop downs of user defined and move those values selected to a variable in back end vb.net code and perform some matha matical calculations. But i am not able to create multiple dropdowns in single group can any one help? My main problem is i am creating multiple drop downs using class for each dropdown.i created one drop down but i can not able to create multiple. Getting error called base class have multiple definetions. code i am trying for drope down is: Imports System.ComponentModel Public Class MotoList1 : Inherits System.ComponentModel.StringConverter ''' ''' Private _Title As String Private _Show As Boolean Private _Number As Short ''' <CategoryAttribute("Other Inputs"), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute(""), _ DesignOnly(False), _ DescriptionAttribute("Enter Title for the application")> _ Public Property Title() As String Get Return _Title End Get Set(ByVal Value As String) _Title = Value End Set End Property ''' <CategoryAttribute("Other Inputs"), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute("True"), _ DesignOnly(False), _ DescriptionAttribute("Show option")> _ Public Property Show() As Boolean Get Return _Show End Get Set(ByVal Value As Boolean) _Show = Value End Set End Property ''' <CategoryAttribute("Other Inputs"), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute("0"), _ DesignOnly(False), _ DescriptionAttribute("Enter a number")> _ Public Property Number() As Short Get Return _Number End Get Set(ByVal Value As Short) _Number = Value End Set End Property Dim _Motor1in As String() = New String() {"400", "500"} Public Overloads Overrides Function GetStandardValues(ByVal context As System.ComponentModel.ITypeDescriptorContext) As System.ComponentModel.TypeConverter.StandardValuesCollection Return New StandardValuesCollection(_Motor1in) End Function ''' Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean Return True End Function ''' Public Overloads Overrides Function GetStandardValuesExclusive(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean Return True End Function ''' End Class here while am trying to create another drop down --GetStandardValues-- i got error as function can not be o

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

      You've posted a whole lot of crap here, I'm not even going to wade through it.

      bhargava2409 wrote:

      i got error as function can not be over ride

      Sounds like your problem is a lack of programming knowledge in general. It's hard to say in all of this if it's clear why you get this error, but it's obvious you're doing something wrong, on a very basic level.

      bhargava2409 wrote:

      Getting error called base class have multiple definetions

      A .NET class can only have on base class. Again, it's hard to see what you're doing based on what you posted, but you posted a lot of boiler plate stuff. Perhaps if you distill this down to the code that matters and post the actual error message. If you can't work out what code relates to the message, that's another indicator that you're out of your depth.

      Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

      B 1 Reply Last reply
      0
      • C Christian Graus

        You've posted a whole lot of crap here, I'm not even going to wade through it.

        bhargava2409 wrote:

        i got error as function can not be over ride

        Sounds like your problem is a lack of programming knowledge in general. It's hard to say in all of this if it's clear why you get this error, but it's obvious you're doing something wrong, on a very basic level.

        bhargava2409 wrote:

        Getting error called base class have multiple definetions

        A .NET class can only have on base class. Again, it's hard to see what you're doing based on what you posted, but you posted a lot of boiler plate stuff. Perhaps if you distill this down to the code that matters and post the actual error message. If you can't work out what code relates to the message, that's another indicator that you're out of your depth.

        Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

        B Offline
        B Offline
        bhargava2409
        wrote on last edited by
        #3

        Yesturday you asked me to post the whole detailes of the question with program in detailed then i posted this one to u.

        J H 2 Replies Last reply
        0
        • B bhargava2409

          hi,i am trying to design a property grid that consisits of multiple drop downs of user defined and move those values selected to a variable in back end vb.net code and perform some matha matical calculations. But i am not able to create multiple dropdowns in single group can any one help? My main problem is i am creating multiple drop downs using class for each dropdown.i created one drop down but i can not able to create multiple. Getting error called base class have multiple definetions. code i am trying for drope down is: Imports System.ComponentModel Public Class MotoList1 : Inherits System.ComponentModel.StringConverter ''' ''' Private _Title As String Private _Show As Boolean Private _Number As Short ''' <CategoryAttribute("Other Inputs"), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute(""), _ DesignOnly(False), _ DescriptionAttribute("Enter Title for the application")> _ Public Property Title() As String Get Return _Title End Get Set(ByVal Value As String) _Title = Value End Set End Property ''' <CategoryAttribute("Other Inputs"), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute("True"), _ DesignOnly(False), _ DescriptionAttribute("Show option")> _ Public Property Show() As Boolean Get Return _Show End Get Set(ByVal Value As Boolean) _Show = Value End Set End Property ''' <CategoryAttribute("Other Inputs"), _ Browsable(True), _ [ReadOnly](False), _ BindableAttribute(False), _ DefaultValueAttribute("0"), _ DesignOnly(False), _ DescriptionAttribute("Enter a number")> _ Public Property Number() As Short Get Return _Number End Get Set(ByVal Value As Short) _Number = Value End Set End Property Dim _Motor1in As String() = New String() {"400", "500"} Public Overloads Overrides Function GetStandardValues(ByVal context As System.ComponentModel.ITypeDescriptorContext) As System.ComponentModel.TypeConverter.StandardValuesCollection Return New StandardValuesCollection(_Motor1in) End Function ''' Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean Return True End Function ''' Public Overloads Overrides Function GetStandardValuesExclusive(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean Return True End Function ''' End Class here while am trying to create another drop down --GetStandardValues-- i got error as function can not be o

          J Offline
          J Offline
          Jon_Boy
          wrote on last edited by
          #4

          There's no need to repost the same question over and over. In fact, yesterday's still shows on the first page (w/ 50 items displayed). If there's no replies, then we probably don't know or the question was completely clear, in which fact, you should reply to add info to the orig post. Not repost the same info again in a new thread.

          "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

          B 1 Reply Last reply
          0
          • B bhargava2409

            Yesturday you asked me to post the whole detailes of the question with program in detailed then i posted this one to u.

            J Offline
            J Offline
            Jon_Boy
            wrote on last edited by
            #5

            Your code looks fairly standard as far as property grids go. My suggestion: Create a new project with a property grid that contains just one combobox setting. Get that to work and then expand the other settings from there. Start small and get a working grid, then go crazy.

            "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

            1 Reply Last reply
            0
            • B bhargava2409

              Yesturday you asked me to post the whole detailes of the question with program in detailed then i posted this one to u.

              H Offline
              H Offline
              Henry Minute
              wrote on last edited by
              #6

              Your problem is important to you, it does not matter to most of us. Therefore you have to make it easy for us to help you. Use <pre> tags around your code, so that it can be formatted properly, you know, with indentation and so on. Only post the parts that are obviously connected to the problem. Post the exact error message, if there is one and indicate which line causes the error. The easiest way to format your code is to move the cursor to a blank line in the 'reply text box' and click the 'code block' widget (look below the reply box), this will put the <pre> tags in place for you. Then copy your code in your editor and paste it between the tags, all the formatting will be preserved.

              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

              1 Reply Last reply
              0
              • J Jon_Boy

                There's no need to repost the same question over and over. In fact, yesterday's still shows on the first page (w/ 50 items displayed). If there's no replies, then we probably don't know or the question was completely clear, in which fact, you should reply to add info to the orig post. Not repost the same info again in a new thread.

                "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

                B Offline
                B Offline
                bhargava2409
                wrote on last edited by
                #7

                thanks every one for u r replays.I got solution for that. ;)

                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