How to invoke Ctrl + F function for searching

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kabburebh
    New Member
    • Aug 2009
    • 9

    How to invoke Ctrl + F function for searching

    Hi all i wanna invoke a function when user presses ctrl+F .The function works same like searching a string in word or notepad but in my project i m searching whether entered string exist in datagridview. How to get the key code in vb.net
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    If you have a menu in your program you could assign "Find" that key combination. That would follow the Windows standard look and feel.

    Comment

    • kabburebh
      New Member
      • Aug 2009
      • 9

      #3
      No I cont hav any menu on my form.

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        Is there a "find" button on your form that someone would click with the mouse? That can also have a keystroke attached to it.

        Comment

        • kabburebh
          New Member
          • Aug 2009
          • 9

          #5
          Ya there is find button on my form.When user clicks that a popup box comes user has to enter the string And then search that string into datagridview.

          Comment

          Working...