Click here to Skip to main content
16,004,974 members
Home / Discussions / C#
   

C#

 
GeneralRe: Text box scrolling Pin
Andy Brummer9-Apr-04 10:16
sitebuilderAndy Brummer9-Apr-04 10:16 
GeneralRe: Text box scrolling Pin
Heath Stewart9-Apr-04 10:38
protectorHeath Stewart9-Apr-04 10:38 
GeneralRe: Text box scrolling Pin
Andy Brummer9-Apr-04 11:08
sitebuilderAndy Brummer9-Apr-04 11:08 
GeneralRe: Text box scrolling Pin
Nick Parker9-Apr-04 11:34
protectorNick Parker9-Apr-04 11:34 
GeneralRe: Text box scrolling Pin
Andy Brummer9-Apr-04 12:03
sitebuilderAndy Brummer9-Apr-04 12:03 
GeneralRe: Text box scrolling Pin
Andy Brummer9-Apr-04 12:02
sitebuilderAndy Brummer9-Apr-04 12:02 
Generaldouble clicking an item in a listBox Pin
User 9625789-Apr-04 7:43
User 9625789-Apr-04 7:43 
GeneralRe: double clicking an item in a listBox Pin
Heath Stewart9-Apr-04 7:58
protectorHeath Stewart9-Apr-04 7:58 
So handle the DoubleClick event on the ListBox, inheritted by Control.

FYI, in Windows Media Player, that's a ListView, not a ListBox. There's a big difference and a ListView implicitly supports the kind of object selection and activation changes you want.

For example, simply set ListView.Activation to ItemActivation.TwoClick and you've got what you requested. You can either handle the DoubleClick event as before, or the ItemActivate event that is fired when the user activates an item based on the Activation property setting.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: double clicking an item in a listBox Pin
User 9625789-Apr-04 8:50
User 9625789-Apr-04 8:50 
GeneralRe: double clicking an item in a listBox Pin
Heath Stewart9-Apr-04 8:58
protectorHeath Stewart9-Apr-04 8:58 
GeneralRe: double clicking an item in a listBox Pin
User 9625789-Apr-04 8:44
User 9625789-Apr-04 8:44 
GeneralRe: double clicking an item in a listBox Pin
Nick Parker9-Apr-04 11:41
protectorNick Parker9-Apr-04 11:41 
Generalrefreshing listview content Pin
Paolo Ponzano9-Apr-04 7:35
Paolo Ponzano9-Apr-04 7:35 
GeneralRe: refreshing listview content Pin
Heath Stewart9-Apr-04 7:54
protectorHeath Stewart9-Apr-04 7:54 
GeneralRe: refreshing listview content Pin
Paolo Ponzano9-Apr-04 19:45
Paolo Ponzano9-Apr-04 19:45 
GeneralDrawing RichText on a GDI+ surface Pin
Judah Gabriel Himango9-Apr-04 7:27
sponsorJudah Gabriel Himango9-Apr-04 7:27 
GeneralRe: Drawing RichText on a GDI+ surface Pin
Heath Stewart9-Apr-04 7:53
protectorHeath Stewart9-Apr-04 7:53 
GeneralRe: Drawing RichText on a GDI+ surface Pin
Judah Gabriel Himango9-Apr-04 8:18
sponsorJudah Gabriel Himango9-Apr-04 8:18 
GeneralRe: Drawing RichText on a GDI+ surface Pin
Judah Gabriel Himango9-Apr-04 9:41
sponsorJudah Gabriel Himango9-Apr-04 9:41 
GeneralRe: Drawing RichText on a GDI+ surface Pin
Heath Stewart9-Apr-04 10:04
protectorHeath Stewart9-Apr-04 10:04 
GeneralFtpServer Pin
Member 7326719-Apr-04 6:26
Member 7326719-Apr-04 6:26 
GeneralRe: FtpServer Pin
Nick Parker9-Apr-04 6:43
protectorNick Parker9-Apr-04 6:43 
GeneralVertical toolbar Pin
mcgahanfl9-Apr-04 5:33
mcgahanfl9-Apr-04 5:33 
GeneralRe: Vertical toolbar Pin
Heath Stewart9-Apr-04 7:02
protectorHeath Stewart9-Apr-04 7:02 
GeneralRe: Vertical toolbar Pin
mcgahanfl12-Apr-04 2:37
mcgahanfl12-Apr-04 2:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.