Click here to Skip to main content
15,912,205 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondisable a listbox item... Pin
shaz jazz23-Jul-07 22:13
shaz jazz23-Jul-07 22:13 
AnswerRe: disable a listbox item... Pin
kubben24-Jul-07 2:25
kubben24-Jul-07 2:25 
GeneralRe: disable a listbox item... Pin
shaz jazz26-Jul-07 22:18
shaz jazz26-Jul-07 22:18 
GeneralRe: disable a listbox item... Pin
kubben27-Jul-07 1:21
kubben27-Jul-07 1:21 
GeneralRe: disable a listbox item... Pin
shaz jazz27-Jul-07 2:11
shaz jazz27-Jul-07 2:11 
GeneralRe: disable a listbox item... Pin
kubben27-Jul-07 2:12
kubben27-Jul-07 2:12 
GeneralRe: disable a listbox item... Pin
shaz jazz27-Jul-07 2:51
shaz jazz27-Jul-07 2:51 
GeneralRe: disable a listbox item... Pin
kubben27-Jul-07 3:16
kubben27-Jul-07 3:16 
Well, I guess you were right I was remembering the web control listbox. Still I think you can get something to work. The listbox has a SetSelected method on it, which takes an index and true or false if the item should be selected. So I would suggest you keep track of the index of the items that are double clicked and then on the click method check to see if they just clicked on one of the indexes that is not suppose to be selectedable and then call the SetSelected method and set that index back to false.

Hope that helps.
Ben
GeneralRe: disable a listbox item... Pin
shaz jazz27-Jul-07 3:37
shaz jazz27-Jul-07 3:37 
Questioni need a code for this please Pin
magedhv23-Jul-07 21:34
magedhv23-Jul-07 21:34 
AnswerRe: i need a code for this please Pin
Christian Graus23-Jul-07 22:21
protectorChristian Graus23-Jul-07 22:21 
GeneralHe doesn't listen Pin
leckey24-Jul-07 3:03
leckey24-Jul-07 3:03 
QuestionUsing Custom Action in Deployment Pin
MP9123-Jul-07 21:34
MP9123-Jul-07 21:34 
QuestionGeneral problem creating a UserControl Pin
gilchinger23-Jul-07 21:08
gilchinger23-Jul-07 21:08 
AnswerRe: General problem creating a UserControl Pin
Christian Graus23-Jul-07 23:19
protectorChristian Graus23-Jul-07 23:19 
GeneralRe: General problem creating a UserControl Pin
gilchinger24-Jul-07 0:23
gilchinger24-Jul-07 0:23 
QuestionCrystal Report in Picturebox Pin
ShuklaGirish23-Jul-07 20:52
ShuklaGirish23-Jul-07 20:52 
AnswerRe: Crystal Report in Picturebox Pin
Christian Graus23-Jul-07 20:57
protectorChristian Graus23-Jul-07 20:57 
Questionobject reference not set to an instance of an object Pin
Prem Ranjan23-Jul-07 20:41
Prem Ranjan23-Jul-07 20:41 
AnswerRe: object reference not set to an instance of an object Pin
Christian Graus23-Jul-07 20:56
protectorChristian Graus23-Jul-07 20:56 
GeneralRe: object reference not set to an instance of an object Pin
Paul Conrad23-Jul-07 20:59
professionalPaul Conrad23-Jul-07 20:59 
Questionstring issue Pin
Tauseef A23-Jul-07 17:53
Tauseef A23-Jul-07 17:53 
AnswerRe: string issue Pin
Paul Conrad23-Jul-07 18:49
professionalPaul Conrad23-Jul-07 18:49 
AnswerRe: string issue Pin
Ray Cassick23-Jul-07 18:50
Ray Cassick23-Jul-07 18:50 
AnswerRe: string issue Pin
Luc Pattyn24-Jul-07 2:27
sitebuilderLuc Pattyn24-Jul-07 2:27 

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.