Created On:  04 August 2011


When running a Visual COBOL Windows Forms Application and clicking into a textbox control a space appears in the first character of the textbox. How do I get rid of this leading space character?


This most likely has to do with how you are intializing the text box text property. Are you initializing the field using something like:

set textbox1::text to " "

This is different than initializing it to the empty value which is two quotes without a space separating them.  Instead, try using:

set textbox1::text to ""
Incident #2530929