Click here to Skip to main content
16,004,974 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionOLEDbCommand Locks entire Access Db Pin
jcrussell30-Apr-06 17:09
jcrussell30-Apr-06 17:09 
QuestionLogoff/logon in windows, app still running, change user Pin
B*C30-Apr-06 14:36
B*C30-Apr-06 14:36 
AnswerRe: Logoff/logon in windows, app still running, change user Pin
B*C1-May-06 4:25
B*C1-May-06 4:25 
QuestionHelp displaying a structure in a sortedlist Pin
crash89330-Apr-06 11:18
crash89330-Apr-06 11:18 
AnswerRe: Help displaying a structure in a sortedlist Pin
Robert Rohde30-Apr-06 22:22
Robert Rohde30-Apr-06 22:22 
GeneralRe: Help displaying a structure in a sortedlist Pin
crash8931-May-06 7:31
crash8931-May-06 7:31 
GeneralRe: Help displaying a structure in a sortedlist Pin
crash8931-May-06 7:37
crash8931-May-06 7:37 
GeneralRe: Help displaying a structure in a sortedlist Pin
Robert Rohde1-May-06 20:12
Robert Rohde1-May-06 20:12 
Hi,

sorry about the C# code. Sometimes I just forget in which forum I am Smile | :)
I assume your code runs inside a loop over all entries.
After that (such that upassinfo is completely filled) place the following code:
Dim userarray As user()
ReDim userarray(ipassinfo.Values.Count)

ipassinfo.Values.CopyTo(userarray, 0)
userarray.Sort(userarray, New MyStructComparator)
Dim u As user
For Each u In userarray
   'do something in sorted order
Next


Moreover you'll need this class:
Public Class MyStructComparator
   Implements IComparer
   Public Overridable Function Compare(ByVal x As Object,
       ByVal y As Object) As Integer Implements IComparer.Compare
            Return CType(x, user).department.CompareTo(CType(y, user).department)
   End Function
End Class

QuestionMS office connections Pin
DoubleD82230-Apr-06 10:59
DoubleD82230-Apr-06 10:59 
QuestionHi , please help me Pin
Mohammed Amine30-Apr-06 6:27
Mohammed Amine30-Apr-06 6:27 
GeneralRe: Hi , please help me Pin
Guffa30-Apr-06 7:13
Guffa30-Apr-06 7:13 
AnswerRe: Hi , please help me Pin
Colin Angus Mackay30-Apr-06 21:07
Colin Angus Mackay30-Apr-06 21:07 
Questionwhat is behind this label ?? ;p Pin
Mohammed Amine30-Apr-06 5:56
Mohammed Amine30-Apr-06 5:56 
AnswerRe: what is behind this label ?? ;p Pin
_mubashir30-Apr-06 21:44
_mubashir30-Apr-06 21:44 
GeneralRe: what is behind this label ?? ;p Pin
Mohammed Amine1-May-06 0:47
Mohammed Amine1-May-06 0:47 
Questionprint out IN VB.NET 1.1 Pin
pankajgarg1230-Apr-06 4:59
pankajgarg1230-Apr-06 4:59 
AnswerRe: print out IN VB.NET 1.1 Pin
Dave Kreskowiak30-Apr-06 5:17
mveDave Kreskowiak30-Apr-06 5:17 
QuestionMove file to Directory Pin
lo_ol30-Apr-06 4:19
lo_ol30-Apr-06 4:19 
AnswerRe: Move file to Directory Pin
Dave Kreskowiak30-Apr-06 5:20
mveDave Kreskowiak30-Apr-06 5:20 
GeneralRe: Move file to Directory Pin
lo_ol30-Apr-06 10:07
lo_ol30-Apr-06 10:07 
QuestionUsing an on-screen keypad Pin
Rumbo30-Apr-06 2:54
Rumbo30-Apr-06 2:54 
AnswerRe: Using an on-screen keypad Pin
Dave Kreskowiak30-Apr-06 5:13
mveDave Kreskowiak30-Apr-06 5:13 
QuestionMDI Problem Pin
MAP Tiger29-Apr-06 22:05
MAP Tiger29-Apr-06 22:05 
AnswerRe: MDI Problem Pin
Dave Kreskowiak30-Apr-06 5:06
mveDave Kreskowiak30-Apr-06 5:06 
GeneralRe: MDI Problem Pin
MAP Tiger30-Apr-06 5:24
MAP Tiger30-Apr-06 5:24 

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.