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. How to fetch cell value in MsFlex Grid in vb6.0? URGENT

How to fetch cell value in MsFlex Grid in vb6.0? URGENT

Scheduled Pinned Locked Moved Visual Basic
cssdatabasetutorialquestion
4 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.
  • A Offline
    A Offline
    Ashish Kumar Vyas
    wrote on last edited by
    #1

    Dear All, Could any body give me the line code for the given query. 1. If I am clicking mouse button on Row 1 column 3 then it will show in Msgbox "selected Column 3" 2. If I am clicking mouse button on Row 1 column 4 then it will show in Msgbox "selected Column 4" .........so on. Thanks Ashish

    L 1 Reply Last reply
    0
    • A Ashish Kumar Vyas

      Dear All, Could any body give me the line code for the given query. 1. If I am clicking mouse button on Row 1 column 3 then it will show in Msgbox "selected Column 3" 2. If I am clicking mouse button on Row 1 column 4 then it will show in Msgbox "selected Column 4" .........so on. Thanks Ashish

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Private Sub MSFlexGrid1_Click()

      MsgBox CStr(MSFlexGrid1.Colsel)
      

      End Sub

      :)

      I are Troll :suss:

      A 1 Reply Last reply
      0
      • L Lost User

        Private Sub MSFlexGrid1_Click()

        MsgBox CStr(MSFlexGrid1.Colsel)
        

        End Sub

        :)

        I are Troll :suss:

        A Offline
        A Offline
        Ashish Kumar Vyas
        wrote on last edited by
        #3

        Hi, The below code return 0 ,Even I click on 1,2.3 ...soon column

        Private Sub MSFlexGrid1_Click()
        MsgBox CStr(MSFlexGrid1.Colsel)
        End Sub

        Thanks Ashish

        L 1 Reply Last reply
        0
        • A Ashish Kumar Vyas

          Hi, The below code return 0 ,Even I click on 1,2.3 ...soon column

          Private Sub MSFlexGrid1_Click()
          MsgBox CStr(MSFlexGrid1.Colsel)
          End Sub

          Thanks Ashish

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Ashish Kumar Vyas wrote:

          The below code return 0 ,Even I click on 1,2.3 ...soon column

          Ah, the selection isn't there yet when you click it, so one would have to check what column the mouse is on;

          Private Sub MSFlexGrid1_Click()
          MsgBox CStr(MSFlexGrid1.mousecol)
          End Sub

          That should fix it :)

          I are Troll :suss:

          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