Click here to Skip to main content
15,886,104 members
Home / Discussions / C#
   

C#

 
GeneralRe: Operator '==' cannot be applied to operands of type 'string' and 'int' Pin
bigphish12-Jan-12 23:03
bigphish12-Jan-12 23:03 
GeneralRe: Operator '==' cannot be applied to operands of type 'string' and 'int' Pin
BobJanova12-Jan-12 23:17
BobJanova12-Jan-12 23:17 
AnswerRe: Operator '==' cannot be applied to operands of type 'string' and 'int' Pin
V.12-Jan-12 23:18
professionalV.12-Jan-12 23:18 
GeneralRe: Operator '==' cannot be applied to operands of type 'string' and 'int' Pin
Wayne Gaylard12-Jan-12 23:19
professionalWayne Gaylard12-Jan-12 23:19 
GeneralRe: Operator '==' cannot be applied to operands of type 'string' and 'int' Pin
bigphish13-Jan-12 8:35
bigphish13-Jan-12 8:35 
AnswerRe: Operator '==' cannot be applied to operands of type 'string' and 'int' Pin
Mc_Topaz13-Jan-12 4:07
Mc_Topaz13-Jan-12 4:07 
QuestionHow to auto scroll listbox on selection? Pin
GubiD12-Jan-12 5:52
GubiD12-Jan-12 5:52 
AnswerRe: How to auto scroll listbox on selection? Pin
Luc Pattyn12-Jan-12 6:45
sitebuilderLuc Pattyn12-Jan-12 6:45 
Hi,

yes TopIndex is the way to go.

If the item height is constant (DrawMode.OwnerDrawFixed), the properties Height and ItemHeight should let you calculate how many items are visible at once.

if the item height is variable (DrawMode.OwnerDrawVariable) you had to provide a way to calculate the height (MeasureItem event), so you could use that method to decide how you want to spend your ListBox height.

For softscrolling, you would need access to the scrollbar itself and set its value, rather than TopIndex; I haven't done this, and I expect the ListBox to overrule you. You might have to replace the ListBox by a big-panel-in-autoscrolling-panel approach (this[^] could serve as a starter).

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

AnswerRe: How to auto scroll listbox on selection? Pin
BobJanova12-Jan-12 23:21
BobJanova12-Jan-12 23:21 
QuestionIs there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
turbosupramk312-Jan-12 4:45
turbosupramk312-Jan-12 4:45 
AnswerRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
Richard MacCutchan12-Jan-12 4:58
mveRichard MacCutchan12-Jan-12 4:58 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
turbosupramk312-Jan-12 6:29
turbosupramk312-Jan-12 6:29 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
Richard MacCutchan12-Jan-12 6:48
mveRichard MacCutchan12-Jan-12 6:48 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
turbosupramk312-Jan-12 8:42
turbosupramk312-Jan-12 8:42 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
jschell12-Jan-12 13:04
jschell12-Jan-12 13:04 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
turbosupramk312-Jan-12 13:07
turbosupramk312-Jan-12 13:07 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
jschell13-Jan-12 8:48
jschell13-Jan-12 8:48 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
turbosupramk313-Jan-12 9:07
turbosupramk313-Jan-12 9:07 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
Richard MacCutchan12-Jan-12 21:43
mveRichard MacCutchan12-Jan-12 21:43 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
BobJanova12-Jan-12 23:29
BobJanova12-Jan-12 23:29 
AnswerRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
jschell14-Jan-12 6:45
jschell14-Jan-12 6:45 
QuestionSerial port Windows 8 WinRT Pin
Member 834721012-Jan-12 2:54
Member 834721012-Jan-12 2:54 
QuestionHow to do image closing for ABBYY Finereader Engine 10 Pin
YongSiang11-Jan-12 14:55
YongSiang11-Jan-12 14:55 
AnswerRe: How to do image closing for ABBYY Finereader Engine 10 Pin
Pete O'Hanlon11-Jan-12 21:18
mvePete O'Hanlon11-Jan-12 21:18 
QuestionC# COM object and PowerBuilder Pin
TimWallace11-Jan-12 10:54
TimWallace11-Jan-12 10:54 

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.