This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION 1.0 CLASS | |
BEGIN | |
MultiUse = -1 'True | |
Persistable = 0 'NotPersistable | |
DataBindingBehavior = 0 'vbNone | |
DataSourceBehavior = 0 'vbNone | |
MTSTransactionMode = 0 'NotAnMTSObject | |
END | |
Attribute VB_Name = "cPrintersCombo" | |
Attribute VB_GlobalNameSpace = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION 1.0 CLASS | |
BEGIN | |
MultiUse = -1 'True | |
Persistable = 0 'NotPersistable | |
DataBindingBehavior = 0 'vbNone | |
DataSourceBehavior = 0 'vbNone | |
MTSTransactionMode = 0 'NotAnMTSObject | |
END | |
Attribute VB_Name = "Collection2" | |
Attribute VB_GlobalNameSpace = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'----------------------------------------- SUBJECT ----------------------------------------- | |
'Changes screen resolution using MS Visual Basic 6.0 | |
evry1falls | |
http://www.evry1.net/VB6/ | |
'----------------------------------------- Code ----------------------------------------- | |
Option Explicit | |
Const CCHDEVICENAME = 32 | |
Const CCHFORMNAME = 32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' http://web.archive.org/web/20060527094535/http://www.nonhostile.com/howto-encode-decode-base64-vb6.asp | |
' http://cwestblog.com/2013/09/23/vbscript-convert-image-to-base-64/ | |
Public Function ConvertFileToBase64(strFilePath As String) As String | |
Const UseBinaryStreamType = 1 | |
Dim streamInput: Set streamInput = CreateObject("ADODB.Stream") | |
Dim xmlDoc: Set xmlDoc = CreateObject("Microsoft.XMLDOM") | |
Dim xmlElem: Set xmlElem = xmlDoc.createElement("tmp") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' # | |
' # 依值設定ComboBox.ListIndex | |
' # VB6的Combox的操作實在不人性,只好讓它人性一些些。 | |
' # ref → http://stackoverflow.com/questions/18422210/vb6-select-combobox-text-value-based-on-database-data | |
' # 假設combox的list放資料的格式為:<value>.<dispaly_name> | |
' # eg. "0001.我是一號", "0002.我是二號二號", "0003.我是三號三號三號" | |
' # code → CombobBox_SetListIndexWithValue myCombox, "0002" | |
' # | |
Public Sub CombobBox_SetListIndexWithValue(cboData As ComboBox, value As String, Optional intCboLen As Integer = 4) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpSectionName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpbuffurnedString As String, ByVal nBuffSize As Long, ByVal lpFileName As String) As Long | |
Private Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpSectionName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long | |
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long | |
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long | |
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long | |
Private Declare Function GetModuleHandle Lib "kernel32.dll" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long | |
Private Declare Function DispCallFunc Lib "oleaut32.dll" (ByVal pvInstance A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'************************************************************************* | |
'**模 块 名:ModShellEx | |
'**说 明:增强SHELL函数 | |
'**创 建 人:马大哈 | |
'**描 述:紫水晶工作室 http://www.m5home.com/ | |
'**日 期:2007年4月24日 | |
'**版 本:V1.0 | |
'************************************************************************* | |
Option Explicit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long | |
Private Declare Function GdiplusStartup Lib "gdiplus" (hToken As Long, pInputBuf As Any, Optional ByVal pOutputBuf As Long = 0) As Long | |
Private Declare Function GdipLoadImageFromFile Lib "gdiplus" (ByVal lFilenamePtr As Long, hImage As Long) As Long | |
Private Declare Function GdipDisposeImage Lib "gdiplus" (ByVal hImage As Long) As Long | |
Private Sub Form_Load() | |
Dim aInput(0 To 3) As Long | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION 5.00 | |
Begin VB.UserControl LabelVert | |
Appearance = 0 'Flat | |
BackColor = &H80000005& | |
BackStyle = 0 'Transparent | |
CanGetFocus = 0 'False | |
ClientHeight = 3372 | |
ClientLeft = 0 | |
ClientTop = 0 | |
ClientWidth = 4980 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Source : http://evry1.net/VB6/ | |
'Subject : Visual Basic 6.0 How to create and understand | |
'Color Picker Appliaction | |
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | |
Option Explicit | |
Private Type pointapi | |
Px As Long | |
Py As Long | |
End Type |