Click here to Skip to main content
15,923,389 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
QuestionHow to add application to Windows Scheduler? Pin
.NetRams13-Feb-06 1:32
.NetRams13-Feb-06 1:32 
AnswerRe: How to add application to Windows Scheduler? Pin
Tim Carmichael13-Feb-06 3:14
Tim Carmichael13-Feb-06 3:14 
AnswerRe: How to add application to Windows Scheduler? Pin
Dave Kreskowiak14-Feb-06 7:56
mveDave Kreskowiak14-Feb-06 7:56 
QuestionRDA Help... Pin
UniBond13-Feb-06 1:22
UniBond13-Feb-06 1:22 
QuestionScheduler Application in VB.Net. Pin
.NetRams12-Feb-06 23:45
.NetRams12-Feb-06 23:45 
AnswerRe: Scheduler Application in VB.Net. Pin
mgilmore13-Feb-06 13:43
mgilmore13-Feb-06 13:43 
QuestionHow to upload webpages to the site Pin
Sgn_Flex12-Feb-06 22:27
Sgn_Flex12-Feb-06 22:27 
AnswerRe: How to upload webpages to the site Pin
Guffa13-Feb-06 0:20
Guffa13-Feb-06 0:20 
GeneralRe: How to upload webpages to the site Pin
Sgn_Flex13-Feb-06 0:44
Sgn_Flex13-Feb-06 0:44 
GeneralRe: How to upload webpages to the site Pin
Dave Kreskowiak13-Feb-06 5:52
mveDave Kreskowiak13-Feb-06 5:52 
QuestionBIOS changes Pin
rzvme12-Feb-06 22:07
rzvme12-Feb-06 22:07 
AnswerRe: BIOS changes Pin
Dave Kreskowiak13-Feb-06 5:50
mveDave Kreskowiak13-Feb-06 5:50 
QuestionHow to Create typeconverter dynamically by reflection to use in a PropertyGrid? Pin
Mohamed Ali Jinnah12-Feb-06 21:29
Mohamed Ali Jinnah12-Feb-06 21: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.