Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

RedrawWindow issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
apostrophe27@yahoo.com - 18 Aug 2006 18:52 GMT
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 );   

}
Stoitcho Goutsev (100) - 21 Aug 2006 17:53 GMT
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.

Signature

Stoitcho Goutsev (100)

>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
[quoted text clipped - 18 lines]
>
> }

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.