stop f4 from opening combo box

  • Thread starter Thread starter Dante
  • Start date Start date
D

Dante

How do i stop the f4 key from opening the drop down list
on a combo box?
 
Unfortunately, this functionality is not supported in the .NET Compact
Framework v1.0.

Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Dante" <[email protected]>
| Sender: "Dante" <[email protected]>
| Subject: stop f4 from opening combo box
| Date: Mon, 13 Oct 2003 10:27:51 -0700
| Lines: 2
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcORr1PvXt1oAufTRuybDa2NKHiSYw==
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:35844
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| How do i stop the f4 key from opening the drop down list
| on a combo box?
|
 
Actually, i figured out how to do it, here is the solution:

Public Const CB_SETEXTENDEDUI = &H155
Public Declare Function SendMessage Lib "CoreDll.dll"
(ByVal hwnd As IntPtr, ByVal wMsg As Int32, ByVal wParam
As Boolean, Optional ByVal lParam As Integer = 0) As
Integer
Public Declare Function GetCapture Lib "CoreDll.dll" () As
IntPtr

combobox.Capture = True
Dim hwnd As IntPtr = GetCapture()
SendMessage(hwnd, CB_SETEXTENDEDUI, True)
combobox.Capture = False
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top