Results 1 to 7 of 7

Thread: help pls! :(

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    help pls! :(

    VB Code:
    1. If Not txtSend.SelStart = "" Then
    why do i get a type mismatch?
    also, thats the method im using to check if the control is in focus - is there another way to check if a control is focussed?

  2. #2

  3. #3
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. bRTBoxHasFocus As Boolean
    2.  
    3. Private Sub RichTextBox1_GotFocus()
    4.     bRTBoxHasFocus = False
    5. End Sub
    6.  
    7. Private Sub RichTextBox1_LostFocus()
    8.     bRTBoxHasFocus = True
    9. End Sub

    bRTBoxHasFocus will be true if the richtextbox has focus, false if not.

    could u use that ?
    -= a peet post =-

  4. #4

  5. #5
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by peet
    VB Code:
    1. bRTBoxHasFocus As Boolean
    2.  
    3. Private Sub RichTextBox1_GotFocus()
    4.     bRTBoxHasFocus = False
    5. End Sub
    6.  
    7. Private Sub RichTextBox1_LostFocus()
    8.     bRTBoxHasFocus = True
    9. End Sub

    bRTBoxHasFocus will be true if the richtextbox has focus, false if not.

    could u use that ?
    Peet.... I'm afraid to say that your events are swapped.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  6. #6
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    .... or the settings for the boolean
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  7. #7
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    oops... thanks Mc Brain
    -= a peet post =-

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