Results 1 to 4 of 4

Thread: Searhing MSHFlexGrid

  1. #1
    747
    Guest

    Searhing MSHFlexGrid

    Does anyone have an idea about searching the MSHFlexGrid. Well I want to search all rows in column 0.

    Please Help

  2. #2
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Edinburgh, Scotland
    Posts
    272
    VB Code:
    1. Dim i As Integer
    2.  
    3.     For i = 0 To fg.Rows - 1
    4.         If InStr(fg.TextMatrix(i, 0), sSearchString) > 0 Then
    5.             ' Found a match
    6.             ' Do stuff
    7.         End If
    8.     Next i

    The 0 in fg.TextMatrix(i, 0) is column 0 by the way.

  3. #3
    747
    Guest
    Thank you very much!!!
    One more quick question, Can we change fonts of MsgBox?

  4. #4
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Edinburgh, Scotland
    Posts
    272
    The font properties of a MsgBox are derived from whatever the user has set them to on the Display properties Appearance tab (then choose Message Box as the item). So I dare say that if the location of these are found in the registry, then you could modify the registry to suit. Of course this would then affect all message boxes throughout Windows. If you did want a custom message box, then why not add a form to your VB project and customise that to suit?

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