StrataFrame Forum

WaitWindow Format

http://forum.strataframe.net/Topic27501.aspx

By Bill Cunnien - 6/21/2010

I have a formatting issue. If I use the following in my code:



waitWindow1.Message = String.Format("Please stand by while the calculations and the data are generated{0}for the date range {1:d} through {2:d}.{3}{4}This may take several minutes depending on the date range entered.",

Environment.NewLine,

deBegDate.DateTime,

deEndDate.DateTime,

Environment.NewLine,

Environment.NewLine);



...I get the attached Waitwindow. I was not expecting the line segment in the middle. Any thought?



Thanks!

Bill
By Bill Cunnien - 6/21/2010

After cleaning up the code a bit...





waitWindow1.Message = String.Format("Please stand by while the calculations and the data are generated{2}for the date range {0:d} through {1:d}.{2}{2}This may take several minutes depending on the date range entered.",

deBegDate.DateTime,

deEndDate.DateTime,

Environment.NewLine);





(thanks, Greg)



I am still getting the same behavior. I am on a W7/64 workstation.
By Edhy Rijo - 6/21/2010

Hi Bil,



I got the same results as you even when using a StringBuilder, so I guess this may be a bug in the WaitWindow code.
By Greg McGuffey - 6/21/2010

What is your OS Edhy?



This works well on Windows XP SP3, so we need to isolate the issue.
By Edhy Rijo - 6/21/2010

I am also on Windows 7 64-bits.
By Edhy Rijo - 6/21/2010

I tried changing the WaitWindowLocation, AutoSizeForm, DisplayTitle properties and they all have the same result, if there is a AppendLine or VBCRLF or Environment.NewLine, a line will be draw as shown in Bill's image.


By Greg McGuffey - 6/21/2010

Could you provide a sample that demonstrates the issue? We'll take a look and see what we can figure out.
By Bill Cunnien - 6/22/2010

Here is a small application (zip file) that does the same thing...I've included a screen shot of what the wait window looks like on my W7/64 workstation.
By Greg McGuffey - 6/22/2010

Thanks Bill. We're taking a look at it and we'll let you know what we discover. Thanks for taking the time to build the sample.
By Bill Cunnien - 6/25/2010

Good morning,



Any progress on the code tests?



Thanks,

Bill
By Ivan George Borges - 6/25/2010

Hi Bill.

We were able to reproduce it, but no solution yet. Will let you know as soon as we got something. Wink