Click here to Skip to main content
15,925,782 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: need help urgently - implementation of edge detection Pin
Joshua Quick13-Feb-06 15:13
Joshua Quick13-Feb-06 15:13 
QuestionExtra space added to a records data fields Pin
Jlawrnce13-Feb-06 11:03
Jlawrnce13-Feb-06 11:03 
AnswerRe: Extra space added to a records data fields Pin
Jlawrnce13-Feb-06 12:32
Jlawrnce13-Feb-06 12:32 
AnswerRe: Extra space added to a records data fields Pin
Dave Kreskowiak13-Feb-06 17:21
mveDave Kreskowiak13-Feb-06 17:21 
AnswerRe: Extra space added to a records data fields Pin
Pankaj Kulkarni14-Feb-06 0:59
Pankaj Kulkarni14-Feb-06 0:59 
QuestionNavigation Panel Pin
ssfargade13-Feb-06 10:25
ssfargade13-Feb-06 10:25 
AnswerRe: Navigation Panel Pin
Joshua Quick13-Feb-06 11:26
Joshua Quick13-Feb-06 11:26 
GeneralRe: Navigation Panel Pin
Mekong River13-Feb-06 14:46
Mekong River13-Feb-06 14:46 
Questionconvert date to string Pin
ssfargade13-Feb-06 10:17
ssfargade13-Feb-06 10:17 
AnswerRe: convert date to string Pin
Joshua Quick13-Feb-06 11:17
Joshua Quick13-Feb-06 11:17 
AnswerRe: convert date to string Pin
eagertolearn14-Feb-06 7:00
eagertolearn14-Feb-06 7:00 
Questiondatagrid visualization problem Pin
Marc Soleda13-Feb-06 9:17
Marc Soleda13-Feb-06 9:17 
AnswerRe: datagrid visualization problem Pin
Marc Soleda13-Feb-06 9:47
Marc Soleda13-Feb-06 9:47 
QuestionVB.NET Windows Form Reading Excel dumping data into SQL server Pin
culbysl13-Feb-06 9:15
culbysl13-Feb-06 9:15 
AnswerRe: VB.NET Windows Form Reading Excel dumping data into SQL server Pin
Dave Kreskowiak14-Feb-06 8:28
mveDave Kreskowiak14-Feb-06 8:28 
QuestionGenerate PDF report Pin
eagertolearn13-Feb-06 7:54
eagertolearn13-Feb-06 7:54 
AnswerRe: Generate PDF report Pin
malharone13-Feb-06 8:28
malharone13-Feb-06 8:28 
GeneralRe: Generate PDF report Pin
eagertolearn14-Feb-06 6:58
eagertolearn14-Feb-06 6:58 
AnswerRe: Generate PDF report Pin
Mekong River13-Feb-06 14:50
Mekong River13-Feb-06 14:50 
QuestionICustomFormatter and IFormattable Pin
Jason McBurney13-Feb-06 5:36
Jason McBurney13-Feb-06 5:36 
AnswerRe: ICustomFormatter and IFormattable Pin
Dave Kreskowiak14-Feb-06 8:17
mveDave Kreskowiak14-Feb-06 8:17 
ICustomFormatter lets you define entirely custom formatter for your object. You don't have to impement or specify which standard formatting codes, like G or N, that your formatter supports because you're providing the ENTIRE formatting implementation yourself, including parsing custom formatting commands in the format string (object.ToString("customFormattingCodes"). You're extending the standard set of codes with your own.

The IFormattable interface says that you're not extending the existing set of foratting codes, but just providing custom implementations for the standard set of codes, with respect to the current culture. At a minimum, your code must support the standard formatting code "G", or General format. You can supply custom formatters for any and all of the standard formats.

For example, consider the "C", Currency format. There is a standard implementation for a floating point number and returns a string representation of the number, formatted to what is specified in the current culture. You could implement your own, similar functionality on any of your own custom objects, even those that don't directly represent a number. Your custom formatter for Currency would respond to the standard format string "C", like this: myCustomObject.ToString("C").


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

Questionabout menu?can anybody help me? Pin
flashmemory13-Feb-06 5:34
flashmemory13-Feb-06 5:34 
AnswerRe: about menu?can anybody help me? Pin
malharone13-Feb-06 7:26
malharone13-Feb-06 7:26 
Questionreading third party Snap-in information in MMC programatically Pin
krompo13-Feb-06 4:34
krompo13-Feb-06 4:34 
Question[datagrid/winforms] create column with custom control in every row Pin
Y3PP3R13-Feb-06 4:14
Y3PP3R13-Feb-06 4:14 

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.