Click here to Skip to main content
15,899,679 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionBarcode 128 Generation in vb 6 Pin
Tufail Ahmad30-Oct-09 18:59
Tufail Ahmad30-Oct-09 18:59 
AnswerRe: Barcode 128 Generation in vb 6 Pin
Christian Graus30-Oct-09 19:17
protectorChristian Graus30-Oct-09 19:17 
AnswerRe: Barcode 128 Generation in vb 6 Pin
DaveAuld30-Oct-09 23:59
professionalDaveAuld30-Oct-09 23:59 
QuestionMulti Level Database programming in VB !! Pin
jeshra27930-Oct-09 8:02
jeshra27930-Oct-09 8:02 
AnswerParent / Child Relationship Pin
David Mujica30-Oct-09 8:39
David Mujica30-Oct-09 8:39 
QuestionHow to programmatically selected a value in a datagridviewcomboboxcolumn? [modified] Pin
Jon_Boy30-Oct-09 5:22
Jon_Boy30-Oct-09 5:22 
QuestionSort in ComboBox Pin
ivo7529-Oct-09 9:00
ivo7529-Oct-09 9:00 
AnswerRe: Sort in ComboBox Pin
Luc Pattyn29-Oct-09 9:25
sitebuilderLuc Pattyn29-Oct-09 9:25 
You can get the "logical sort order" by using P/Invoke and the same code Windows Explorer does for sorting file names. I only have a C# snippet:
C#
private class LP_StringComparerLogical : IComparer<string> {
    public int Compare(string s1, string s2) {
        if (s1!=null && s2!=null) return StrCmpLogicalW(s1, s2);
        else return string.Compare(s1, s2, true);
    }
}

[DllImport("shlwapi.dll", CharSet=CharSet.Unicode, ExactSpelling=true)]
private static extern int StrCmpLogicalW(string s1, string s2);


The prototype (see last 2 lines) probably looks like this in VB.NET:
VB
Declare Unicode StrCmpLogicalW Lib "shlwapi.dll" (s1 As String, s2 As String)


Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


modified on Thursday, October 29, 2009 3:37 PM

QuestionSet DateTimePicker date Pin
ivo7529-Oct-09 7:47
ivo7529-Oct-09 7:47 
AnswerRe: Set DateTimePicker date Pin
John M Bundy29-Oct-09 8:06
John M Bundy29-Oct-09 8:06 
GeneralRe: Set DateTimePicker date Pin
ivo7529-Oct-09 8:19
ivo7529-Oct-09 8:19 
AnswerRe: Set DateTimePicker date Pin
Luc Pattyn29-Oct-09 8:09
sitebuilderLuc Pattyn29-Oct-09 8:09 
GeneralRe: Set DateTimePicker date Pin
EliottA29-Oct-09 8:40
EliottA29-Oct-09 8:40 
GeneralRe: Set DateTimePicker date Pin
Luc Pattyn29-Oct-09 8:43
sitebuilderLuc Pattyn29-Oct-09 8:43 
GeneralRe: Set DateTimePicker date Pin
DaveAuld29-Oct-09 9:29
professionalDaveAuld29-Oct-09 9:29 
QuestionRefreshig a form with dynamic buttons. Pin
Rudyvb0829-Oct-09 4:24
Rudyvb0829-Oct-09 4:24 
AnswerRe: Refreshig a form with dynamic buttons. [modified] Pin
Covean29-Oct-09 4:54
Covean29-Oct-09 4:54 
AnswerRe: Refreshig a form with dynamic buttons. Pin
Ian Shlasko29-Oct-09 5:06
Ian Shlasko29-Oct-09 5:06 
GeneralRe: Refreshig a form with dynamic buttons. Pin
Rudyvb0829-Oct-09 6:14
Rudyvb0829-Oct-09 6:14 
GeneralRe: Refreshig a form with dynamic buttons. Pin
Ian Shlasko29-Oct-09 6:44
Ian Shlasko29-Oct-09 6:44 
GeneralRe: Refreshig a form with dynamic buttons. Pin
Rudyvb0829-Oct-09 6:59
Rudyvb0829-Oct-09 6:59 
Questionregarding functions Pin
vijaylumar29-Oct-09 2:19
vijaylumar29-Oct-09 2:19 
AnswerRe: regarding functions Pin
nlarson1129-Oct-09 2:28
nlarson1129-Oct-09 2:28 
AnswerCross Post Pin
EliottA29-Oct-09 3:20
EliottA29-Oct-09 3:20 
Questioninsert current date in sql server 2005 Pin
silex_abhi28-Oct-09 23:29
silex_abhi28-Oct-09 23:29 

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.