"Destruction" Ideology
Let's talk about the idea first. If you have the idea, everything can be done well. Note the title of the dialog box in "Introduction". Is it "Windows File Protection. Let's start with it. There are two methods. One is to
Open the VB6 and create a new Standard EXE program, delete the window, and then add a module.Add the API declarations for AllocConsole, Freeconsole, Setconsoletitle, and sleep in the module:Public Declare Function allocconsole Lib "Kernel32.dll" ()
For programmers, VB is easy to use, but it requires some effort to control it in depth and flexibility. I will introduce several typical programming skills here, hoping to help the majority of VB enthusiasts.
1. How to create a custom cursor 1.
. Net or other platforms, transparent forms, some color-transparent forms, such as PhotoShop startup forms, can be easily created. However, VB 6 does not support transparent forms or partial transparency. to make transparent forms, you must call API
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Option Explicit
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As LongPrivate Declare Function OpenProcess Lib
The so-called graphic hotspot is to specify a certain area of a graphic or image. When you click or double-click the mouse in this area, the corresponding event will be triggered like a command button. In VB 5, I use the three APIs provided by
Create irregular forms using VB. NetGenerally, the form of an application is a regular, that is, a rectangular form. Sometimes for some special purpose, we want to change the shape of the application form, such as creating a personalized mp3 player
I. restrict the movement of the mouse
---- Sometimes our software requires that the mouse cannot be moved out of the current active control when the user does not complete a task. In other words, the mouse is restricted inside the control, until the
En ~ After all, I learned how to do it in my spare time.
VB. the code written in NET 2008 is mainly the VB6 code written by someone a few days ago. It runs well and can be changed to VB. NET 2008 is a bad thing. It runs well on the D325 U of the XP
Option Explicit
''' Window translucent Declaration startsPrivate Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As LongPrivate Declare Function SetWindowLong Lib "user32" Alias
Read the program version from the Registry
Tu Enhai (Sunhai)Development Tool: Microsoft Visual Studio. NET 2003Operating System: Windows XP Automatic dialing is likely to be used when writing network programs. For example, the mail
I. Implementation Method:
1. Create a project/form (the form name is ini. FRM), and add three command button controls to the form, command1, command2, and command3Command1.caption = "write"Command2.caption = "read"Command3.caption = "end"
2.
Xiao Lei, software engineer, IBM Xiao Lei, software engineer, responsible for c api development in IBM Lotus Domino toolkit team. Kang Jian, Senior Software Engineer, IBM Kang Jian, Senior Software Engineer, responsible for testing in IBM Lotus
Short Message Service and Pocket PC phone Edition Short Message Service is the standard for sending short-letter-digital messages (up to 160 characters) between mobile phones in the global system for mobile communications networks (GSM. It is
Upgrade
Wizard
The paramarray parameter in the process indicates an upgrade warning. For example, the following code:
Function myfunction (paramarray P () as variant)
'...
End Function
After the upgrade, it will be
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As LongPrivate Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As
Application of VB neutron Classification Technology
Sub-classification technology principle: first obtain the address where the original Window Procedure is located, record it, and then set all the messages to be first transferred to the message
In the XP operating system, buttons in the webbrowser control of VB do not have the XP style. The followingCodeYou can display the XP style on the page in the webbrowser control:
Private m_hmod as longPrivate m_hmod2 as longPrivate declare
Some solutions to the problems encountered when using shell statements in VB are as follows:
It should be a shell commandProgramAfter the execution is complete, execute the operation to display the file to textbox. Use waitforsingleobject to wait
2003-12-3Today, like a book, I used VC to compile a dynamic link library (DLL) --. DLL, then copy it to the Windows/system/directory, and then create a vbprogram, and declare a in the program. the add () function in DLL implements the addition
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.