Click here to Skip to main content
15,923,083 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Why Doesnt This Work Again? Pin
Colin Leitner30-Jul-02 9:02
Colin Leitner30-Jul-02 9:02 
GeneralRe: Why Doesnt This Work Again? Pin
Ryan B.30-Jul-02 9:34
Ryan B.30-Jul-02 9:34 
GeneralRe: Why Doesnt This Work Again? Pin
Colin Leitner30-Jul-02 9:48
Colin Leitner30-Jul-02 9:48 
GeneralRe: Why Doesnt This Work Again? Pin
Jason McBurney31-Jul-02 11:28
Jason McBurney31-Jul-02 11:28 
GeneralGetting events from a web page. Pin
Ray Cassick30-Jul-02 4:11
Ray Cassick30-Jul-02 4:11 
GeneralRe: Getting events from a web page. Pin
Colin Leitner30-Jul-02 9:30
Colin Leitner30-Jul-02 9:30 
QuestionHow to FTP in VB.Net? Pin
Felix200229-Jul-02 18:40
Felix200229-Jul-02 18:40 
Generaladd object to listbox Pin
mgriffith29-Jul-02 5:48
mgriffith29-Jul-02 5:48 
i have created a simple class and want to add it to a listbox using the overloaded tostring() method...i've seen this done in about 10 examples, and straight from msdn, but it's not working for me (using a System.Web.UI.WebControls.ListBox)

even with a simple class:
-------------------
| Public Class asdf
| Public Overrides Function ToString() As String
| Return "asdf"
| End Function
| End Class
-------------------
i try to call
-------------------
| lstboxMyListBox.Items.Add(new asdf())
-------------------
or even
-------------------
| cstr(new asdf())
-------------------
and it won't let it compile because:
"Value of Type 'mynamespace.asdf' cannot be converted to 'String'"

i then tried this:
-------------------
| Public Class asdf
| Public Overloads Overrides Property ToString() As String
| Get
| Return "asdf"
| End Get
| Set(ByVal Value As String)
|
| End Set
| End Property
| End Class
-------------------
but i get an error compiling the class because:
"'ToString' conflicts with a function by the same name declared in 'Object'"

any ideas Unsure | :~


michael griffith
--------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
GeneralRe: add object to listbox Pin
Colin Leitner30-Jul-02 9:13
Colin Leitner30-Jul-02 9:13 
GeneralRe: add object to listbox Pin
mgriffith30-Jul-02 9:19
mgriffith30-Jul-02 9:19 
GeneralClipboardproblems = ( Pin
Anonymous27-Jul-02 0:50
Anonymous27-Jul-02 0:50 
GeneralWebBrowser Pin
Anonymous26-Jul-02 9:34
Anonymous26-Jul-02 9:34 
GeneraloverFlow... Pin
Anonymous25-Jul-02 22:08
Anonymous25-Jul-02 22:08 
GeneralRe: overFlow... Pin
SimonS25-Jul-02 23:35
SimonS25-Jul-02 23:35 
GeneralRe: overFlow... Pin
Anonymous26-Jul-02 0:25
Anonymous26-Jul-02 0:25 
GeneralRe: overFlow... Pin
SimonS26-Jul-02 2:16
SimonS26-Jul-02 2:16 
GeneralRe: overFlow... Pin
Anonymous28-Jul-02 18:07
Anonymous28-Jul-02 18:07 
GeneralVery strange stuff.. Pin
Ray Cassick25-Jul-02 20:16
Ray Cassick25-Jul-02 20:16 
GeneralRe: Very strange stuff.. Pin
Richard Deeming26-Jul-02 5:39
mveRichard Deeming26-Jul-02 5:39 
GeneralRe: Very strange stuff.. Pin
Ray Cassick26-Jul-02 9:07
Ray Cassick26-Jul-02 9:07 
GeneralMessage Handler in VB.NET Pin
JGraves25-Jul-02 11:11
JGraves25-Jul-02 11:11 
GeneralRe: Message Handler in VB.NET Pin
Richard Deeming26-Jul-02 5:53
mveRichard Deeming26-Jul-02 5:53 
GeneralRe: Message Handler in VB.NET Pin
JGraves26-Jul-02 8:46
JGraves26-Jul-02 8:46 
GeneralRe: Message Handler in VB.NET Pin
Richard Deeming29-Jul-02 1:21
mveRichard Deeming29-Jul-02 1:21 
GeneralRe: Message Handler in VB.NET Pin
JGraves29-Jul-02 4:18
JGraves29-Jul-02 4:18 

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.