Thank you very much, but I prefer to use old good InvertRect or InvertRgn.
Truly - there's a thin line between genius, and insanity!
There are so many features for each trifle in NET...
Thank you!
I have one more question - if I set e.Handled = True in KeyPress event, it works correctly, but in KeyDown it just does not work. What is it - bug, issue or any new feature? I tried it on Windows XP SP1 and .NET SP1.
Hi all!
If somebody has developed any user control (former ActiveX) in VB.NET yet - what are the .NET analogues for "InitProperties" and "UserMode" from VB6? In other words, how can I determine when control has been placed on it's container for the first time, what mode...
Why, if I define some class inherits from DictionaryBase, For-Each does not work? I get the error "Specified cast is not valid". Here is a sample code:
Public Class Customer
Private m_CustName As String
Public ReadOnly Property CustName()
Get
Return...
Is there any way to sort data returned by XQL query? For example:
Set colNodes = objDOM.selectNodes("//SALES_LIST/SALE")
and sort the result by @saleDate, just like we can filter it with [@saleDate != '01 Jan 2002'].
Thank you
I have a toolbar with DropDown button, that drops down when I click the little arrow near the button. But how can I get the same effect by clicking the button, not the arrow? ( try to click AddProject button in VB IDE )
Hi!
I have a TreeView control with 3 levels of nodes and an ImageBox with 5 images. There is some code in NodeClick and TreeView_Expand events. And when I click on some Node or expand it - everything is all right. But when I call these events from within code, like this:
Call...
But I DO NOT want to use the selected item!
OK, this is the code I use:
1. In the General section
Private lst As ListItem
2. In the MouseMove event
Set lst = lv.HitTest(x , y)'lv - the ListView control
3. In The DoubleClick event
If Not lst is Nothing Then
'My code here
End If
There is a DblClick event for ListView control, but there is not DblClick event for it's ListItem. How can I define that DblClick event occures exactly when I make double click on ListItem and not on blank space of control?
Have anybody ever seen the error message "Catastrophic failure"? It appears during client's interaction with our DLL, but not every time - very rarely. Nothing I found in MSDN couldn't help. What can cause this error: size of DLL(more than 1 Mb), SQL Server error(connection falure) or...
There are cross references and circular references in component I created. Therefore it doesn't fires Terminate event when I set it to Nothing and doesn't free memory. It can be catastrofical if somebody will be use it about 500-1000 times.(After 100 times it occupies 9 Mb). I read in MSDN that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.