Click here to Skip to main content
13,089,500 members (61,603 online)

Windows Forms

 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
Simon Bridge4-Feb-13 12:13
memberSimon Bridge4-Feb-13 12:13 
QuestionWix based installer does not execute custom action on upgrade Pin
Prasanth Vijayan11-Nov-12 23:12
memberPrasanth Vijayan11-Nov-12 23:12 
Questionhow to ad a new records into database using data binding? Pin
LearnByHeart26-Oct-12 23:42
memberLearnByHeart26-Oct-12 23:42 
AnswerRe: how to ad a new records into database using data binding? Pin
Eddy Vluggen28-Oct-12 0:39
memberEddy Vluggen28-Oct-12 0:39 
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
        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 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 
GeneralRe: Controls Opacity Pin
lukeer3-Dec-12 21:17
memberlukeer3-Dec-12 21:17 
Question.bat execution Or something else? Pin
Jason Sani10-Oct-12 9:43
memberJason Sani10-Oct-12 9:43 
AnswerRe: .bat execution Or something else? Pin
Eddy Vluggen10-Oct-12 11:41
memberEddy Vluggen10-Oct-12 11:41 
AnswerRe: .bat execution Or something else? Pin
Dave Kreskowiak10-Oct-12 13:04
mvpDave Kreskowiak10-Oct-12 13:04 
AnswerRe: .bat execution Or something else? Pin
Richard Andrew x6410-Oct-12 15:01
memberRichard Andrew x6410-Oct-12 15:01 
QuestionCrystal reports in visual studio 2010 for wpf application Pin
priom2227-Sep-12 18:06
memberpriom2227-Sep-12 18:06 
AnswerRe: Crystal reports in visual studio 2010 for wpf application Pin
Richard MacCutchan27-Sep-12 21:58
mvpRichard MacCutchan27-Sep-12 21:58 
QuestionStrange Design Problems With Infragistics Controls Pin
Kevin Marois26-Sep-12 5:41
memberKevin Marois26-Sep-12 5:41 
AnswerRe: Strange Design Problems With Infragistics Controls Pin
BillWoodruff10-Oct-12 5:37
memberBillWoodruff10-Oct-12 5:37 
QuestionInvoking excel thru a .bat file Pin
ForNow19-Sep-12 9:42
memberForNow19-Sep-12 9:42 
AnswerRe: Invoking excel thru a .bat file Pin
Wes Aday19-Sep-12 10:42
memberWes Aday19-Sep-12 10:42 

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 |
Web03 | 2.8.170813.1 | Last Updated 11 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid