Click here to Skip to main content
12,506,574 members (54,207 online)

Windows Forms

GeneralRe: how to ad a new records into database using data binding? Pin
LearnByHeart28-Oct-12 22:36
memberLearnByHeart28-Oct-12 22:36 
GeneralRe: how to ad a new records into database using data binding? Pin
Eddy Vluggen28-Oct-12 23:28
memberEddy Vluggen28-Oct-12 23:28 
QuestionCurrency formatting Pin
MandyHouse22-Oct-12 15:34
memberMandyHouse22-Oct-12 15:34 
AnswerRe: Currency formatting Pin
Eddy Vluggen23-Oct-12 23:56
memberEddy Vluggen23-Oct-12 23:56 
Are you using databinding to get the value in there, or putting in the value manually? With databinding, it'd be using the FormatString[^] property of the binding;
textBox1.DataBindings.Add(new Binding(
        "Text",                      // the property of the textbox that we wanna bind
        Properties.Settings.Default, // the object to bind to, this case "Settings"
        "ConnectionString",          // the property of that object to bind to
textBox1.Databinding[0].FormatString = "C";
Alternatively, you could keep the value in a private variable, set it when the user is done editing, and update with a formatted version when the focus is lost. A description of the markup can be found here[^].

If the subject is "new", MSDN has an introduction here[^].
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

modified 24-Oct-12 17:05pm.

QuestionControls Opacity Pin
ALIJavany11-Oct-12 1:33
memberALIJavany11-Oct-12 1:33 
AnswerCross post Pin
Wes Aday11-Oct-12 1:38
memberWes Aday11-Oct-12 1:38 
AnswerRe: Controls Opacity Pin
SoyDesarrollador.net12-Oct-12 9:03
memberSoyDesarrollador.net12-Oct-12 9:03 
GeneralRe: Controls Opacity Pin
Richard MacCutchan12-Oct-12 9:07
mvpRichard MacCutchan12-Oct-12 9:07 
GeneralRe: Controls Opacity Pin
SoyDesarrollador.net12-Oct-12 9:15
memberSoyDesarrollador.net12-Oct-12 9:15 
GeneralRe: Controls Opacity Pin
Richard MacCutchan12-Oct-12 9:32
mvpRichard MacCutchan12-Oct-12 9:32 

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.

Advertise | Privacy | Mobile
Web01 | 2.8.160927.1 | Last Updated 25 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid