i need to convert this code into C #.. i am having the same problem with my code as did this person.. i need to replace a item in a listbox with text from a text box using a button..
THis is the VB code:
Dim adu As Integer
Private Sub Command1_Click()
List1.AddItem Text1, adu
End Sub
Private Sub Form_Load()
List1.AddItem "Ravi"
List1.AddItem "Dinesh"
List1.AddItem "Sushmita"
List1.AddItem "Mrunalini"
End Sub
Private Sub List1_Click()
adu = List1.ListIndex
List1.RemoveItem adu
End Sub