Click here to Skip to main content
14,971,029 members
Home / Discussions / Windows Forms
   

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
tinychi26-Oct-12 23:42
Membertinychi26-Oct-12 23:42 
AnswerRe: how to ad a new records into database using data binding? Pin
Eddy Vluggen28-Oct-12 0:39
professionalEddy Vluggen28-Oct-12 0:39 
GeneralRe: how to ad a new records into database using data binding? Pin
tinychi28-Oct-12 22:36
Membertinychi28-Oct-12 22:36 
GeneralRe: how to ad a new records into database using data binding? Pin
Eddy Vluggen28-Oct-12 23:28
professionalEddy 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
professionalEddy 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
professionalWes 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
mveRichard 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
mveRichard 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
professionalEddy Vluggen10-Oct-12 11:41 
AnswerRe: .bat execution Or something else? Pin
Dave Kreskowiak10-Oct-12 13:04
mveDave Kreskowiak10-Oct-12 13:04 
AnswerRe: .bat execution Or something else? Pin
Richard Andrew x6410-Oct-12 15:01
professionalRichard 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
mveRichard MacCutchan27-Sep-12 21:58 
QuestionStrange Design Problems With Infragistics Controls Pin
Kevin Marois26-Sep-12 5:41
professionalKevin Marois26-Sep-12 5:41 
AnswerRe: Strange Design Problems With Infragistics Controls Pin
BillWoodruff10-Oct-12 5:37
mveBillWoodruff10-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
professionalWes 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.