Click here to Skip to main content
       

Windows Forms

 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container PinmemberSimon Bridge4-Feb-13 12:13 
QuestionWix based installer does not execute custom action on upgrade PinmemberPrasanth Vijayan11-Nov-12 23:12 
Questionhow to ad a new records into database using data binding? PinmemberLearnByHeart26-Oct-12 23:42 
AnswerRe: how to ad a new records into database using data binding? PinmemberEddy Vluggen28-Oct-12 0:39 
GeneralRe: how to ad a new records into database using data binding? PinmemberLearnByHeart28-Oct-12 22:36 
GeneralRe: how to ad a new records into database using data binding? PinmemberEddy Vluggen28-Oct-12 23:28 
QuestionCurrency formatting PinmemberMandyHouse22-Oct-12 15:34 
AnswerRe: Currency formatting [modified] PinmemberEddy 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
        true));
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 PinmemberALIJavany11-Oct-12 1:33 
AnswerCross post PinmemberWes Aday11-Oct-12 1:38 
AnswerRe: Controls Opacity PinmemberSoyDesarrollador.net12-Oct-12 9:03 
GeneralRe: Controls Opacity PinmvpRichard MacCutchan12-Oct-12 9:07 
GeneralRe: Controls Opacity PinmemberSoyDesarrollador.net12-Oct-12 9:15 
GeneralRe: Controls Opacity PinmvpRichard MacCutchan12-Oct-12 9:32 
GeneralRe: Controls Opacity Pinmemberlukeer3-Dec-12 21:17 
Question.bat execution Or something else? PinmemberJason Sani10-Oct-12 9:43 
AnswerRe: .bat execution Or something else? PinmemberEddy Vluggen10-Oct-12 11:41 
AnswerRe: .bat execution Or something else? PinmvpDave Kreskowiak10-Oct-12 13:04 
AnswerRe: .bat execution Or something else? PinmemberRichard Andrew x6410-Oct-12 15:01 
QuestionCrystal reports in visual studio 2010 for wpf application Pinmemberpriom2227-Sep-12 18:06 
AnswerRe: Crystal reports in visual studio 2010 for wpf application PinmvpRichard MacCutchan27-Sep-12 21:58 
QuestionStrange Design Problems With Infragistics Controls PinmemberKevin Marois26-Sep-12 5:41 
AnswerRe: Strange Design Problems With Infragistics Controls PinmemberBillWoodruff10-Oct-12 5:37 
QuestionInvoking excel thru a .bat file PinmemberForNow19-Sep-12 9:42 
AnswerRe: Invoking excel thru a .bat file PinmemberWes Aday19-Sep-12 10:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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.140814.1 | Last Updated 11 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid