Results 1 to 4 of 4

Thread: MSHFlexgrid clicking specific Columns [Resolved]

  1. #1

    Thread Starter
    Addicted Member DKasler's Avatar
    Join Date
    Jan 2005
    Location
    Brooklyn, NYC
    Posts
    177

    Resolved MSHFlexgrid clicking specific Columns [Resolved]

    Ok... Here is what I am trying to do...

    I have a MSHFlexgrid which contains / displays records of suppliers our offices buys from. One of the fields is a website url.

    So I came up with a loop to find all of the entries that contain a web URL and made it add and a CellPicture of a "WEB" icon to column 0. I then came up with code that when the line is double clicked it launched that url in the default web browser...

    Now here comes my problem... double clicking on a specific row was also where i had the record edit feature. So I tried to make it that if you clicked in Column 0 on any row it would launch the website, and if you clicked any other column in the row then it would edit the record... But I couldnt get it to work.

    Any suggestions?
    Attached Images Attached Images  
    Last edited by DKasler; May 9th, 2005 at 03:45 PM.
    -----MY SITES-----
    BayRidgeNights.Com - NYC Nightlife Forums

    Fight Communism - Rate Posts!

  2. #2

    Thread Starter
    Addicted Member DKasler's Avatar
    Join Date
    Jan 2005
    Location
    Brooklyn, NYC
    Posts
    177

    Re: MSHFlexgrid clicking specific Columns

    *bump*
    -----MY SITES-----
    BayRidgeNights.Com - NYC Nightlife Forums

    Fight Communism - Rate Posts!

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: MSHFlexgrid clicking specific Columns

    Check the MouseCol property.

    VB Code:
    1. Private Sub MSHFlexGrid1_DblClick()
    2.     If MSHFlexGrid1.MouseCol = 0 Then
    3.         'Show Website
    4.     Else
    5.         'do something else
    6.     End If
    7. End Sub

  4. #4

    Thread Starter
    Addicted Member DKasler's Avatar
    Join Date
    Jan 2005
    Location
    Brooklyn, NYC
    Posts
    177

    Re: MSHFlexgrid clicking specific Columns

    Works perfectly!

    "You da man"
    -----MY SITES-----
    BayRidgeNights.Com - NYC Nightlife Forums

    Fight Communism - Rate Posts!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width