VB coding help needed

  recap 15:03 02 Sep 03
Locked

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
Me.Hide
frmmain.dssl.Speak ""

End Sub


any advice would be appreciated.

  Simsy 15:40 02 Sep 03

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,

Regards,

Simsy

  recap 16:09 02 Sep 03

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.

How to get Windows 10 for free | How to install Windows 10: There is still a way to avoid paying…

1995-2015: How technology has changed the world in 20 years

Alex Chinneck’s giant ice cube Christmas tree at Kings Cross

Apple rumours & predictions 2017: The iPhone 8, new iPads, and everything else you should expect fr7…