Click here to Skip to main content
16,004,944 members
Home / Discussions / C#
   

C#

 
GeneralRe: DllImport Pin
Mirko198018-Feb-09 3:32
Mirko198018-Feb-09 3:32 
AnswerRe: DllImport Pin
Luc Pattyn18-Feb-09 3:45
sitebuilderLuc Pattyn18-Feb-09 3:45 
QuestionMasked Textbox Prompt Pin
Lodeclaw17-Feb-09 5:38
Lodeclaw17-Feb-09 5:38 
AnswerRe: Masked Textbox Prompt Pin
Nagy Vilmos17-Feb-09 5:58
professionalNagy Vilmos17-Feb-09 5:58 
GeneralRe: Masked Textbox Prompt Pin
Lodeclaw17-Feb-09 6:01
Lodeclaw17-Feb-09 6:01 
GeneralRe: Masked Textbox Prompt Pin
Nagy Vilmos17-Feb-09 6:14
professionalNagy Vilmos17-Feb-09 6:14 
GeneralRe: Masked Textbox Prompt Pin
Lodeclaw17-Feb-09 6:29
Lodeclaw17-Feb-09 6:29 
GeneralRe: Masked Textbox Prompt Pin
Nagy Vilmos17-Feb-09 23:19
professionalNagy Vilmos17-Feb-09 23:19 
You are using the property well, but on checking back you have the wrong event:

private void maskedEdit_GotFocus(object sender, EventArgs e)
{
    MaskedTextBox mtb = (MaskedTextBox)sender;
    mtb.SelectionStart = 0;
}


It appears that after the Enter event, the selection is set to the previous values. But if you use GotFocus it works. Just add the event handler manually after InitializeComponent in the constructor:
InitializeComponent();
maskedTextBox1.GotFocus += new EventHandler(this.maskedEdit_GotFocus);
maskedTextBox2.GotFocus += new EventHandler(this.maskedEdit_GotFocus);




Panic, Chaos, Destruction.
My work here is done.

QuestionThread.Sleep(0) action? Pin
Bruce Coward17-Feb-09 5:25
Bruce Coward17-Feb-09 5:25 
AnswerRe: Thread.Sleep(0) action? Pin
Nuri Ismail17-Feb-09 5:31
Nuri Ismail17-Feb-09 5:31 
GeneralRe: Thread.Sleep(0) action? Pin
Bruce Coward17-Feb-09 5:51
Bruce Coward17-Feb-09 5:51 
AnswerRe: Thread.Sleep(0) action? Pin
Luc Pattyn17-Feb-09 6:24
sitebuilderLuc Pattyn17-Feb-09 6:24 
GeneralRe: Thread.Sleep(0) action? Pin
PIEBALDconsult17-Feb-09 6:33
mvePIEBALDconsult17-Feb-09 6:33 
AnswerRe: Thread.Sleep(0) action? Pin
Luc Pattyn17-Feb-09 6:48
sitebuilderLuc Pattyn17-Feb-09 6:48 
GeneralRe: Thread.Sleep(0) action? Pin
PIEBALDconsult17-Feb-09 6:52
mvePIEBALDconsult17-Feb-09 6:52 
GeneralRe: Thread.Sleep(0) action? Pin
Bruce Coward17-Feb-09 6:44
Bruce Coward17-Feb-09 6:44 
QuestionError: "type name expected, but namespace name found" on calling a .WSDL Pin
mluque17-Feb-09 5:13
mluque17-Feb-09 5:13 
AnswerRe: Error: "type name expected, but namespace name found" on calling a .WSDL Pin
Nagy Vilmos17-Feb-09 5:25
professionalNagy Vilmos17-Feb-09 5:25 
GeneralRe: Error: "type name expected, but namespace name found" on calling a .WSDL Pin
mluque17-Feb-09 5:36
mluque17-Feb-09 5:36 
GeneralRe: Error: "type name expected, but namespace name found" on calling a .WSDL Pin
Nagy Vilmos17-Feb-09 5:44
professionalNagy Vilmos17-Feb-09 5:44 
GeneralRe: Error: "type name expected, but namespace name found" on calling a .WSDL Pin
mluque17-Feb-09 5:56
mluque17-Feb-09 5:56 
RantRe: Error: "type name expected, but namespace name found" on calling a .WSDL Pin
Nagy Vilmos17-Feb-09 6:12
professionalNagy Vilmos17-Feb-09 6:12 
GeneralRe: Error: "type name expected, but namespace name found" on calling a .WSDL Pin
expresso100016-Sep-09 11:17
expresso100016-Sep-09 11:17 
GeneralRe: Error: "type name expected, but namespace name found" on calling a .WSDL Pin
Nagy Vilmos17-Sep-09 0:38
professionalNagy Vilmos17-Sep-09 0:38 
QuestionCrystalReports how to Reset Record Number ? Pin
leeoze17-Feb-09 4:19
leeoze17-Feb-09 4:19 

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.