Listview columnheader question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rb

    #1

    Listview columnheader question

    Hi All,

    Is there a property or method to keep the headercolumns from being
    resized by the user
    for a listview?

    I am using Visual Basic in Visual Studio . net 2005

    Thank you.

    rb

  • Claes Bergefall

    #2
    Re: Listview columnheader question

    A bit of WndProc overriding should do the trick:


    /claes

    "rb" <rblosat@comcas t.netwrote in message
    news:B9WdnVx0RO r3kFbZnZ2dnUVZ_ qqdnZ2d@comcast .com...
    Hi All,
    >
    Is there a property or method to keep the headercolumns from being resized
    by the user
    for a listview?
    >
    I am using Visual Basic in Visual Studio . net 2005
    >
    Thank you.
    >
    rb
    >

    Comment

    • JR

      #3
      Re: Listview columnheader question

      I don't get an error when I import this code in 2003 so I think it must work
      also in 2003.

      I get the message : Me.lstPartijen. WndProc = &H4E


      Jan


      How do I override the listviews property
      "Claes Bergefall" <louplou@nospam .nospamschreef in bericht
      news:Os7EVRLtGH A.1888@TK2MSFTN GP03.phx.gbl...
      >A bit of WndProc overriding should do the trick:

      >
      /claes
      >
      "rb" <rblosat@comcas t.netwrote in message
      news:B9WdnVx0RO r3kFbZnZ2dnUVZ_ qqdnZ2d@comcast .com...
      >Hi All,
      >>
      >Is there a property or method to keep the headercolumns from being
      >resized by the user
      >for a listview?
      >>
      >I am using Visual Basic in Visual Studio . net 2005
      >>
      >Thank you.
      >>
      >rb
      >>
      >
      >

      Comment

      • JR

        #4
        Re: Listview columnheader question

        sorry wrong message.
        I get the messageon line Me.lstPartijen. WndProc = &H4E. Is not accesseble
        becouse it is protected

        Jan



        "JR" <x.x@x.x.schree f in bericht
        news:Wvszg.5670 70$Eb7.13421621 @phobos.telenet-ops.be...
        >I don't get an error when I import this code in 2003 so I think it must
        >work also in 2003.
        >
        I get the message : Me.lstPartijen. WndProc = &H4E
        >
        >
        Jan
        >
        >
        How do I override the listviews property
        "Claes Bergefall" <louplou@nospam .nospamschreef in bericht
        news:Os7EVRLtGH A.1888@TK2MSFTN GP03.phx.gbl...
        >>A bit of WndProc overriding should do the trick:
        >http://groups.google.com/group/micro...fbdea8e5?hl=sv
        >>
        > /claes
        >>
        >"rb" <rblosat@comcas t.netwrote in message
        >news:B9WdnVx0R Or3kFbZnZ2dnUVZ _qqdnZ2d@comcas t.com...
        >>Hi All,
        >>>
        >>Is there a property or method to keep the headercolumns from being
        >>resized by the user
        >>for a listview?
        >>>
        >>I am using Visual Basic in Visual Studio . net 2005
        >>>
        >>Thank you.
        >>>
        >>rb
        >>>
        >>
        >>
        >
        >

        Comment

        • Claes Bergefall

          #5
          Re: Listview columnheader question

          That line doesn't make any sense. WndProc is a protected method. You can't
          assign anything to it.

          You need to use an inherited ListView. Did you copy the code in the link I
          posted?

          /claes

          "JR" <x.x@x.x.wrot e in message
          news:5Dszg.5670 86$gF.13256755@ phobos.telenet-ops.be...
          sorry wrong message.
          I get the messageon line Me.lstPartijen. WndProc = &H4E. Is not accesseble
          becouse it is protected
          >
          Jan
          >
          >
          >
          "JR" <x.x@x.x.schree f in bericht
          news:Wvszg.5670 70$Eb7.13421621 @phobos.telenet-ops.be...
          >>I don't get an error when I import this code in 2003 so I think it must
          >>work also in 2003.
          >>
          >I get the message : Me.lstPartijen. WndProc = &H4E
          >>
          >>
          >Jan
          >>
          >>
          >How do I override the listviews property
          >"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
          >news:Os7EVRLtG HA.1888@TK2MSFT NGP03.phx.gbl.. .
          >>>A bit of WndProc overriding should do the trick:
          >>http://groups.google.com/group/micro...fbdea8e5?hl=sv
          >>>
          >> /claes
          >>>
          >>"rb" <rblosat@comcas t.netwrote in message
          >>news:B9WdnVx0 ROr3kFbZnZ2dnUV Z_qqdnZ2d@comca st.com...
          >>>Hi All,
          >>>>
          >>>Is there a property or method to keep the headercolumns from being
          >>>resized by the user
          >>>for a listview?
          >>>>
          >>>I am using Visual Basic in Visual Studio . net 2005
          >>>>
          >>>Thank you.
          >>>>
          >>>rb
          >>>>
          >>>
          >>>
          >>
          >>
          >
          >

          Comment

          • JR

            #6
            Re: Listview columnheader question

            Yes. I copyed into a new class module.

            Must I place it somewhere else?

            Jan


            "Claes Bergefall" <louplou@nospam .nospamschreef in bericht
            news:OWRgKoXtGH A.1216@TK2MSFTN GP03.phx.gbl...
            That line doesn't make any sense. WndProc is a protected method. You can't
            assign anything to it.
            >
            You need to use an inherited ListView. Did you copy the code in the link I
            posted?
            >
            /claes
            >
            "JR" <x.x@x.x.wrot e in message
            news:5Dszg.5670 86$gF.13256755@ phobos.telenet-ops.be...
            >sorry wrong message.
            >I get the messageon line Me.lstPartijen. WndProc = &H4E. Is not
            >accesseble becouse it is protected
            >>
            >Jan
            >>
            >>
            >>
            >"JR" <x.x@x.x.schree f in bericht
            >news:Wvszg.567 070$Eb7.1342162 1@phobos.telene t-ops.be...
            >>>I don't get an error when I import this code in 2003 so I think it must
            >>>work also in 2003.
            >>>
            >>I get the message : Me.lstPartijen. WndProc = &H4E
            >>>
            >>>
            >>Jan
            >>>
            >>>
            >>How do I override the listviews property
            >>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
            >>news:Os7EVRLt GHA.1888@TK2MSF TNGP03.phx.gbl. ..
            >>>>A bit of WndProc overriding should do the trick:
            >>>http://groups.google.com/group/micro...fbdea8e5?hl=sv
            >>>>
            >>> /claes
            >>>>
            >>>"rb" <rblosat@comcas t.netwrote in message
            >>>news:B9WdnVx 0ROr3kFbZnZ2dnU VZ_qqdnZ2d@comc ast.com...
            >>>>Hi All,
            >>>>>
            >>>>Is there a property or method to keep the headercolumns from being
            >>>>resized by the user
            >>>>for a listview?
            >>>>>
            >>>>I am using Visual Basic in Visual Studio . net 2005
            >>>>>
            >>>>Thank you.
            >>>>>
            >>>>rb
            >>>>>
            >>>>
            >>>>
            >>>
            >>>
            >>
            >>
            >
            >

            Comment

            • Claes Bergefall

              #7
              Re: Listview columnheader question

              No that's fine.

              You say you get an error on the line Me.lstPartijen. WndProc = &H4E. Where
              does that line come from? Show your code

              /claes


              "JR" <x.x@x.x.wrot e in message
              news:0BNzg.5700 28$1P7.13477914 @phobos.telenet-ops.be...
              Yes. I copyed into a new class module.
              >
              Must I place it somewhere else?
              >
              Jan
              >
              >
              "Claes Bergefall" <louplou@nospam .nospamschreef in bericht
              news:OWRgKoXtGH A.1216@TK2MSFTN GP03.phx.gbl...
              >That line doesn't make any sense. WndProc is a protected method. You
              >can't assign anything to it.
              >>
              >You need to use an inherited ListView. Did you copy the code in the link
              >I posted?
              >>
              > /claes
              >>
              >"JR" <x.x@x.x.wrot e in message
              >news:5Dszg.567 086$gF.13256755 @phobos.telenet-ops.be...
              >>sorry wrong message.
              >>I get the messageon line Me.lstPartijen. WndProc = &H4E. Is not
              >>accesseble becouse it is protected
              >>>
              >>Jan
              >>>
              >>>
              >>>
              >>"JR" <x.x@x.x.schree f in bericht
              >>news:Wvszg.56 7070$Eb7.134216 21@phobos.telen et-ops.be...
              >>>>I don't get an error when I import this code in 2003 so I think it must
              >>>>work also in 2003.
              >>>>
              >>>I get the message : Me.lstPartijen. WndProc = &H4E
              >>>>
              >>>>
              >>>Jan
              >>>>
              >>>>
              >>>How do I override the listviews property
              >>>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
              >>>news:Os7EVRL tGHA.1888@TK2MS FTNGP03.phx.gbl ...
              >>>>>A bit of WndProc overriding should do the trick:
              >>>>http://groups.google.com/group/micro...fbdea8e5?hl=sv
              >>>>>
              >>>> /claes
              >>>>>
              >>>>"rb" <rblosat@comcas t.netwrote in message
              >>>>news:B9WdnV x0ROr3kFbZnZ2dn UVZ_qqdnZ2d@com cast.com...
              >>>>>Hi All,
              >>>>>>
              >>>>>Is there a property or method to keep the headercolumns from being
              >>>>>resized by the user
              >>>>>for a listview?
              >>>>>>
              >>>>>I am using Visual Basic in Visual Studio . net 2005
              >>>>>>
              >>>>>Thank you.
              >>>>>>
              >>>>>rb
              >>>>>>
              >>>>>
              >>>>>
              >>>>
              >>>>
              >>>
              >>>
              >>
              >>
              >
              >

              Comment

              • JR

                #8
                Re: Listview columnheader question

                that is the line: Me.lstPartijen. WndProc = &H4E

                the error is a blue underline in the vb editor

                Private Sub FrmRonde_Load(B yVal sender As System.Object, ByVal e As
                System.EventArg s) Handles MyBase.Load
                Me.lstPartijen. WndProc = &H4E

                End Sub

                where lstpartijen is mij listview. It has 3 columns. I don't want them to
                change the size. the column headers are Nonclickable
                How must a do it. Can you give me some extra code, how to set each column
                not to change? The class has no underline/error

                Jan


                "Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                news:egrVKBktGH A.4160@TK2MSFTN GP06.phx.gbl...
                No that's fine.
                >
                You say you get an error on the line Me.lstPartijen. WndProc = &H4E. Where
                does that line come from? Show your code
                >
                /claes
                >
                >
                "JR" <x.x@x.x.wrot e in message
                news:0BNzg.5700 28$1P7.13477914 @phobos.telenet-ops.be...
                >Yes. I copyed into a new class module.
                >>
                >Must I place it somewhere else?
                >>
                >Jan
                >>
                >>
                >"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                >news:OWRgKoXtG HA.1216@TK2MSFT NGP03.phx.gbl.. .
                >>That line doesn't make any sense. WndProc is a protected method. You
                >>can't assign anything to it.
                >>>
                >>You need to use an inherited ListView. Did you copy the code in the link
                >>I posted?
                >>>
                >> /claes
                >>>
                >>"JR" <x.x@x.x.wrot e in message
                >>news:5Dszg.56 7086$gF.1325675 5@phobos.telene t-ops.be...
                >>>sorry wrong message.
                >>>I get the messageon line Me.lstPartijen. WndProc = &H4E. Is not
                >>>accesseble becouse it is protected
                >>>>
                >>>Jan
                >>>>
                >>>>
                >>>>
                >>>"JR" <x.x@x.x.schree f in bericht
                >>>news:Wvszg.5 67070$Eb7.13421 621@phobos.tele net-ops.be...
                >>>>>I don't get an error when I import this code in 2003 so I think it must
                >>>>>work also in 2003.
                >>>>>
                >>>>I get the message : Me.lstPartijen. WndProc = &H4E
                >>>>>
                >>>>>
                >>>>Jan
                >>>>>
                >>>>>
                >>>>How do I override the listviews property
                >>>>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                >>>>news:Os7EVR LtGHA.1888@TK2M SFTNGP03.phx.gb l...
                >>>>>>A bit of WndProc overriding should do the trick:
                >>>>>http://groups.google.com/group/micro...fbdea8e5?hl=sv
                >>>>>>
                >>>>> /claes
                >>>>>>
                >>>>>"rb" <rblosat@comcas t.netwrote in message
                >>>>>news:B9Wdn Vx0ROr3kFbZnZ2d nUVZ_qqdnZ2d@co mcast.com...
                >>>>>>Hi All,
                >>>>>>>
                >>>>>>Is there a property or method to keep the headercolumns from being
                >>>>>>resized by the user
                >>>>>>for a listview?
                >>>>>>>
                >>>>>>I am using Visual Basic in Visual Studio . net 2005
                >>>>>>>
                >>>>>>Thank you.
                >>>>>>>
                >>>>>>rb
                >>>>>>>
                >>>>>>
                >>>>>>
                >>>>>
                >>>>>
                >>>>
                >>>>
                >>>
                >>>
                >>
                >>
                >
                >

                Comment

                • Claes Bergefall

                  #9
                  Re: Listview columnheader question

                  Remove that line. Not sure why you put it in there. The code in the link I
                  sent you has a complete class with all the stuff needed. Change your
                  lstPartijen to be an instance of that class (i.e ListViewEx).

                  /claes

                  "JR" <x.x@x.x.wrot e in message
                  news:KdeAg.220$ 4M4.11276@phobo s.telenet-ops.be...
                  that is the line: Me.lstPartijen. WndProc = &H4E
                  >
                  the error is a blue underline in the vb editor
                  >
                  Private Sub FrmRonde_Load(B yVal sender As System.Object, ByVal e As
                  System.EventArg s) Handles MyBase.Load
                  Me.lstPartijen. WndProc = &H4E
                  >
                  End Sub
                  >
                  where lstpartijen is mij listview. It has 3 columns. I don't want them to
                  change the size. the column headers are Nonclickable
                  How must a do it. Can you give me some extra code, how to set each column
                  not to change? The class has no underline/error
                  >
                  Jan
                  >
                  >
                  "Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                  news:egrVKBktGH A.4160@TK2MSFTN GP06.phx.gbl...
                  >No that's fine.
                  >>
                  >You say you get an error on the line Me.lstPartijen. WndProc = &H4E. Where
                  >does that line come from? Show your code
                  >>
                  > /claes
                  >>
                  >>
                  >"JR" <x.x@x.x.wrot e in message
                  >news:0BNzg.570 028$1P7.1347791 4@phobos.telene t-ops.be...
                  >>Yes. I copyed into a new class module.
                  >>>
                  >>Must I place it somewhere else?
                  >>>
                  >>Jan
                  >>>
                  >>>
                  >>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                  >>news:OWRgKoXt GHA.1216@TK2MSF TNGP03.phx.gbl. ..
                  >>>That line doesn't make any sense. WndProc is a protected method. You
                  >>>can't assign anything to it.
                  >>>>
                  >>>You need to use an inherited ListView. Did you copy the code in the
                  >>>link I posted?
                  >>>>
                  >>> /claes
                  >>>>
                  >>>"JR" <x.x@x.x.wrot e in message
                  >>>news:5Dszg.5 67086$gF.132567 55@phobos.telen et-ops.be...
                  >>>>sorry wrong message.
                  >>>>I get the messageon line Me.lstPartijen. WndProc = &H4E. Is not
                  >>>>accessebl e becouse it is protected
                  >>>>>
                  >>>>Jan
                  >>>>>
                  >>>>>
                  >>>>>
                  >>>>"JR" <x.x@x.x.schree f in bericht
                  >>>>news:Wvszg. 567070$Eb7.1342 1621@phobos.tel enet-ops.be...
                  >>>>>>I don't get an error when I import this code in 2003 so I think it
                  >>>>>>must work also in 2003.
                  >>>>>>
                  >>>>>I get the message : Me.lstPartijen. WndProc = &H4E
                  >>>>>>
                  >>>>>>
                  >>>>>Jan
                  >>>>>>
                  >>>>>>
                  >>>>>How do I override the listviews property
                  >>>>>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                  >>>>>news:Os7EV RLtGHA.1888@TK2 MSFTNGP03.phx.g bl...
                  >>>>>>>A bit of WndProc overriding should do the trick:
                  >>>>>>http://groups.google.com/group/micro...fbdea8e5?hl=sv
                  >>>>>>>
                  >>>>>> /claes
                  >>>>>>>
                  >>>>>>"rb" <rblosat@comcas t.netwrote in message
                  >>>>>>news:B9Wd nVx0ROr3kFbZnZ2 dnUVZ_qqdnZ2d@c omcast.com...
                  >>>>>>>Hi All,
                  >>>>>>>>
                  >>>>>>>Is there a property or method to keep the headercolumns from being
                  >>>>>>>resize d by the user
                  >>>>>>>for a listview?
                  >>>>>>>>
                  >>>>>>>I am using Visual Basic in Visual Studio . net 2005
                  >>>>>>>>
                  >>>>>>>Thank you.
                  >>>>>>>>
                  >>>>>>>rb
                  >>>>>>>>
                  >>>>>>>
                  >>>>>>>
                  >>>>>>
                  >>>>>>
                  >>>>>
                  >>>>>
                  >>>>
                  >>>>
                  >>>
                  >>>
                  >>
                  >>
                  >
                  >

                  Comment

                  • JR

                    #10
                    Re: Listview columnheader question

                    Thanks,

                    Now I think that I understand.
                    Is this the same as a usercontrol?

                    Jan


                    "Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                    news:uhilvUwtGH A.1808@TK2MSFTN GP06.phx.gbl...
                    Remove that line. Not sure why you put it in there. The code in the link I
                    sent you has a complete class with all the stuff needed. Change your
                    lstPartijen to be an instance of that class (i.e ListViewEx).
                    >
                    /claes
                    >
                    "JR" <x.x@x.x.wrot e in message
                    news:KdeAg.220$ 4M4.11276@phobo s.telenet-ops.be...
                    >that is the line: Me.lstPartijen. WndProc = &H4E
                    >>
                    >the error is a blue underline in the vb editor
                    >>
                    >Private Sub FrmRonde_Load(B yVal sender As System.Object, ByVal e As
                    >System.EventAr gs) Handles MyBase.Load
                    >Me.lstPartijen .WndProc = &H4E
                    >>
                    >End Sub
                    >>
                    >where lstpartijen is mij listview. It has 3 columns. I don't want them to
                    >change the size. the column headers are Nonclickable
                    >How must a do it. Can you give me some extra code, how to set each column
                    >not to change? The class has no underline/error
                    >>
                    >Jan
                    >>
                    >>
                    >"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                    >news:egrVKBktG HA.4160@TK2MSFT NGP06.phx.gbl.. .
                    >>No that's fine.
                    >>>
                    >>You say you get an error on the line Me.lstPartijen. WndProc = &H4E.
                    >>Where does that line come from? Show your code
                    >>>
                    >> /claes
                    >>>
                    >>>
                    >>"JR" <x.x@x.x.wrot e in message
                    >>news:0BNzg.57 0028$1P7.134779 14@phobos.telen et-ops.be...
                    >>>Yes. I copyed into a new class module.
                    >>>>
                    >>>Must I place it somewhere else?
                    >>>>
                    >>>Jan
                    >>>>
                    >>>>
                    >>>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                    >>>news:OWRgKoX tGHA.1216@TK2MS FTNGP03.phx.gbl ...
                    >>>>That line doesn't make any sense. WndProc is a protected method. You
                    >>>>can't assign anything to it.
                    >>>>>
                    >>>>You need to use an inherited ListView. Did you copy the code in the
                    >>>>link I posted?
                    >>>>>
                    >>>> /claes
                    >>>>>
                    >>>>"JR" <x.x@x.x.wrot e in message
                    >>>>news:5Dszg. 567086$gF.13256 755@phobos.tele net-ops.be...
                    >>>>>sorry wrong message.
                    >>>>>I get the messageon line Me.lstPartijen. WndProc = &H4E. Is not
                    >>>>>accesseb le becouse it is protected
                    >>>>>>
                    >>>>>Jan
                    >>>>>>
                    >>>>>>
                    >>>>>>
                    >>>>>"JR" <x.x@x.x.schree f in bericht
                    >>>>>news:Wvszg .567070$Eb7.134 21621@phobos.te lenet-ops.be...
                    >>>>>>>I don't get an error when I import this code in 2003 so I think it
                    >>>>>>>must work also in 2003.
                    >>>>>>>
                    >>>>>>I get the message : Me.lstPartijen. WndProc = &H4E
                    >>>>>>>
                    >>>>>>>
                    >>>>>>Jan
                    >>>>>>>
                    >>>>>>>
                    >>>>>>How do I override the listviews property
                    >>>>>>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                    >>>>>>news:Os7E VRLtGHA.1888@TK 2MSFTNGP03.phx. gbl...
                    >>>>>>>>A bit of WndProc overriding should do the trick:
                    >>>>>>>http://groups.google.com/group/micro...fbdea8e5?hl=sv
                    >>>>>>>>
                    >>>>>>> /claes
                    >>>>>>>>
                    >>>>>>>"rb" <rblosat@comcas t.netwrote in message
                    >>>>>>>news:B9W dnVx0ROr3kFbZnZ 2dnUVZ_qqdnZ2d@ comcast.com...
                    >>>>>>>>Hi All,
                    >>>>>>>>>
                    >>>>>>>>Is there a property or method to keep the headercolumns from being
                    >>>>>>>>resiz ed by the user
                    >>>>>>>>for a listview?
                    >>>>>>>>>
                    >>>>>>>>I am using Visual Basic in Visual Studio . net 2005
                    >>>>>>>>>
                    >>>>>>>>Thank you.
                    >>>>>>>>>
                    >>>>>>>>rb
                    >>>>>>>>>
                    >>>>>>>>
                    >>>>>>>>
                    >>>>>>>
                    >>>>>>>
                    >>>>>>
                    >>>>>>
                    >>>>>
                    >>>>>
                    >>>>
                    >>>>
                    >>>
                    >>>
                    >>
                    >>
                    >
                    >

                    Comment

                    • Claes Bergefall

                      #11
                      Re: Listview columnheader question

                      Umm, yeah, sort of (but it inherits ListView instead of UserControl)

                      /claes

                      "JR" <x.x@x.x.wrot e in message
                      news:IFpAg.1196 $RM4.61501@phob os.telenet-ops.be...
                      Thanks,
                      >
                      Now I think that I understand.
                      Is this the same as a usercontrol?
                      >
                      Jan
                      >
                      >
                      "Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                      news:uhilvUwtGH A.1808@TK2MSFTN GP06.phx.gbl...
                      >Remove that line. Not sure why you put it in there. The code in the link
                      >I sent you has a complete class with all the stuff needed. Change your
                      >lstPartijen to be an instance of that class (i.e ListViewEx).
                      >>
                      > /claes
                      >>
                      >"JR" <x.x@x.x.wrot e in message
                      >news:KdeAg.220 $4M4.11276@phob os.telenet-ops.be...
                      >>that is the line: Me.lstPartijen. WndProc = &H4E
                      >>>
                      >>the error is a blue underline in the vb editor
                      >>>
                      >>Private Sub FrmRonde_Load(B yVal sender As System.Object, ByVal e As
                      >>System.EventA rgs) Handles MyBase.Load
                      >>Me.lstPartije n.WndProc = &H4E
                      >>>
                      >>End Sub
                      >>>
                      >>where lstpartijen is mij listview. It has 3 columns. I don't want them
                      >>to change the size. the column headers are Nonclickable
                      >>How must a do it. Can you give me some extra code, how to set each
                      >>column not to change? The class has no underline/error
                      >>>
                      >>Jan
                      >>>
                      >>>
                      >>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                      >>news:egrVKBkt GHA.4160@TK2MSF TNGP06.phx.gbl. ..
                      >>>No that's fine.
                      >>>>
                      >>>You say you get an error on the line Me.lstPartijen. WndProc = &H4E.
                      >>>Where does that line come from? Show your code
                      >>>>
                      >>> /claes
                      >>>>
                      >>>>
                      >>>"JR" <x.x@x.x.wrot e in message
                      >>>news:0BNzg.5 70028$1P7.13477 914@phobos.tele net-ops.be...
                      >>>>Yes. I copyed into a new class module.
                      >>>>>
                      >>>>Must I place it somewhere else?
                      >>>>>
                      >>>>Jan
                      >>>>>
                      >>>>>
                      >>>>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                      >>>>news:OWRgKo XtGHA.1216@TK2M SFTNGP03.phx.gb l...
                      >>>>>That line doesn't make any sense. WndProc is a protected method. You
                      >>>>>can't assign anything to it.
                      >>>>>>
                      >>>>>You need to use an inherited ListView. Did you copy the code in the
                      >>>>>link I posted?
                      >>>>>>
                      >>>>> /claes
                      >>>>>>
                      >>>>>"JR" <x.x@x.x.wrot e in message
                      >>>>>news:5Dszg .567086$gF.1325 6755@phobos.tel enet-ops.be...
                      >>>>>>sorry wrong message.
                      >>>>>>I get the messageon line Me.lstPartijen. WndProc = &H4E. Is not
                      >>>>>>accessebl e becouse it is protected
                      >>>>>>>
                      >>>>>>Jan
                      >>>>>>>
                      >>>>>>>
                      >>>>>>>
                      >>>>>>"JR" <x.x@x.x.schree f in bericht
                      >>>>>>news:Wvsz g.567070$Eb7.13 421621@phobos.t elenet-ops.be...
                      >>>>>>>>I don't get an error when I import this code in 2003 so I think it
                      >>>>>>>>must work also in 2003.
                      >>>>>>>>
                      >>>>>>>I get the message : Me.lstPartijen. WndProc = &H4E
                      >>>>>>>>
                      >>>>>>>>
                      >>>>>>>Jan
                      >>>>>>>>
                      >>>>>>>>
                      >>>>>>>How do I override the listviews property
                      >>>>>>>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                      >>>>>>>news:Os7 EVRLtGHA.1888@T K2MSFTNGP03.phx .gbl...
                      >>>>>>>>>A bit of WndProc overriding should do the trick:
                      >>>>>>>>http://groups.google.com/group/micro...fbdea8e5?hl=sv
                      >>>>>>>>>
                      >>>>>>>> /claes
                      >>>>>>>>>
                      >>>>>>>>"rb" <rblosat@comcas t.netwrote in message
                      >>>>>>>>news:B9 WdnVx0ROr3kFbZn Z2dnUVZ_qqdnZ2d @comcast.com...
                      >>>>>>>>>Hi All,
                      >>>>>>>>>>
                      >>>>>>>>>Is there a property or method to keep the headercolumns from
                      >>>>>>>>>bein g resized by the user
                      >>>>>>>>>for a listview?
                      >>>>>>>>>>
                      >>>>>>>>>I am using Visual Basic in Visual Studio . net 2005
                      >>>>>>>>>>
                      >>>>>>>>>Than k you.
                      >>>>>>>>>>
                      >>>>>>>>>rb
                      >>>>>>>>>>
                      >>>>>>>>>
                      >>>>>>>>>
                      >>>>>>>>
                      >>>>>>>>
                      >>>>>>>
                      >>>>>>>
                      >>>>>>
                      >>>>>>
                      >>>>>
                      >>>>>
                      >>>>
                      >>>>
                      >>>
                      >>>
                      >>
                      >>
                      >
                      >

                      Comment

                      • JR

                        #12
                        Re: Listview columnheader question

                        thanks


                        "Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                        news:%23l5NH98t GHA.1504@TK2MSF TNGP03.phx.gbl. ..
                        Umm, yeah, sort of (but it inherits ListView instead of UserControl)
                        >
                        /claes
                        >
                        "JR" <x.x@x.x.wrot e in message
                        news:IFpAg.1196 $RM4.61501@phob os.telenet-ops.be...
                        >Thanks,
                        >>
                        >Now I think that I understand.
                        >Is this the same as a usercontrol?
                        >>
                        >Jan
                        >>
                        >>
                        >"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                        >news:uhilvUwtG HA.1808@TK2MSFT NGP06.phx.gbl.. .
                        >>Remove that line. Not sure why you put it in there. The code in the link
                        >>I sent you has a complete class with all the stuff needed. Change your
                        >>lstPartijen to be an instance of that class (i.e ListViewEx).
                        >>>
                        >> /claes
                        >>>
                        >>"JR" <x.x@x.x.wrot e in message
                        >>news:KdeAg.22 0$4M4.11276@pho bos.telenet-ops.be...
                        >>>that is the line: Me.lstPartijen. WndProc = &H4E
                        >>>>
                        >>>the error is a blue underline in the vb editor
                        >>>>
                        >>>Private Sub FrmRonde_Load(B yVal sender As System.Object, ByVal e As
                        >>>System.Event Args) Handles MyBase.Load
                        >>>Me.lstPartij en.WndProc = &H4E
                        >>>>
                        >>>End Sub
                        >>>>
                        >>>where lstpartijen is mij listview. It has 3 columns. I don't want them
                        >>>to change the size. the column headers are Nonclickable
                        >>>How must a do it. Can you give me some extra code, how to set each
                        >>>column not to change? The class has no underline/error
                        >>>>
                        >>>Jan
                        >>>>
                        >>>>
                        >>>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                        >>>news:egrVKBk tGHA.4160@TK2MS FTNGP06.phx.gbl ...
                        >>>>No that's fine.
                        >>>>>
                        >>>>You say you get an error on the line Me.lstPartijen. WndProc = &H4E.
                        >>>>Where does that line come from? Show your code
                        >>>>>
                        >>>> /claes
                        >>>>>
                        >>>>>
                        >>>>"JR" <x.x@x.x.wrot e in message
                        >>>>news:0BNzg. 570028$1P7.1347 7914@phobos.tel enet-ops.be...
                        >>>>>Yes. I copyed into a new class module.
                        >>>>>>
                        >>>>>Must I place it somewhere else?
                        >>>>>>
                        >>>>>Jan
                        >>>>>>
                        >>>>>>
                        >>>>>"Claes Bergefall" <louplou@nospam .nospamschreef in bericht
                        >>>>>news:OWRgK oXtGHA.1216@TK2 MSFTNGP03.phx.g bl...
                        >>>>>>That line doesn't make any sense. WndProc is a protected method. You
                        >>>>>>can't assign anything to it.
                        >>>>>>>
                        >>>>>>You need to use an inherited ListView. Did you copy the code in the
                        >>>>>>link I posted?
                        >>>>>>>
                        >>>>>> /claes
                        >>>>>>>
                        >>>>>>"JR" <x.x@x.x.wrot e in message
                        >>>>>>news:5Dsz g.567086$gF.132 56755@phobos.te lenet-ops.be...
                        >>>>>>>sorry wrong message.
                        >>>>>>>I get the messageon line Me.lstPartijen. WndProc = &H4E. Is not
                        >>>>>>>accesseb le becouse it is protected
                        >>>>>>>>
                        >>>>>>>Jan
                        >>>>>>>>
                        >>>>>>>>
                        >>>>>>>>
                        >>>>>>>"JR" <x.x@x.x.schree f in bericht
                        >>>>>>>news:Wvs zg.567070$Eb7.1 3421621@phobos. telenet-ops.be...
                        >>>>>>>>>I don't get an error when I import this code in 2003 so I think it
                        >>>>>>>>>must work also in 2003.
                        >>>>>>>>>
                        >>>>>>>>I get the message : Me.lstPartijen. WndProc = &H4E
                        >>>>>>>>>
                        >>>>>>>>>
                        >>>>>>>>Jan
                        >>>>>>>>>
                        >>>>>>>>>
                        >>>>>>>>How do I override the listviews property
                        >>>>>>>>"Clae s Bergefall" <louplou@nospam .nospamschreef in bericht
                        >>>>>>>>news:Os 7EVRLtGHA.1888@ TK2MSFTNGP03.ph x.gbl...
                        >>>>>>>>>>A bit of WndProc overriding should do the trick:
                        >>>>>>>>>http://groups.google.com/group/micro...fbdea8e5?hl=sv
                        >>>>>>>>>>
                        >>>>>>>>> /claes
                        >>>>>>>>>>
                        >>>>>>>>>"rb" <rblosat@comcas t.netwrote in message
                        >>>>>>>>>news:B 9WdnVx0ROr3kFbZ nZ2dnUVZ_qqdnZ2 d@comcast.com.. .
                        >>>>>>>>>>Hi All,
                        >>>>>>>>>>>
                        >>>>>>>>>>Is there a property or method to keep the headercolumns from
                        >>>>>>>>>>bei ng resized by the user
                        >>>>>>>>>>for a listview?
                        >>>>>>>>>>>
                        >>>>>>>>>>I am using Visual Basic in Visual Studio . net 2005
                        >>>>>>>>>>>
                        >>>>>>>>>>Tha nk you.
                        >>>>>>>>>>>
                        >>>>>>>>>>rb
                        >>>>>>>>>>>
                        >>>>>>>>>>
                        >>>>>>>>>>
                        >>>>>>>>>
                        >>>>>>>>>
                        >>>>>>>>
                        >>>>>>>>
                        >>>>>>>
                        >>>>>>>
                        >>>>>>
                        >>>>>>
                        >>>>>
                        >>>>>
                        >>>>
                        >>>>
                        >>>
                        >>>
                        >>
                        >>
                        >
                        >

                        Comment

                        Working...