C# - LockWindowUpdate Without Using Dll?
Nov 3, 2011
API Conversion from vb to vb.net.In vb6 they using user32 DLL.In Vb.Net i need to call LockWindowUpdate Function() without that "User32.dll" function.
Is there any way to Lock window state without using any API Calls in vb.net..?
If equivalent is any one know let me show that codes.that codes should be work with in .net framework.
VB
Private Declare Function LockWindowUpdate Lib "user32"
(ByVal hWnd As Long) As Long
LockWindowUpdate Form1.hWnd
View 1 Replies
Sep 8, 2010
I've got a bit of a problem, I'm using a backgroundworker to do a lot of processing and it adds items to a listview with: AddListItem(ListView1, listItem)
Here is the delegate code to send the command to the listview outside of the thread:
Delegate Sub AddListItem_Delegate(ByVal [ListView] As ListView, ByVal [text] As Object)
Private Sub AddListItem(ByVal [ListView] As ListView, ByVal [text] As ListViewItem)
[Code]...
The problem is, as you might imagine, flickering of the listview. Can anyone help me out with a solution to execute a LockWindowUpdate(Me.Handle) command in the backgroundworker? I've tried creating a new delegate but it's not working (errors, I don't understand vb.net enough).
View 1 Replies