Listview Freezed

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
10 posts Page 1 of 1
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Listview Freezed
Dummy1912
who has a solution for listview data loading.
because it seems that the listview stuck and then loads the data i have searched and searched but can't find the solution.

i even added
Code: Select all
            .BeginUpdate()

.EndUpdate()
but didn't do a thing.
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: Listview Freezed
Shim
do you parse the data?
Find my programs on Softpedia
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: Listview Freezed
Dummy1912
? what you mean
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: Listview Freezed
Shim
I have seen people parse the data if you're getting the listview items from a database
Find my programs on Softpedia
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: Listview Freezed
Dummy1912
no idea about parse but
still you have any idea to avoid the freeze part?
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Listview Freezed
CodenStuff
You will probably need to use a backgroundworker for adding items to the listview.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: Listview Freezed
Dummy1912
#CodenStuff i have tried that but got a error that said he can't make a new handler because i started already one :(
by accessing the first dataload.

if you have any demo sample for 3 data loads
i love to hear :)
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: Listview Freezed
Dummy1912
it seems every time we resized the form
the listview freezed to resize the columns

so anyone has a solution please.
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Re: Listview Freezed
XTechVB
Dummy1912 wrote:
it seems every time we resized the form
the listview freezed to resize the columns

so anyone has a solution please.
Create a new class and inherit ListView then write this code inside
Code: Select all
#Region "Constructor"
        Public Sub New()
            Me.SetStyle(ControlStyles.OptimizedDoubleBuffer Or ControlStyles.AllPaintingInWmPaint, True)
            Me.SetStyle(ControlStyles.EnableNotifyMessage, True)
        End Sub
#End Region

#Region "Reduce Flickering"
        Protected Overrides Sub OnNotifyMessage(ByVal m As Message)
            If m.Msg <> &H14 Then
                MyBase.OnNotifyMessage(m)
            End If
        End Sub
#End Region
I had to translate this from C# but it should work with VB too, also even though this code will reduce flickering and i believe freezing too, it will not fix the problem completely.
You can find me on Facebook or on Skype mihai_92b
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: Listview Freezed
Dummy1912
hi #XTechVB

seems it don't change a thing :(
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
10 posts Page 1 of 1
Return to “Coding Help & Support”