Click here to Skip to main content
15,889,909 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How i can change System's Date format at run time in vb.net? Pin
Paul Conrad22-Apr-08 4:59
professionalPaul Conrad22-Apr-08 4:59 
QuestionHow to save and read data in and from Application.myapp file Save Pin
monafr8122-Apr-08 0:18
monafr8122-Apr-08 0:18 
GeneralFile saving/moving query Pin
Dalek Dave21-Apr-08 23:37
professionalDalek Dave21-Apr-08 23:37 
GeneralRe: File saving/moving query Pin
ChandraRam22-Apr-08 0:46
ChandraRam22-Apr-08 0:46 
GeneralTcpListener problem Pin
shee_dee8621-Apr-08 21:54
shee_dee8621-Apr-08 21:54 
GeneralRe: TcpListener problem Pin
Anoop Brijmohun22-Apr-08 3:09
Anoop Brijmohun22-Apr-08 3:09 
Questionregarding TableLayoutPanel control in vb.net 2.0 Pin
vijaylumar21-Apr-08 21:54
vijaylumar21-Apr-08 21:54 
Generaldisabled item in checkedlistbox Pin
helelark12321-Apr-08 21:44
helelark12321-Apr-08 21:44 
Hello,

I am working in VB.NET (VS2005)

I need to disabled an item in CheckedListBox.
I know that I have to do as following: chk.items(No).enabled=false.
But in my case it is a little different:

Here is my code:

'In Form1
chk.Items.Add(New clsItem(ID1, Name1))
chk.Items.Add(New clsItem(ID2, Name2))
chk.Items.Add(New clsItem(ID3, Name3))

'Class
Public Class clsItem
Private ID As Integer, Name As String

Public Sub New(ByVal _ID As Integer, ByVal _Name As String)
ID = _ID
Name = _Name
End Sub

Public Overrides Function ToString() As String
Return Name
End Function

Property ItemID() As Integer
Get
Return ID
End Get
Set(ByVal value As Integer)
ID = value
End Set
End Property

Property ItemName() As String
Get
Return Name
End Get
Set(ByVal value As String)
Name = value
End Set
End Property
End Class

How can I disable one of my items now?

Thank you

Shay Noy

GeneralRe: disabled item in checkedlistbox Pin
C1AllenS22-Apr-08 4:47
C1AllenS22-Apr-08 4:47 
GeneralRe: disabled item in checkedlistbox Pin
helelark12322-Apr-08 19:26
helelark12322-Apr-08 19:26 
QuestionUpdating a control's text from another class...? Pin
Gadjuka21-Apr-08 21:21
Gadjuka21-Apr-08 21:21 
GeneralRe: Updating a control's text from another class...? Pin
Christian Graus21-Apr-08 21:23
protectorChristian Graus21-Apr-08 21:23 
GeneralRe: Updating a control's text from another class...? Pin
Gadjuka21-Apr-08 22:13
Gadjuka21-Apr-08 22:13 
GeneralRe: Updating a control's text from another class...? Pin
ChandraRam22-Apr-08 0:49
ChandraRam22-Apr-08 0:49 
GeneralRe: Updating a control's text from another class...? Pin
drgbg22-Apr-08 18:22
drgbg22-Apr-08 18:22 
GeneralRe: Updating a control's text from another class...? Pin
Gadjuka22-Apr-08 21:43
Gadjuka22-Apr-08 21:43 
GeneralRe: Updating a control's text from another class...? Pin
drgbg23-Apr-08 0:22
drgbg23-Apr-08 0:22 
GeneralRetrieving Html code of web site Pin
sumit703421-Apr-08 20:58
sumit703421-Apr-08 20:58 
GeneralRe: Retrieving Html code of web site Pin
Steven J Jowett22-Apr-08 22:30
Steven J Jowett22-Apr-08 22:30 
GeneralPage SetUp in DataReport (VisualBasic) Pin
Vignesh Krishnan21-Apr-08 20:20
Vignesh Krishnan21-Apr-08 20:20 
GeneralRe: Page SetUp in DataReport (VisualBasic) Pin
r_mohd21-Apr-08 23:08
r_mohd21-Apr-08 23:08 
GeneralRe: Page SetUp in DataReport (VisualBasic) Pin
Vignesh Krishnan22-Apr-08 0:48
Vignesh Krishnan22-Apr-08 0:48 
GeneralOpening multiple web sites Pin
sumit703421-Apr-08 18:23
sumit703421-Apr-08 18:23 
GeneralRe: Opening multiple web sites Pin
Christian Graus21-Apr-08 18:34
protectorChristian Graus21-Apr-08 18:34 
GeneralRe: Opening multiple web sites Pin
sumit703421-Apr-08 18:52
sumit703421-Apr-08 18:52 

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.