|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
vb.net tabpage hiding paintingI am having to resort to Mick's methods when it comes to hiding/showing
tabpages of my tab control since .NET doesn't work correct. I think I have it finally workign the way I need, but because I can show/hide up to 10 tabs, there is a lot of repainting/flickering going on and looks really bad with everything flashing all over the place. Is there a way to turn off the painting until all the tab stuff is executed and then do 1 refresh ? Similar to the BeginUpdate for the listview ? Thanks, Mark marf***@yahoo.com wrote:
> I am having to resort to Mick's methods when it comes to hiding/showing Don't know about a beginupdate, but if you override the onpaint method > tabpages of my tab control since .NET doesn't work correct. I think I > have it finally workign the way I need, but because I can show/hide up > to 10 tabs, there is a lot of repainting/flickering going on and looks > really bad with everything flashing all over the place. Is there a way > to turn off the painting until all the tab stuff is executed and then > do 1 refresh ? Similar to the BeginUpdate for the listview ? > > Thanks, > Mark > for the tab control and then only call the mybase.onpaint when you are not doing your updating, that should have the same effect. Chris Hi,
Calling the tabcontrols suspendlayout will prevent it from redrawing until you call resumelayout. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclasssuspendlayouttopic.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassresumelayouttopic.asp Ken ------------- <marf***@yahoo.com> wrote in message Show quoteHide quote news:1137826295.436066.70330@g49g2000cwa.googlegroups.com... >I am having to resort to Mick's methods when it comes to hiding/showing > tabpages of my tab control since .NET doesn't work correct. I think I > have it finally workign the way I need, but because I can show/hide up > to 10 tabs, there is a lot of repainting/flickering going on and looks > really bad with everything flashing all over the place. Is there a way > to turn off the painting until all the tab stuff is executed and then > do 1 refresh ? Similar to the BeginUpdate for the listview ? > > Thanks, > Mark > I tried this, but it didn't do anything different. You can still see
all the tabs showing and hiding. I don't think it matters, but I didn't mention this before in that the only control I have on my tabpages is a UserControl (that contains all the controls for the page) Mark <marf***@yahoo.com> schrieb:
>I am having to resort to Mick's methods when it comes to hiding/showing Preventing controls from redrawing> tabpages of my tab control since .NET doesn't work correct. I think I > have it finally workign the way I need, but because I can show/hide up > to 10 tabs, there is a lot of repainting/flickering going on and looks > really bad with everything flashing all over the place. Is there a way > to turn off the painting until all the tab stuff is executed and then > do 1 refresh ? <URL:http://dotnet.mvps.org/dotnet/faqs/?id=disableredrawing&lang=en> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Is F1 in VS2005 really dumb?
Time zones: Pretending to be somewhere else beginner question about classes Newbe question, What am I doing wrong Seeking VB.Net Proxy examples Selecting combobox item at runtime from code No Beep with MSGBOX Possible? Help Needed in bindings, Convert Byte() to System.Drawing.Image? OT: Business Objects - what are they and can they contain objects like sockets? |
|||||||||||||||||||||||