Click here to Skip to main content
15,612,449 members
Home / Discussions / C#
   

C#

 
GeneralRe: Exchange Server Address Book Pin
Corinna John5-Sep-04 20:42
Corinna John5-Sep-04 20:42 
GeneralRe: Exchange Server Address Book Pin
FredSP6-Sep-04 2:49
FredSP6-Sep-04 2:49 
GeneralRe: Exchange Server Address Book Pin
Corinna John6-Sep-04 3:41
Corinna John6-Sep-04 3:41 
GeneralSocket remote node disconnection Pin
Den2Fly5-Sep-04 18:08
Den2Fly5-Sep-04 18:08 
GeneralRe: Socket remote node disconnection Pin
Pradeep Shamarao5-Sep-04 21:47
Pradeep Shamarao5-Sep-04 21:47 
GeneralCustomizing a ListBox Pin
eggie55-Sep-04 16:58
eggie55-Sep-04 16:58 
GeneralRe: Customizing a ListBox Pin
mav.northwind6-Sep-04 2:35
mav.northwind6-Sep-04 2:35 
GeneralRe: Customizing a ListBox Pin
Werdna6-Sep-04 9:49
Werdna6-Sep-04 9:49 
You do not have to add Tag to listbox. Listbox already displays objects.
For example if you have:
class Customer
{
public FirstName { return this.firstName; };
public LastName { return this.lastName; };
...
}

then just add Custom to the listbox. So if in ListView you used Tag to get the data, for listbox you would just get the object:
Customer selectedCustomer = (Customer)listbox.SelectedItem;

if you want to display custom information, you can use DisplayMember. For example if you wanted to display first and last name, add to your Customer class:
public FirstLastName
{
get { return firstName + " " + lastName; }
}

and set in listbox:
listbox.DisplayMember = "FirstLastName";


GeneralRe: Customizing a ListBox Pin
eggie56-Sep-04 19:32
eggie56-Sep-04 19:32 
GeneralRe: Customizing a ListBox Pin
Werdna7-Sep-04 3:59
Werdna7-Sep-04 3:59 
GeneralRe: Customizing a ListBox Pin
eggie57-Sep-04 14:01
eggie57-Sep-04 14:01 
QuestionCan I use Visual C# Standard commercially? Pin
kusanagi20005-Sep-04 15:35
kusanagi20005-Sep-04 15:35 
AnswerRe: Can I use Visual C# Standard commercially? Pin
Christian Graus5-Sep-04 15:38
mveChristian Graus5-Sep-04 15:38 
GeneralRe: Can I use Visual C# Standard commercially? Pin
kusanagi20005-Sep-04 16:33
kusanagi20005-Sep-04 16:33 
GeneralGradientPanel Pin
Asciono5-Sep-04 13:29
Asciono5-Sep-04 13:29 
GeneralRe: GradientPanel Pin
mav.northwind5-Sep-04 20:10
mav.northwind5-Sep-04 20:10 
GeneralMachine Info Pin
Moon Boy5-Sep-04 13:17
Moon Boy5-Sep-04 13:17 
GeneralRe: Machine Info Pin
eggie55-Sep-04 14:20
eggie55-Sep-04 14:20 
GeneralRe: Machine Info Pin
Mazdak5-Sep-04 20:39
Mazdak5-Sep-04 20:39 
GeneralRe: Machine Info Pin
heile6-Sep-04 19:10
heile6-Sep-04 19:10 
QuestionOnKeyDown not getting arrow keys ? Pin
Christian Graus5-Sep-04 12:30
mveChristian Graus5-Sep-04 12:30 
AnswerRe: onkeydown not getting arrow keys ? Pin
Werdna6-Sep-04 9:53
Werdna6-Sep-04 9:53 
GeneralRe: onkeydown not getting arrow keys ? Pin
Christian Graus6-Sep-04 10:40
mveChristian Graus6-Sep-04 10:40 
Generaldifferential comparison algo Pin
sho125-Sep-04 10:37
sho125-Sep-04 10:37 
GeneralRe: differential comparison algo Pin
Christian Graus5-Sep-04 12:31
mveChristian Graus5-Sep-04 12:31 

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.