Hi Ken,
Yes, strictly speaking, it's the default behavior in native win32
platform and also windows forms. Ofcourse, it may be changed by various
implementations of the paint event handler.
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending, Thanks!
--------------------
| From: "Ken" <
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| Subject: Re: Form Update
| Date: Fri, 26 Sep 2003 08:38:08 -0400
| Organization: Posted via Supernews,
http://www.supernews.com
| Message-ID: <
[email protected]>
| References: <
[email protected]>
<
[email protected]>
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| X-Complaints-To: (e-mail address removed)
| Lines: 77
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-
post-01!supernews.com!corp.supernews.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:53198
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
|
| If I understand you correctly, then what happens is that the control that
is
| being updated is the only thing that is repainted, not the whole form?
|
| Thank You
|
| Ken
|
| | > Hi Ken,
| > I'm not clear about the mechanism of PowerBuilder, but In Windows
| Forms,
| > updating an textbox on the form will not force the fom repaint. You can
| > verify this by overriding the OnPaint method of your form and adding a
| > label to show the repaint times.
| > If you still have questions on this issue, please let me know!
| > Thanks!
| >
| > Best regards,
| >
| > Ying-Shen Yu [MSFT]
| > Microsoft Online Partner Support
| > Get Secure! -
www.microsoft.com/security
| >
| > This posting is provided "AS IS" with no warranties and confers no
rights.
| > You should not reply this mail directly, "Online" should be removed
before
| > sending, Thanks!
| >
| > --------------------
| > | From: "Ken" <
[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.windowsforms
| > | Subject: Form Update
| > | Date: Thu, 25 Sep 2003 18:11:23 -0400
| > | Organization: Posted via Supernews,
http://www.supernews.com
| > | Message-ID: <
[email protected]>
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | X-Complaints-To: (e-mail address removed)
| > | Lines: 16
| > | Path:
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
| >
|
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!in.100proofnews.com!tds
| >
|
net-transit!newspeer.tds.net!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!co
| > rp.supernews.com!not-for-mail
| > | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.framework.windowsforms:53160
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
| > |
| > | I am wondering if there is a method than can be called when updating
| > several
| > | controls on a form so the form does not repaint when each control is
| > | updated. For example if there are 5 text boxes on the form and all of
| > them
| > | have to be updated I believe the form paints each time the Text
property
| > of
| > | each textbox is changed.
| > |
| > | I coded in PowerBuilder several years ago and they had a method that
you
| > | called before updating serveral controls on a form and then called
| another
| > | method that repainted the form after you completed updating all the
| > | controls.
| > |
| > | Thank You in advance
| > |
| > | Ken
| > |
| > |
| > |
| >
|
|
|