Skip to content

Commit

Permalink
Merge pull request #3 from Davidos02/main
Browse files Browse the repository at this point in the history
Update Modules.vb
  • Loading branch information
DosX-dev committed Feb 10, 2023
2 parents b0ecf19 + 1225e64 commit 888c679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules.vb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices

Module TextBoxWatermarkExtensionMethod
Module TextBoxWatermarkExtensionMethod ' WinAPI (Only for Windows)
Private Const ECM_FIRST As UInteger = &H1500
Private Const EM_SETCUEBANNER As UInteger = ECM_FIRST + 1
<DllImport("user32.dll", CharSet:=CharSet.Auto, SetLastError:=False)>
Expand All @@ -12,4 +12,4 @@ Module TextBoxWatermarkExtensionMethod
Sub SetWatermark(ByVal TXT As System.Windows.Forms.TextBox, ByVal WaterMarkTextString As String)
SendMessage(TXT.Handle, EM_SETCUEBANNER, 0, WaterMarkTextString)
End Sub
End Module
End Module

0 comments on commit 888c679

Please sign in to comment.