Click here to Skip to main content
15,499,046 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB.Net 2008 Pin
Virendra Singh Bhanu16-May-14 1:29
MemberVirendra Singh Bhanu16-May-14 1:29 
AnswerRe: VB.Net 2008 Pin
Richard MacCutchan16-May-14 1:50
mveRichard MacCutchan16-May-14 1:50 
GeneralRe: VB.Net 2008 Pin
Virendra Singh Bhanu16-May-14 1:56
MemberVirendra Singh Bhanu16-May-14 1:56 
GeneralRe: VB.Net 2008 Pin
Richard MacCutchan16-May-14 2:14
mveRichard MacCutchan16-May-14 2:14 
QuestionRe: VB.Net 2008 Pin
Eddy Vluggen16-May-14 4:02
professionalEddy Vluggen16-May-14 4:02 
QuestionList(Of ObjectWithProperties) distinct property values Pin
Johan Hakkesteegt15-May-14 4:32
MemberJohan Hakkesteegt15-May-14 4:32 
AnswerRe: List(Of ObjectWithProperties) distinct property values Pin
Richard MacCutchan15-May-14 4:49
mveRichard MacCutchan15-May-14 4:49 
AnswerRe: List(Of ObjectWithProperties) distinct property values Pin
David Mujica15-May-14 7:32
MemberDavid Mujica15-May-14 7:32 
It appears that there is an overload to the .Distinct method where you pass it a function which does the comparison for you. In this function, you would implement the compare of the department field only.

Check this out ...
http://msdn.microsoft.com/en-us/library/vstudio/bb920306(v=vs.90).aspx[^]

And this example code ...
http://msdn.microsoft.com/en-us/library/vstudio/bb338049(v=vs.90).aspx[^]

Hope this helps.
Thumbs Up | :thumbsup:
AnswerRe: List(Of ObjectWithProperties) distinct property values Pin
Eddy Vluggen15-May-14 8:53
professionalEddy Vluggen15-May-14 8:53 
GeneralRe: List(Of ObjectWithProperties) distinct property values Pin
Johan Hakkesteegt15-May-14 21:16
MemberJohan Hakkesteegt15-May-14 21:16 
GeneralRe: List(Of ObjectWithProperties) distinct property values Pin
Mycroft Holmes15-May-14 23:41
professionalMycroft Holmes15-May-14 23:41 
QuestionWindow Service Does Not Stay "Alive" While Running Pin
ToolTimeTabor14-May-14 16:13
MemberToolTimeTabor14-May-14 16:13 
AnswerRe: Window Service Does Not Stay "Alive" While Running Pin
Bernhard Hiller14-May-14 22:51
MemberBernhard Hiller14-May-14 22:51 
AnswerRe: Window Service Does Not Stay "Alive" While Running Pin
Eddy Vluggen15-May-14 4:00
professionalEddy Vluggen15-May-14 4:00 
AnswerRe: Window Service Does Not Stay "Alive" While Running Pin
David Mujica15-May-14 7:25
MemberDavid Mujica15-May-14 7:25 
QuestionIf/and Statements Pin
David Rubin13-May-14 13:34
MemberDavid Rubin13-May-14 13:34 
AnswerRe: If/and Statements Pin
Peter Leow13-May-14 15:33
professionalPeter Leow13-May-14 15:33 
AnswerRe: If/and Statements Pin
charliedev14-May-14 20:20
Membercharliedev14-May-14 20:20 
Questionsave images as .gif Pin
khei-chan00712-May-14 18:44
Memberkhei-chan00712-May-14 18:44 
AnswerRe: save images as .gif Pin
Chris Quinn12-May-14 21:56
MemberChris Quinn12-May-14 21:56 
GeneralRe: save images as .gif Pin
khei-chan00712-May-14 22:25
Memberkhei-chan00712-May-14 22:25 
GeneralSaving Image as Gif Pin
I. Bandaranayake13-May-14 2:49
MemberI. Bandaranayake13-May-14 2:49 
AnswerRe: save images as .gif Pin
Richard MacCutchan12-May-14 23:47
mveRichard MacCutchan12-May-14 23:47 
QuestionMapWinGis project in Visual Basic.NET Pin
Member 1081056711-May-14 8:32
MemberMember 1081056711-May-14 8:32 
QuestionVB CODE TO RECEIVE SMS THROUGH GSM MODEM Pin
elly ianto10-May-14 3:34
Memberelly ianto10-May-14 3:34 

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.