![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a problem trying to get the OnClick to fire in a listbox, |
#3
| |||
| |||
|
|
Ken wrote: I have a problem trying to get the OnClick to fire in a listbox, Take a look at docs for System.Windows.Forms.ListBox events [1]. There is no Click event. That would be your problem. ListBox does have a DoubleClick event, and that's why you were able to register a delegate for the DoubleClick event, but you don't have a similar |
|
Cheers, Stuart Celarier, Fern Creek [1] http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwindowsforms.asp |
#4
| |||
| |||
|
|
the OnClick (inherited from Control) is supported in .NET CF the double click is not in CF that was what my control was attempting to implement. |
#5
| |||
| |||
|
#6
| |||||
| |||||
|
|
From: Stuart Celarier <stuart (AT) ferncrk (DOT) NOSPAM.com Subject: Re: OnClick not working in listbox References: <#BBWAZL2EHA.3336 (AT) TK2MSFTNGP11 (DOT) phx.gbl Content-Type: text/plain; charset=iso-8859-1 X-Newsreader: JetBrains Omea Reader 341.19 Message-ID: <#HSH8pL2EHA.1300 (AT) TK2MSFTNGP14 (DOT) phx.gbl Newsgroups: microsoft.public.dotnet.framework.compactframework Date: Thu, 02 Dec 2004 14:01:31 -0800 NNTP-Posting-Host: c-67-169-206-96.client.comcast.net 67.169.206.96 Lines: 1 Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP14 |
|
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.compactframework :66248 X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework Here's a little more information: the .NET Compact Framework's Class Library Comparison Tool [1] shows System.Windows.Forms.ListBox.OnClick is |
|
Cheers, Stuart Celarier, Fern Creek [1] http://msdn.microsoft.com/library/en-us/dv_evtuv/html/etconnetcompactframewo |
|
[2] http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwindowsformsli |
#7
| |||
| |||
|
|
Hello Stuart, Yes, you are right. The Click event is not supported for ListBox in the NET Compact Framework. Thank you, Sergiy. This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- | From: Stuart Celarier <stuart (AT) ferncrk (DOT) NOSPAM.com | Subject: Re: OnClick not working in listbox | References: <#BBWAZL2EHA.3336 (AT) TK2MSFTNGP11 (DOT) phx.gbl | Content-Type: text/plain; charset=iso-8859-1 | X-Newsreader: JetBrains Omea Reader 341.19 | Message-ID: <#HSH8pL2EHA.1300 (AT) TK2MSFTNGP14 (DOT) phx.gbl | Newsgroups: microsoft.public.dotnet.framework.compactframework | Date: Thu, 02 Dec 2004 14:01:31 -0800 | NNTP-Posting-Host: c-67-169-206-96.client.comcast.net 67.169.206.96 | Lines: 1 | Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP14 phx.gbl | Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.compactframework :66248 | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework | | Here's a little more information: the .NET Compact Framework's Class Library Comparison Tool [1] shows System.Windows.Forms.ListBox.OnClick is only supported on the .NET Framework. That contradicts the .NET Framework Class Library docs for System.Windows.Forms.ListBox members [2]. So maybe this is a documentation error? | | Cheers, | Stuart Celarier, Fern Creek | | [1] http://msdn.microsoft.com/library/en-us/dv_evtuv/html/etconnetcompactframewo rkclasses.asp | [2] http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwindowsformsli stboxmemberstopic.asp | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |