亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? codelib.cod

?? 用VB作的程序電子書
?? COD
?? 第 1 頁 / 共 3 頁
字號:
Me.Move (Screen.Width / 2) - (Me.Width / 2), (Screen.Height / 2) - (Me.Height / 2)
'Next, call the ExplodeForm
ExplodeForm Form1, 200, vbRed
End Sub

鼢鼢鼢
Code from Planet Source

鼢鼢鼢
 2 
CountLinesInTextbox2
Private Declare Function SendMessageAsLong Lib "user32"  Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

Public Function GetLineCount(C as Control)
  Const EM_GETLINECOUNT = 186
  GetLineCount = SendMessageAsLong(C.Hwnd, EM_GETLINECOUNT, 0, 0)
End Function
鼢鼢鼢
CountLinesInTextBox

Counts the lines in a Multiline TextBox

Syntax: GetLineCount(C)

C: TextBox

Example:

Private Sub Text1_Change()
Label1.Caption = GetLineCount(Text1)
End Sub

鼢鼢鼢
鼢鼢鼢
 4 
SetLine
Public Function Setline(OBJ As Object, LineY%, Optional LineStyle as Boolean)
If IsMissing(LineStyle) then LineStyle = False
If LineStyle = False Then
OBJ.Line (0, LineY)-(OBJ.ScaleWidth, LineY), RGB(128, 128, 128)
OBJ.Line (0, LineY + 1)-(OBJ.ScaleWidth, LineY + 1), RGB(240, 240, 240)
Else
OBJ.Line (0, LineY)-(OBJ.ScaleWidth, LineY), RGB(240, 240, 240)
OBJ.Line (0, LineY + 1)-(OBJ.ScaleWidth, LineY + 1), RGB(128, 128, 128)
End If
End Function

鼢鼢鼢
SetLine

Sets a 3D line on the screen

Syntax: Setline Object, Y, [LineStyle]

Object: Form or PictureBox
Y: The y-coordinate of the line to appear
LineStyle: (Optional) True or False
   True: Sets the line raised (default)
   False: Sets the line inset

Remarks:
* The objects Scale-property must be set to 3 (pixel) and AutoRedraw = True
* The LineStyle is False by default (inset)
* Best effect with standard forms - with a grey background
 
Examples

SetLine Form1, 20 'sets a line on Form1, on Y-position = 20, inset
SetLine Form2, 55, 1  'sets a line on Form2, on Y-position = 55, raisedt
SetLine Picture1, 10, 0  'sets a line on Picture1, on Y-position = 10, inset
鼢鼢鼢
鼢鼢鼢
 5 
NumChr
Public Function NumChr(Char%)
If Char = 13 Or Char = 8 Then NumChr = Char: Exit Function 'detect enter & backspace
If Char < 42 Or Char > 57 Then Char = 0
NumChr = Char
End Function
鼢鼢鼢
NumChr

Will type only the characters: * + , - . / 0 1 2 3 4 5 6 7 8 9
This function must be called from the KeyPress-event
This is usefull for textboxes where only numbers may be typed.

Remark:

The enter-code (13) and backspace-code (8) still works

Example:

Private Sub Text1_KeyPress(KeyAscii As Integer)
KeyAscii = NulChr(KeyAscii)
End Sub


鼢鼢鼢
鼢鼢鼢
 5 
UAscii
Private Function UAscii(Key%) As Integer
If Key > 96 And Key < 133 Then Key = Key - 32
UAscii = Key
End Function

鼢鼢鼢
UAscii Function

All characters are typed in upper-case
When you type: abcde or AbCDe, the textbox displays always ABCDE

Example:

Private Sub Text1_KeyPress(KeyAscii As Integer)
Keyascii = UAscii(KeyAscii)
End Sub

鼢鼢鼢
鼢鼢鼢
 4 
Grad
Public Enum DirecGrad
Horiz
Vertic
End Enum

Public Function Grad(Obj As Object, Col1 As Long, Col2 As Long, Optional Dgrad As DirecGrad)
Dim R1, R2, G1, G2, B1, B2, Sr, Sg, Sb, H%, H2%, xxx%
Dim R, G, B
Dim TmpScale%
On Error Resume Next
If IsMissing(Dgrad) Then Dgrad = Horiz
TmpScale = Obj.ScaleMode
Obj.ScaleMode = 3
Obj.AutoRedraw = True
R1 = Col1 And &H800000FF
R2 = Col2 And &H800000FF
G1 = (Col1 And &H8000FF00) / &H100
G2 = (Col2 And &H8000FF00) / &H100
B1 = (Col1 And &H80FF0000) / &H10000
B2 = (Col2 And &H80FF0000) / &H10000
If Dgrad = Horiz Then
H = Obj.ScaleHeight
Else
H = Obj.ScaleWidth
End If
Sr = (R2 - R1) / H
Sg = (G2 - G1) / H
Sb = (B2 - B1) / H
For xxx = 0 To H
If Dgrad = Horiz Then
Obj.Line (0, xxx)-(Obj.ScaleWidth, xxx), RGB(R1, G1, B1)
Else
Obj.Line (xxx, 0)-(xxx, Obj.ScaleHeight), RGB(R1, G1, B1)
End If
R1 = R1 + Sr
G1 = G1 + Sg
B1 = B1 + Sb
Next xxx
Obj.ScaleMode = TmpScale
End Function
鼢鼢鼢
Grad Function

Gradient a form or picturebox with two colors

Syntax:  Grad Object, Col1, Col2, [Dgrad]

Object: Form or PictureBox
Col1: First color of the gradient - long value
Col2: Second color of the gradient - long value
Dgrad: Optional
        Horiz: Horizontal gradient
        Vertic: Vertical gradient

Remarks:
If Dgrad is omitted then the horizontal gradient will be executed

Examples:

Grad Form1, &HFF0080, &H8040&
Grad Form1, &H40A0E0, &H8040FF, Vertic
Grad Picture1, &H804080, &HFF&, Horiz

鼢鼢鼢
鼢鼢鼢
 4 
Grad3
Public Enum DirecGrad
Horiz
Vertic
End Enum

Public Function Grad3(Obj As Object, Col1 As Long, Col2 As Long, Col3 As Long, Optional Dgrad As DirecGrad)
Dim R1, R2, R3, G1, G2, G3, B1, B2, B3, Sr, Sg, Sb, H%, H2%, xxx%
Dim R, G, B
Dim TmpScale%
On Error Resume Next
If IsMissing(Dgrad) Then Dgrad = Horiz
TmpScale = Obj.ScaleMode
Obj.ScaleMode = 3
Obj.AutoRedraw = True
R1 = Col1 And &H800000FF
R2 = Col2 And &H800000FF
R3 = Col3 And &H800000FF
G1 = (Col1 And &H8000FF00) / &H100
G2 = (Col2 And &H8000FF00) / &H100
G3 = (Col3 And &H8000FF00) / &H100
B1 = (Col1 And &H80FF0000) / &H10000
B2 = (Col2 And &H80FF0000) / &H10000
B3 = (Col3 And &H80FF0000) / &H10000
    If Dgrad = Horiz Then
    H = Obj.ScaleHeight / 2
    H2 = Obj.ScaleHeight
    Else
    H = Obj.ScaleWidth / 2
    H2 = Obj.ScaleWidth
    End If
    
    Sr = (R2 - R1) / H
    Sg = (G2 - G1) / H
    Sb = (B2 - B1) / H
    For xxx = 0 To H
    If Dgrad = Horiz Then
    Obj.Line (0, xxx)-(Obj.ScaleWidth, xxx), RGB(R1, G1, B1)
    Else
    Obj.Line (xxx, 0)-(xxx, Obj.ScaleHeight), RGB(R1, G1, B1)
    End If
    R1 = R1 + Sr
    G1 = G1 + Sg
    B1 = B1 + Sb
    Next xxx
    Sr = (R3 - R2) / H
    Sg = (G3 - G2) / H
    Sb = (B3 - B2) / H
    For xxx = H To H2
    If Dgrad = Horiz Then
    Obj.Line (0, xxx)-(Obj.ScaleWidth, xxx), RGB(R2, G2, B2)
    Else
    Obj.Line (xxx, 0)-(xxx, Obj.ScaleHeight), RGB(R2, G2, B2)
    End If
    R2 = R2 + Sr
    G2 = G2 + Sg
    B2 = B2 + Sb
    Next xxx
Obj.ScaleMode = TmpScale
End Function
鼢鼢鼢
Grad3 Function

Gradient a form or picturebox with three colors

Syntax:  Grad Object, Col1, Col2, Col3, [Dgrad]

Object: Form or PictureBox
Col1: First color of the gradient - long value
Col2: Second color of the gradient - long value
Col3: Third color of the gradient - long value
Dgrad: Optional
        Horiz: Horizontal gradient
        Vertic: Vertical gradient

Remarks:
If Dgrad is omitted then the horizontal gradient will be executed

Examples:

Grad Form1, &HFF0080, &h0, &H8040&
Grad Form1, &H40A0E0, &H8040FF,&hFFFFFF,  Vertic
Grad Picture1, &H804080, &HFF&, &fA080C0, Horiz

鼢鼢鼢
鼢鼢鼢
 6 
CryptText
Public Function CryptText(CrTxt$, CrCode)
Dim CrX%
CrCode = CrCode and &HFF& ' max 255 !
For CrX = 1 To Len(CrTxt)
If Mid(CrTxt, CrX, 1) <> Chr(13) Then
Mid(CrTxt, CrX, 1) = Chr(Asc(Mid(CrTxt, CrX, 1)) Xor CrCode)
End If
Next CrX
CryptText = CrTxt
End Function

鼢鼢鼢
CryptText Function

Syntax: CryptText(CrTxt, CrCode)

CrTxt: The text to be crypted
CrCode: The cryption-code. This must be in the range of 1 - 255.

Remarks:
* This is an easy way to crypt a text.
* To uncrypt, call the same function again (with the same cryption-code !!!)
* A CrCode of 0 cannot be used, because the text will not be changed.

Examples:

A = CryptText("This is an example, 1)
Label1.caption = CryptText("This is another example, 155)

A full example:
' Start a new project and add a Command-button and a Label
' Put the CryptText-function in a module
' Press the command button to crypt the text
' Press the command button again to decrypt the text

Private Sub Form_Load()
Label1.Caption = "This is a test" & vbCr & "to see what happens"
End Sub

Private Sub Command1_Click()
Label1.Caption = CryptText(Label1.Caption, 1)
End Sub

鼢鼢鼢
鼢鼢鼢
 6 
BackText
Public Function BackText(BkTxt$)
If BkTxt = "" Then BackText = "": Exit Function
Dim Bkx%, NewBkTxt$
For Bkx = Len(BkTxt) To 1 Step -1
NewBkTxt = NewBkTxt & Mid(BkTxt, Bkx, 1)
Next Bkx
BackText = NewBkTxt
End Function

鼢鼢鼢
BackText Function

Reverses a given string

Syntax: BackText(BkTxt)

BkTxt: The string to reverse

Example:

Label1.Caption =BackText(Label1.Caption)

Dim A$, B$
A = "This is a test"
B$ = BackText(A)

鼢鼢鼢
鼢鼢鼢
 6 
AnaGram
Public Function AnaGram(AnaWord$) As String
if AnaWord = "" then AnaGram = "": Exit Function
Dim QQ%, An%, An1%
ReDim An2%(Len(AnaWord))
AnaGram = ""
For An = 1 To Len(AnaWord)
NewRnd:
Randomize
An1 = Int(Rnd * Len(AnaWord)) + 1
    For QQ = 1 To An
    If An2(QQ) = An1 Then GoTo NewRnd
    Next QQ
An2(An) = An1
Anagram = Anagram + Mid(AnaWord, An1, 1)
Next An
End Function
鼢鼢鼢
AnaGram

This function returns an anagram of a given string.

Syntax:  AnaGram(AnaWord)

AnaWord: A string to be scrambled

Example:

Label1.Caption = AnaGram(Label1.Caption)

Dim A$, B$
A = "This is a test"
B$ = AnaGram(A)

鼢鼢鼢
鼢鼢鼢
 2 
OpenURL
#If Win32 Then
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
#Else
Private Declare Function ShellExecute Lib "shell.dll" (ByVal hwnd As Integer, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Integer) As Integer
#End If
Private Const SW_SHOWNORMAL = 1

Private Sub Command1_Click()
Dim iret As Long
    iret = ShellExecute(Me.hwnd, vbNullString, "http://www.whateversite.com", vbNullString, "c:\", SW_SHOWNORMAL)
End Sub

Private Sub Command2_Click()
Dim iret As Long
    iret = ShellExecute(Me.hwnd, vbNullString, "mailto:whoever@whatever.com", vbNullString, "c:\", SW_SHOWNORMAL)
End Sub

鼢鼢鼢
OpenURL Api

Syntax:
' for win32
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Opens the default webbrowser or email-program from within VB

Examples:

Private Sub Command1_Click() 'Open web-browser
Dim iret As Long
' replace the adress by the adres you want.
    iret = ShellExecute(Me.hwnd, vbNullString, "http://www.asitetovisit.com", vbNullString, "c:\", SW_SHOWNORMAL)
End Sub

Private Sub Command2_Click() 'Open e-mail program
Dim iret As Long
' replace the adress by the adress you want
    iret = ShellExecute(Me.hwnd, vbNullString, "mailto:mailtosomeone@anything.be", vbNullString, "c:\", SW_SHOWNORMAL)
End Sub

鼢鼢鼢
鼢鼢鼢
 4 
Grad45
Public Enum GradDir
LeftRight
RightLeft
End Enum
Public Function Grad45(Obj As Object, RG1, GG1, BG1, Optional RG2, Optional GG2, Optional BG2, Optional GrDir As GradDir)
If IsMissing(RG2) Then RG2 = 0
If IsMissing(GG2) Then GG2 = 0
If IsMissing(BG2) Then BG2 = 0
If IsMissing(GrDir) Then GrDir = LeftRight
Dim RGS, GGS, BGS, ScG%, NewL%, NewR, NewG, NewB, Gx%
ScG = Obj.ScaleMode
Obj.ScaleMode = 3 'pixel
Obj.AutoRedraw = True
Obj.DrawWidth = 2
Obj.DrawStyle = 6
'-----------
NewL = Obj.ScaleWidth + Obj.ScaleHeight
RGS = (RG2 - RG1) / NewL
GGS = (GG2 - GG1) / NewL
BGS = (BG2 - BG1) / NewL
For Gx = 0 To NewL
If GrDir = LeftRight Then
Obj.Line (0, Gx)-(Gx, 0), RGB(Int(RG1), Int(GG1), Int(BG1))
Else
Obj.Line (Obj.ScaleWidth - NewL + Gx, 0)-(Obj.ScaleWidth, NewL - Gx), RGB(Int(RG1), Int(GG1), Int(BG1))
End If
RG1 = (RG1 + RGS)
GG1 = (GG1 + GGS)
BG1 = (BG1 + BGS)

Next Gx

Obj.ScaleMode = ScG
End Function

鼢鼢鼢
Grad45 Function

Does gradient the form or picturebox with 45

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩不卡一区| 亚洲欧洲日韩在线| 56国语精品自产拍在线观看| 日本韩国欧美在线| www.成人网.com| 国产suv精品一区二区6| 成人一级视频在线观看| 福利电影一区二区| 成人av在线影院| 99久久久久久| 一本色道a无线码一区v| 欧洲国内综合视频| 欧美日韩高清在线播放| 欧美精品第1页| 日韩免费一区二区三区在线播放| 日韩欧美一级二级| 国产亚洲午夜高清国产拍精品| 久久综合久久综合亚洲| 国产欧美日韩精品a在线观看| 欧美国产综合一区二区| 国产精品免费人成网站| 日韩理论片网站| 亚洲影院久久精品| 青青草国产精品亚洲专区无| 麻豆成人久久精品二区三区红| 韩国理伦片一区二区三区在线播放| 国产美女精品人人做人人爽| 成人av电影在线播放| 日本精品免费观看高清观看| 欧美日韩国产电影| 久久久久国产一区二区三区四区| 中文字幕av一区 二区| 亚洲女女做受ⅹxx高潮| 午夜国产精品一区| 国产精品亚洲第一区在线暖暖韩国| 成人h动漫精品一区二区| 欧美日韩一级片在线观看| 日韩一级欧美一级| 国产精品成人免费| 天天影视网天天综合色在线播放| 麻豆一区二区三| a亚洲天堂av| 欧美一区日本一区韩国一区| 国产亲近乱来精品视频| 亚洲国产视频网站| 国产高清无密码一区二区三区| 色婷婷精品大视频在线蜜桃视频| 欧美一区二区三区播放老司机| 亚洲国产高清不卡| 午夜欧美一区二区三区在线播放| 国产一区二区三区不卡在线观看| 91麻豆国产在线观看| 精品精品欲导航| 亚洲免费av网站| 国产成人av一区| 6080日韩午夜伦伦午夜伦| 国产精品久久久久久久浪潮网站 | 亚洲综合一区二区精品导航| 狂野欧美性猛交blacked| 91啪亚洲精品| 精品国产区一区| 亚洲午夜精品在线| 懂色一区二区三区免费观看| 在线观看91av| 国产精品素人一区二区| 美美哒免费高清在线观看视频一区二区| 成人午夜激情影院| 日韩免费视频一区| 丝瓜av网站精品一区二区| 99在线热播精品免费| 精品盗摄一区二区三区| 午夜欧美在线一二页| 91国偷自产一区二区开放时间| 久久精品视频免费观看| 美脚の诱脚舐め脚责91 | 欧美人与禽zozo性伦| 国产精品久久久久久久久免费相片 | 国产精品伦一区| 国内不卡的二区三区中文字幕| 欧美日本一道本| 亚洲一二三四久久| 91丝袜美女网| 国产精品午夜春色av| 久久国产精品区| 日韩一区二区三区视频在线 | 91色九色蝌蚪| 欧美激情综合在线| 国内精品伊人久久久久影院对白| 欧美日本国产视频| 午夜视频在线观看一区二区三区| 色婷婷综合五月| 综合电影一区二区三区 | 精品久久久久久无| 精品一区二区三区av| 欧美日韩国产a| 午夜欧美大尺度福利影院在线看| 欧美天堂一区二区三区| 一区二区理论电影在线观看| 94色蜜桃网一区二区三区| 国产精品情趣视频| 波多野结衣91| 中文字幕在线观看一区二区| 成人激情综合网站| 国产精品久久久久影院亚瑟 | 欧美日韩中文字幕精品| 亚洲夂夂婷婷色拍ww47| 欧美日韩在线播放三区四区| 夜夜爽夜夜爽精品视频| 在线观看区一区二| 亚洲国产人成综合网站| 欧美日韩亚洲高清一区二区| 亚洲电影激情视频网站| 欧美日本韩国一区| 麻豆91免费看| 久久久www成人免费无遮挡大片| 精品一区二区久久| 久久九九全国免费| 岛国精品在线观看| 亚洲精品日产精品乱码不卡| 欧美亚洲一区三区| 青青草91视频| 久久久久一区二区三区四区| 国产精品99久久久久久似苏梦涵| 国产欧美精品一区二区三区四区 | www日韩大片| 高清久久久久久| 亚洲摸摸操操av| 欧美日韩一卡二卡三卡 | 日本国产一区二区| 婷婷夜色潮精品综合在线| 欧美成人性战久久| 国产69精品久久777的优势| 国产精品国产三级国产三级人妇 | 欧美日韩第一区日日骚| 午夜激情综合网| www精品美女久久久tv| 99精品欧美一区| 韩国v欧美v日本v亚洲v| 欧美丝袜丝交足nylons图片| 日韩激情av在线| 久久久久成人黄色影片| 99久久婷婷国产综合精品电影 | 另类调教123区| 中文字幕一区二区三区不卡在线 | 中文字幕中文字幕一区| 欧美视频在线一区二区三区 | 日韩欧美亚洲一区二区| 夫妻av一区二区| 日韩av中文字幕一区二区| 国产色爱av资源综合区| 欧美午夜精品久久久久久超碰 | 欧美一级理论性理论a| 国产91精品露脸国语对白| 亚洲 欧美综合在线网络| 久久综合色之久久综合| 在线免费观看日韩欧美| 老司机午夜精品99久久| 一级做a爱片久久| www国产成人| 欧美日韩午夜在线| 99综合影院在线| 狠狠色狠狠色合久久伊人| 亚洲综合色丁香婷婷六月图片| 久久久久国产精品麻豆ai换脸 | 3751色影院一区二区三区| 福利一区福利二区| 美女在线一区二区| 亚洲自拍与偷拍| 国产精品成人网| 国产亚洲综合在线| 日韩一级二级三级| 欧美调教femdomvk| 91看片淫黄大片一级在线观看| 久久精品99久久久| 亚洲成人先锋电影| 亚洲欧美韩国综合色| 欧美极品少妇xxxxⅹ高跟鞋| 91精品国产综合久久精品图片| 91蝌蚪国产九色| 国产91色综合久久免费分享| 久久精品二区亚洲w码| 视频一区视频二区中文| 亚洲女人****多毛耸耸8| 国产精品全国免费观看高清| 精品欧美一区二区三区精品久久| 欧美图片一区二区三区| 91蜜桃网址入口| av一区二区三区四区| 国产精品一区二区久久精品爱涩| 另类的小说在线视频另类成人小视频在线 | 精品少妇一区二区三区免费观看| 欧美三级韩国三级日本三斤| 91丨九色丨国产丨porny| 成人免费看黄yyy456| 国产精品99久久久久久久女警| 久久精品国产999大香线蕉| 日韩成人免费电影| 日精品一区二区| 日本不卡一区二区三区| 日本欧美一区二区三区|