VB coding help needed

  recap 15:03 02 Sep 2003

Hi all,

We have a little bit of a niggling problem with a piece of software that we are developing.

The item that is giving us problems is a text box with tips in. When the box is first opened there is no cursor present, so when it is supposed to go out of focus it remains in focus. We have to click another item in the search window that the text box is linked to to get the box to disappear. Hope that is clear?

Here is the code:

Private Sub Form_Load ()

'Set lblttip to focus so that it hides when focus is lost

lblttip.SelStart = 0: lblttip.SelLength = 1

'Redefine background colour

Me.BackColor = RGB (238, 238, 238)

'Call always on top

Call SetWindoePos(Me.hwnd, HWND_TOPMOST, 0,0,0,0, SWP_NOMOVE Or SWP_NOSIZE)

End Sub

Private Sub lblttip_LostFocus ()
'Hide form and kill speech when focus is lost
frmmain.dssl.Speak ""

End Sub

any advice would be appreciated.

  Simsy 15:40 02 Sep 2003

for I realise that there are many on here with VB expertise that may be able to help...

This is a bit specialised and you may want to try seeking help at click here

Good luck,



  recap 16:09 02 Sep 2003

Thanks Simsy, no insult taken. I have found that PCA respond quicker than vbforums.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Microsoft Surface Book 2 15in review

Illustrator Amy Grimes on how setting up her own eco-brand led to success with clients too

MacBook Pro keyboard issues and other problems

Test : l’enceinte connectée HomePod d’Apple