vb.net - treeview keyboard events while label editing -


i've tried subclassing treeview capture keyboard messages, doesn't capture events during labeledit, because control overlayed seperate label. s there way can capture events on label?

protected overrides sub onnotifymessage(m windows.forms.message)     if labeledit = true         select case m.msg             case &h100 'wm_keyup                 format(nodes.item(0).text)         end select     end if end sub 

ok got far based on hans' answer

   dim editcontrolhandle = sendmessage(templates.handle, &h110f, _      intptr.zero, intptr.zero)         if editcontrolhandle <> intptr.zero             dim sz int32 = sendmessage(editcontrolhandle, &he, 0, 0).toint32()              if sz > 0                 dim title new stringbuilder(sz + 1)                 sendmessage(editcontrolhandle, &hd, title.capacity, title)             end if 

but how can intercept wm_keyup messages there? can ovverride onnoitymessage or wndproc, how adjust message processing editor handler used? end if


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -