I want to clear some textboxes of previously written data. When I run
the code below, only the txtBuffer text box is getting cleared. What am
I missing?

private: System::Void btnRead_Click(System::Object^ sender,
System::EventArgs^ e)
{

clear_textboxes();
fd_read();

}

void clear_textboxes(void)
{
txtTc->Clear();
txtStatus0->Clear();
txtStatus1->Clear();
txtBuffer->Clear();
RedrawWindow(NULL,NULL,NULL,RDW_ERASENOW );

}

Re: RedrawWindow issue by Stoitcho

Stoitcho
Mon Aug 21 11:54:39 CDT 2006

I don't see any problem here. Are you sure that there is no other code that
runs in response to RedrawWindow for example that fills out the text boxes
again.


--
Stoitcho Goutsev (100)
<apostrophe27@yahoo.com> wrote in message
news:1155923523.611383.275260@m79g2000cwm.googlegroups.com...
>I want to clear some textboxes of previously written data. When I run
> the code below, only the txtBuffer text box is getting cleared. What am
> I missing?
>
> private: System::Void btnRead_Click(System::Object^ sender,
> System::EventArgs^ e)
> {
>
> clear_textboxes();
> fd_read();
>
> }
>
> void clear_textboxes(void)
> {
> txtTc->Clear();
> txtStatus0->Clear();
> txtStatus1->Clear();
> txtBuffer->Clear();
> RedrawWindow(NULL,NULL,NULL,RDW_ERASENOW );
>
> }
>