Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: What is the .Net equiv to this VB6 format statement Pin
The Man from U.N.C.L.E.16-Jun-09 7:42
The Man from U.N.C.L.E.16-Jun-09 7:42 
GeneralRe: What is the .Net equiv to this VB6 format statement Pin
Jon_Boy16-Jun-09 7:58
Jon_Boy16-Jun-09 7:58 
GeneralRe: What is the .Net equiv to this VB6 format statement Pin
The Man from U.N.C.L.E.16-Jun-09 8:04
The Man from U.N.C.L.E.16-Jun-09 8:04 
GeneralRe: What is the .Net equiv to this VB6 format statement Pin
Jon_Boy16-Jun-09 8:42
Jon_Boy16-Jun-09 8:42 
GeneralRe: What is the .Net equiv to this VB6 format statement Pin
Henry Minute16-Jun-09 8:50
Henry Minute16-Jun-09 8:50 
GeneralRe: What is the .Net equiv to this VB6 format statement Pin
Jon_Boy16-Jun-09 9:01
Jon_Boy16-Jun-09 9:01 
AnswerRe: What is the .Net equiv to this VB6 format statement Pin
The Man from U.N.C.L.E.16-Jun-09 22:40
The Man from U.N.C.L.E.16-Jun-09 22:40 
GeneralRe: What is the .Net equiv to this VB6 format statement [modified] Pin
Jon_Boy17-Jun-09 6:05
Jon_Boy17-Jun-09 6:05 
I thought about having a maskedtextbox object do it for me, but this is for an import process in a .dll and thought it would be a "corny fix".

I think your suggestion is great and I was totally unaware about the MaskedTextProvider.

Thanks!

EDIT:
Just did some benchmarks with some slight modifications to your suggestion while iterating through several million string values. The maskedTextProvider method is over 6x faster than the substring! Doh!

"There's no such thing as a stupid question, only stupid people." - Mr. Garrison

modified on Wednesday, June 17, 2009 12:47 PM

QuestionForm Loading in VB .net [modified] Pin
No-e16-Jun-09 4:59
No-e16-Jun-09 4:59 
AnswerRe: Form Loading in VB .net [modified] Pin
dan!sh 16-Jun-09 5:34
professional dan!sh 16-Jun-09 5:34 
GeneralRe: Form Loading in VB .net Pin
Colin Angus Mackay16-Jun-09 5:43
Colin Angus Mackay16-Jun-09 5:43 
GeneralRe: Form Loading in VB .net Pin
dan!sh 16-Jun-09 5:50
professional dan!sh 16-Jun-09 5:50 
GeneralRe: Form Loading in VB .net Pin
No-e16-Jun-09 6:08
No-e16-Jun-09 6:08 
AnswerRe: Form Loading in VB .net Pin
Henry Minute16-Jun-09 6:41
Henry Minute16-Jun-09 6:41 
GeneralRe: Form Loading in VB .net Pin
No-e16-Jun-09 7:01
No-e16-Jun-09 7:01 
GeneralRe: Form Loading in VB .net Pin
Henry Minute16-Jun-09 7:06
Henry Minute16-Jun-09 7:06 
QuestionConvert a string to unicode Pin
mosche7516-Jun-09 4:17
mosche7516-Jun-09 4:17 
AnswerRe: Convert a string to unicode Pin
Luc Pattyn16-Jun-09 4:54
sitebuilderLuc Pattyn16-Jun-09 4:54 
GeneralRe: Convert a string to unicode Pin
mosche7516-Jun-09 19:45
mosche7516-Jun-09 19:45 
GeneralRe: Convert a string to unicode Pin
Luc Pattyn16-Jun-09 23:10
sitebuilderLuc Pattyn16-Jun-09 23:10 
Questionxml root Pin
Ebube16-Jun-09 2:43
Ebube16-Jun-09 2:43 
AnswerRe: xml root Pin
EliottA16-Jun-09 2:52
EliottA16-Jun-09 2:52 
GeneralRe: xml root Pin
Luc Pattyn16-Jun-09 3:49
sitebuilderLuc Pattyn16-Jun-09 3:49 
GeneralRe: xml root Pin
Ebube16-Jun-09 5:23
Ebube16-Jun-09 5:23 
GeneralRe: xml root Pin
The Man from U.N.C.L.E.16-Jun-09 7:29
The Man from U.N.C.L.E.16-Jun-09 7: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.