VB coding help needed

  recap 15:03 02 Sep 03

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 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,



  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.

The Legend of Zelda Breath of the Wild review: Five hours with Zelda on the Nintendo Switch

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

How the painting-like animated sequences in A Monster Calls were created by Glassworks Barcelona

The 22 best Safari extensions | Best Safari plugins: Improve Apple's Safari web browser with these…