Click here to Skip to main content
16,011,685 members
Home / Discussions / C#
   

C#

 
Questionglobal vars names Pin
sadas232341s10-Jan-11 23:06
sadas232341s10-Jan-11 23:06 
AnswerRe: global vars names Pin
Pete O'Hanlon10-Jan-11 23:09
mvePete O'Hanlon10-Jan-11 23:09 
AnswerRe: global vars names Pin
OriginalGriff10-Jan-11 23:29
mveOriginalGriff10-Jan-11 23:29 
AnswerRe: global vars names Pin
Luc Pattyn11-Jan-11 2:05
sitebuilderLuc Pattyn11-Jan-11 2:05 
AnswerRe: global vars names Pin
PIEBALDconsult11-Jan-11 2:16
mvePIEBALDconsult11-Jan-11 2:16 
AnswerRe: global vars names Pin
RaviRanjanKr12-Jan-11 4:25
professionalRaviRanjanKr12-Jan-11 4:25 
QuestionListBox control - Freezing one or more rows at top? Pin
AussieLew10-Jan-11 15:44
AussieLew10-Jan-11 15:44 
AnswerRe: ListBox control - Freezing one or more rows at top? Pin
Luc Pattyn10-Jan-11 17:56
sitebuilderLuc Pattyn10-Jan-11 17:56 
AFAIK the Windows ListBox does not support what you want. It insists on positioning the items itself, at best it will let you decide the height of an item, and let you draw the items. However to my knowledge it always scrolls everything. You may or may not paint your items outside the intended rectangle (part of the EventArgs), however I don't expect that to work properly.

I basically see two ways to get what you want, both taking more effort than you would hope:

1.
use a second ListBox, on top of the first, just showing the fixed items. And if their number and/or height isn't constant, that also means resizing/repositioning the ListBoxes.

2.
don't use a ListBox at all, in other words create your own.

And then of course there are companies that specialize in Controls (CodeProject is showing some ads for such companies) and may offer exactly what you want, but I'm not familiar with their offerings.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

QuestionYearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 8:40
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 8:40 
AnswerRe: Yearly Calendar Pin
Dalek Dave10-Jan-11 8:56
professionalDalek Dave10-Jan-11 8:56 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 9:13
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 9:13 
GeneralRe: Yearly Calendar Pin
Dalek Dave10-Jan-11 9:42
professionalDalek Dave10-Jan-11 9:42 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 9:48
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 9:48 
AnswerRe: Yearly Calendar Pin
Henry Minute10-Jan-11 11:17
Henry Minute10-Jan-11 11:17 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 11:30
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 11:30 
GeneralRe: Yearly Calendar Pin
Henry Minute10-Jan-11 12:05
Henry Minute10-Jan-11 12:05 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 13:25
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 13:25 
GeneralRe: Yearly Calendar Pin
Henry Minute10-Jan-11 13:45
Henry Minute10-Jan-11 13:45 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 14:01
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 14:01 
QuestionMysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
Piyush Vardhan Singh9-Jan-11 20:08
Piyush Vardhan Singh9-Jan-11 20:08 
AnswerRe: Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
Luc Pattyn10-Jan-11 0:50
sitebuilderLuc Pattyn10-Jan-11 0:50 
GeneralRe: Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
DaveyM6910-Jan-11 3:04
professionalDaveyM6910-Jan-11 3:04 
AnswerRe: Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
Bernhard Hiller10-Jan-11 4:34
Bernhard Hiller10-Jan-11 4:34 
AnswerRe: Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
phil.o10-Jan-11 5:16
professionalphil.o10-Jan-11 5:16 
AnswerRe: Mysql in vb.net2008 on vista then its give error(Unable to connect to any of the specified MySQL hosts.) Pin
Michael900017-Jan-11 9:09
Michael900017-Jan-11 9:09 

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.