Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
MSFlexGrid Control in VB6
Name: BelAnWel Date: March 28, 2003 at 18:25:00 Pacific OS: 98 CPU/Ram: 256
Comment:
sup guys!
is there a way to determine if the fixed row (grayed area on the left) on an MSFlexgrid is selected? this what i want to do:
- the user enters stuff in an MSFlexgrid (easily done) - the user clicks the fixed row in effect selects the whole row (automatically done by vb)
now heres the problem: i need to know if the whole row was selected before i allow the user to delete that row, using RemoveItem. i cant figure out how determine this. i cant find any property or event that would return a value for this.
Name: DTec Date: March 29, 2003 at 09:01:16 Pacific
Reply:
I'm still grey on the Flex Grid, but here's what I came up with:
Private Sub MSHFlexGrid1_Click() With MSHFlexGrid1 Debug.Print .RowSel End With End Sub
This subroutine uses the ROWSEL property to return the numeric value of row, whenever the User clicks on any given cell of the flexgrid. This will work in all three Selection Modes (Free, Row, Column).
So you could probably use IF or CASE statements on the MSHFlexGrid1.RowSel property to represent what row the User has selected. On the other hand, if you set the Selection Mode property to "By Row", then this will highlight the entire row when the user clicks anywhere on the grid.
Hope this helps!
0
Response Number 2
Name: BelAnWel Date: March 29, 2003 at 14:48:34 Pacific
Summary: Hi, I would like to know how I can play a wave file over and over and over none stop. using the MCI control in VB6. Please, help! anything is appreciated ...
Summary: Hi friends I made three activeX Control in VB. I have deleted these controls from the Hard disk but their names still exist in "Components Window (Ctr + T)". Plz tell me the procedure to delete from...
Summary: Hi, I've tried many different ways to figure this out, but I simply cannot! Perhaps someone else can... I am trying to use the NewWindow2 event of the WebBrowser Control in Visual Basic 6. In the even...