I'm sure you guys have heard this time and time again but here is 1 more
time
How can i rapidly update a listview w/o that constant flicker?
I've researched this issue before and have tried countless solutions like
subclassing the control, locking the line, creating a new line in the
background and replacing it with the current line after the update is
complete... they all seem to be useless! Is there any possible way to fix
this issue or is there maybe a <free> 3rd party control i could incorporate
into my project?
all suggestions welcome
:\\derian 12 2945
Hi Derian,
How did you get on with the chess? I didn't get a reply. :-(
Regards,
Fergus
You should be able to double-buffer all controls in windoze forms.
Something like:
Public Class ListViewDblBuffer
Inherits ListView
Public Sub New()
MyBase.New()
Me.SetStyle(ControlStyles.DoubleBuffer, True)
Me.SetStyle(ControlStyles.Opaque, True)
End Sub
End Class
":\\derian" <de****@someplace.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl... I'm sure you guys have heard this time and time again but here is 1 more time
How can i rapidly update a listview w/o that constant flicker? I've researched this issue before and have tried countless solutions like subclassing the control, locking the line, creating a new line in the background and replacing it with the current line after the update is complete... they all seem to be useless! Is there any possible way to fix this issue or is there maybe a <free> 3rd party control i could
incorporate into my project?
all suggestions welcome :\\derian
You actually remembered eh...
well all the coding is done for a 2 player network game. I'm in the process
of commenting the code but its coming slowly b/c i work 8-6 developing
software and it would look really bad if I were coding games while i was
supposed to be coding something else. I'm just not quite as motivated to
comment now that the real coding is complete.
Ideally, i'd like to get some form of AI for the human vs computer match.
That is much further down the road.
Back to my listview question... Any ideas?
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:eo**************@TK2MSFTNGP11.phx.gbl... Hi Derian,
How did you get on with the chess? I didn't get a reply. :-(
Regards, Fergus
Having said that - I've double bufferred my list view and list box controls
and I don't see any whoppy-do-dah flicker freeness. I even went as far as
to write my own double bufferring for my list box items (which are custom
drawn anyway). I don't know - there isn't a whole lot of documentation
about windows forms double bufferring anyway. Seems to me like a pretty
important feature.
"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:bm*******************@news.demon.co.uk... You should be able to double-buffer all controls in windoze forms. Something like:
Public Class ListViewDblBuffer Inherits ListView
Public Sub New()
MyBase.New() Me.SetStyle(ControlStyles.DoubleBuffer, True) Me.SetStyle(ControlStyles.Opaque, True)
End Sub End Class
":\\derian" <de****@someplace.com> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... I'm sure you guys have heard this time and time again but here is 1 more time
How can i rapidly update a listview w/o that constant flicker? I've researched this issue before and have tried countless solutions
like subclassing the control, locking the line, creating a new line in the background and replacing it with the current line after the update is complete... they all seem to be useless! Is there any possible way to
fix this issue or is there maybe a <free> 3rd party control i could incorporate into my project?
all suggestions welcome :\\derian
Hi Robin, How did you double-buffer your listbox items? A ListBox item isn't
derived from control...
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
" System.Reflection Master "
==== Converting to 2002 ====
Remove inline declarations
"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:bm*******************@news.demon.co.uk... Having said that - I've double bufferred my list view and list box
controls and I don't see any whoppy-do-dah flicker freeness. I even went as far as to write my own double bufferring for my list box items (which are custom drawn anyway). I don't know - there isn't a whole lot of documentation about windows forms double bufferring anyway. Seems to me like a pretty important feature.
"Robin Tucker" <id*************************@reallyidont.com> wrote in message news:bm*******************@news.demon.co.uk... You should be able to double-buffer all controls in windoze forms. Something like:
Public Class ListViewDblBuffer Inherits ListView
Public Sub New()
MyBase.New() Me.SetStyle(ControlStyles.DoubleBuffer, True) Me.SetStyle(ControlStyles.Opaque, True)
End Sub End Class
":\\derian" <de****@someplace.com> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... I'm sure you guys have heard this time and time again but here is 1
more time
How can i rapidly update a listview w/o that constant flicker? I've researched this issue before and have tried countless solutions like subclassing the control, locking the line, creating a new line in the background and replacing it with the current line after the update is complete... they all seem to be useless! Is there any possible way to fix this issue or is there maybe a <free> 3rd party control i could incorporate into my project?
all suggestions welcome :\\derian
No it isn't. I'm handling the "DrawItem" event in the list box and
rendering my list item to a backbuffer, then blitting it to the Graphics
context "DrawItem" gives me with e.Graphics.DrawImage(backBuffer,
e.Bounds.X, e.Bounds.Y). Create a backbuffer as large as the list item (I'm
creating it in the "DrawItem" event, but it would be quicker to maintain one
outside I suppose), do all your drawing to that and then just blit.
So everything gets drawn to the backBuffer image context. My list items
contain text, images and other stuff (and are quite large). This has
reduced flicked quite a bit. The control as a whole still flickers somewhat
though, but I'm not going to look at that until I've finished this project
(it isn't that bad - could do with some optimisations here and there I
suppose).
"Tom Spink" <th**********@ntlworld.com> wrote in message
news:ew*************@TK2MSFTNGP11.phx.gbl... Hi Robin, How did you double-buffer your listbox items? A ListBox item
isn't derived from control...
-- HTH, -- Tom Spink, Über Geek
Please respond to the newsgroup, so all can benefit
" System.Reflection Master "
==== Converting to 2002 ==== Remove inline declarations
"Robin Tucker" <id*************************@reallyidont.com> wrote in message news:bm*******************@news.demon.co.uk... Having said that - I've double bufferred my list view and list box controls and I don't see any whoppy-do-dah flicker freeness. I even went as far
as to write my own double bufferring for my list box items (which are
custom drawn anyway). I don't know - there isn't a whole lot of documentation about windows forms double bufferring anyway. Seems to me like a pretty important feature.
"Robin Tucker" <id*************************@reallyidont.com> wrote in message news:bm*******************@news.demon.co.uk... You should be able to double-buffer all controls in windoze forms. Something like:
Public Class ListViewDblBuffer Inherits ListView
Public Sub New()
MyBase.New() Me.SetStyle(ControlStyles.DoubleBuffer, True) Me.SetStyle(ControlStyles.Opaque, True)
End Sub End Class
":\\derian" <de****@someplace.com> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... > I'm sure you guys have heard this time and time again but here is 1 more > time > > How can i rapidly update a listview w/o that constant flicker? > I've researched this issue before and have tried countless solutions like > subclassing the control, locking the line, creating a new line in
the > background and replacing it with the current line after the update
is > complete... they all seem to be useless! Is there any possible way
to fix > this issue or is there maybe a <free> 3rd party control i could incorporate > into my project? > > all suggestions welcome > :\\derian > >
No cigar... the flickering was reduced by about 20% but its still noticable
enough to be annonying as all hell... any other suggestions?
"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:bm*******************@news.demon.co.uk... You should be able to double-buffer all controls in windoze forms. Something like:
Public Class ListViewDblBuffer Inherits ListView
Public Sub New()
MyBase.New() Me.SetStyle(ControlStyles.DoubleBuffer, True) Me.SetStyle(ControlStyles.Opaque, True)
End Sub End Class
":\\derian" <de****@someplace.com> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... I'm sure you guys have heard this time and time again but here is 1 more time
How can i rapidly update a listview w/o that constant flicker? I've researched this issue before and have tried countless solutions
like subclassing the control, locking the line, creating a new line in the background and replacing it with the current line after the update is complete... they all seem to be useless! Is there any possible way to
fix this issue or is there maybe a <free> 3rd party control i could incorporate into my project?
all suggestions welcome :\\derian
* "Tom Spink" <th**********@ntlworld.com> scripsit: How did you double-buffer your listbox items? A ListBox item isn't derived from control...
ListBox? ListView? List***?
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
* ":\\\\derian" <de****@someplace.com> scripsit: How can i rapidly update a listview w/o that constant flicker?
<http://www.codeproject.com/cs/miscctrl/listviewxp.asp>
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Hi Herfried,
!! ListBox? ListView? List***?
There's no need for swearing, surely!?
;-))
Regards,
Fergus
* "Fergus Cooney" <fi******@tesco.net> scripsit: !! ListBox? ListView? List***?
There's no need for swearing, surely!?
ROFL
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Hi Robin, I see. Nice :-)
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
" System.Reflection Master "
==== Converting to 2002 ====
Remove inline declarations
"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:bm*******************@news.demon.co.uk... No it isn't. I'm handling the "DrawItem" event in the list box and rendering my list item to a backbuffer, then blitting it to the Graphics context "DrawItem" gives me with e.Graphics.DrawImage(backBuffer, e.Bounds.X, e.Bounds.Y). Create a backbuffer as large as the list item
(I'm creating it in the "DrawItem" event, but it would be quicker to maintain
one outside I suppose), do all your drawing to that and then just blit.
So everything gets drawn to the backBuffer image context. My list items contain text, images and other stuff (and are quite large). This has reduced flicked quite a bit. The control as a whole still flickers
somewhat though, but I'm not going to look at that until I've finished this project (it isn't that bad - could do with some optimisations here and there I suppose).
"Tom Spink" <th**********@ntlworld.com> wrote in message news:ew*************@TK2MSFTNGP11.phx.gbl... Hi Robin, How did you double-buffer your listbox items? A ListBox item isn't derived from control...
-- HTH, -- Tom Spink, Über Geek
Please respond to the newsgroup, so all can benefit
" System.Reflection Master "
==== Converting to 2002 ==== Remove inline declarations
"Robin Tucker" <id*************************@reallyidont.com> wrote in message news:bm*******************@news.demon.co.uk... Having said that - I've double bufferred my list view and list box controls and I don't see any whoppy-do-dah flicker freeness. I even went as
far as to write my own double bufferring for my list box items (which are custom drawn anyway). I don't know - there isn't a whole lot of
documentation about windows forms double bufferring anyway. Seems to me like a
pretty important feature.
"Robin Tucker" <id*************************@reallyidont.com> wrote in message news:bm*******************@news.demon.co.uk... > You should be able to double-buffer all controls in windoze forms. > Something like: > > > Public Class ListViewDblBuffer > Inherits ListView > > Public Sub New() > > MyBase.New() > Me.SetStyle(ControlStyles.DoubleBuffer, True) > Me.SetStyle(ControlStyles.Opaque, True) > > End Sub > End Class > > ":\\derian" <de****@someplace.com> wrote in message > news:%2***************@TK2MSFTNGP10.phx.gbl... > > I'm sure you guys have heard this time and time again but here is
1 more > > time > > > > How can i rapidly update a listview w/o that constant flicker? > > I've researched this issue before and have tried countless
solutions like > > subclassing the control, locking the line, creating a new line in
the > > background and replacing it with the current line after the update is > > complete... they all seem to be useless! Is there any possible
way to fix > > this issue or is there maybe a <free> 3rd party control i could > incorporate > > into my project? > > > > all suggestions welcome > > :\\derian > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Anushya |
last post by:
Hi
I am using Listview and inherited listview control overriding WndProc
& PreProcessMessage in ListView.
I need this to customize listview to display only the page the user
scrolls to. Since i...
|
by: Anushya |
last post by:
Hi
I am using Listview and inherited listview control overriding WndProc
& PreProcessMessage in ListView.
I need this to customize listview to display only the page the user
scrolls to. Since i...
|
by: keith |
last post by:
In a ListView control (two columns), I added a few
ListView items.
ListView listview=new ListView();
listview.Parent=this;
listview.View=View.Details;
listview.Columns.Add...
|
by: Dave Y |
last post by:
I am a newbie to C# and am having trouble trying to override a ListView
property method. I have created a new class derived from the Forms.Listview
and I cannot figure out the syntax to override...
|
by: BobAchgill |
last post by:
I am trying to decide which of these controls to use to
implement letting my user select a full row from
MyList. The MyList has several columns which would be
nice to sort by at run time. The...
|
by: John Devlon |
last post by:
Hi,
Does anyone know how to get a value of a second column of a selected item
in Listview.
I've create a listview and added this code
Listview.Items.Clear()
Listview.Columns.Clear()...
|
by: Peter |
last post by:
Hi,
I have a problem with Listview using checkboxes.
If i check items by code BEFORE the form is shown the Listview.Items
are confused during the ItemChecked Event !!!
After showing the...
|
by: Peter |
last post by:
Hi,
I have a problem with Listview using checkboxes.
If i check items by code BEFORE the form is shown the Listview.Items
are confused during the ItemChecked Event !!!
After showing the...
|
by: Brian Gaze |
last post by:
I have created a ListView control and have bound this to a datasource.
Within the ItemTemplate of the ListView I have added another ListViewControl
which is databound in the code behind. The idea...
|
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= |
last post by:
Hello,
In my application I need to periodically remove all current items from a
ListView and add a new set into it. The following abbreviated code contains
the basic idea:
private void...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |