Application of Hook in Chinese vb.net
In the vb.net version of the moderator for a while, has been thinking how to better help you understand vb.net new concepts and programming methods. Small replies are difficult to understand a lot of problems,
File One, form1.frm
Add a ListView, two ImageList, a text box
The code is as follows:
Option Explicit
'
' Copyright 1997-1999 Brad Martinez, http://www.mvps.org
'
' demonstrates to ' in ' where do subitem editing in the VB ListView.
Private
Many people, including myself, are often bothered by the correspondence between window and process or thread, and I have a general introduction to what I know now: a process has its own 4GB address space, the concept is relatively easy to accept,
Upload | download Option Explicit
Public Declare Function internetopen Lib "Wininet.dll" Alias "Internetopena" _
(ByVal sagent As String, ByVal Laccesstype as Long, ByVal Sproxyname As String, _
ByVal Sproxybypass as String, ByVal lflags as long)
Option explicit
Public declare function internetopen lib "wininet. dll" alias "internetopena "_(Byval sagent as string, byval laccesstype as long, byval sproxyname as string ,_Byval sproxybypass as string, byval lflags as long) as long
Public
vb| Solution | Source code | perform |shell| asynchronous | sync
Arisisi Web development team in the development of an ASP system, the need for Synchronous call VB (DLL) to perform shell operations, ASP->VB (DLL)->shell->rar.exe synchronous
Because of their own program in the need for a form region frequently color grayscale processing, for this purpose wrote a function. The processing object is a dynamic region that is constantly changing, and is a part of a series of drawings, the
SelectClipRgnFunction: Select a new clipping region for a regionDeclare Function selectcliprgn Lib "gdi32" Alias "SelectClipRgn" (ByVal hdc as Long, ByVal hRgn as long) as longParameter HDC: Device environment handle. HRGN: Identifies the selected
Private Type GUID Data1 as Long Data2 as Integer Data3 As Integer Data4 (0 to 7) as Byteend typeprivate Type Gd Iplusstartupinput Gdiplusversion as Long debugeventcallback as long suppressbackgroundthread as Long suppresex Ternalcodecs as Longend
Keyboard is a very important input device for us to use computers. Even today, manyProgramThe keyboard is still inseparable. But sometimes, some repetitive and tedious keyboard operations are always exhausting, so there is a way to replace people's
A small icon appears in the system tray area (that is, the time area in the lower right corner of the desktop) when many software are running. It serves as a sign for program running, you can use the menu popped up by the small icon to control the
Private declare function bitblt lib "GDI32" (byval hdestdc as long, byval X as long, byval y as long, byval nwidth as long, byval nheight as long, byval hsrcdc as long, byval xsrc as long, byval ysrc as long, byval dwrop as long) as longprivate
dialog box various dialog boxes (summary)
'
' Standard dialog box (smdialog)
'
Option Explicit
"Defines a global variable that holds various properties of the font
Public Type Smfontattr
FontName as String ' font name
FontSize as Integer ' font size
(2) process files
The following are the APIs for file operations in windows and their functions:
Closehandle closes a kernel object. This includes file, file ing, process, thread, security, and synchronization objects.Comparefiletime: Compare the
Developers can use the cf_html clipboard format (HTML format) to share HTML data with other applications that understand HTML, such as Microsoft Office and Microsoft Internet Explorer.
Cf_html is entirely a text-based format that includes des a
Program | Compress to open modmain.bas file with Notepad, copy the following content to it:
Attribute vb_name = "Modmain"
' ==============================================
' Information packaging and expansion (startup module)
'
' function:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.