home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,142 of 10,840   
   Carl to Carl   
   Re: MSH Flexgrid Control, Copying Conten   
   13 Jan 05 18:43:58   
   
   From: dodger@enter.net   
      
   Never mind.  I was trying to make it too difficult.  It shouldn't be   
      
   frm_crysalis.gridmain.MouseCol   
      
   but   
      
   frm_crysalis.gridmain.Col   
      
   Dumb of me.  Thanks anyway. -Carl   
      
      
      
   "Carl"  wrote in message   
   news:6CxFd.3$4K3.343@monger.newsread.com...   
   >     I'm trying to select, with the mouse, a cell within a flexgrid that   
   I've   
   > created, and copying the contents of that cell to the clipboard.  I've   
   tried   
   > using the Mousecol and Mouserow properties to return the cell col and row   
   > index, but It doesn't seem to RETURN the cell ID but needs an argument   
   > identifying, seemingly the col and row repectively.  Here's the test   
   routine   
   > I set up just to see how the mousecol property worked but it genterates   
   the   
   > "Argument not optional" error.  How do you return the row and col index   
   > after a mouseclick?   
   >   
   > Private Sub gridmain_Click()   
   > Rem      frm_crysalis.gridmain.Col = 7   
   > Rem      frm_crysalis.gridmain.Row = 1   
   > Text1 = Str$(frm_crysalis.gridmain.MouseCol)   
   >   
   > Text2 = Str$(frm_crysalis.gridmain.MouseRow)   
   >       frm_crysalis.gridmain.Col = 1   
   >       frm_crysalis.gridmain.Row = 1   
   >   
   > frm_crysalis.gridmain.Text = Text1   
   >       frm_crysalis.gridmain.Col = 1   
   >       frm_crysalis.gridmain.Row = 2   
   > frm_crysalis.gridmain.Text = Text2   
   >   
   >   
   > frm_crysalis.gridmain.Text = frm_crysalis.gridmain.Col   
   > End Sub   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca