Could someone please help to with the skeleton code for implementing some a Visual Basic Code into Visual Basic Script or Javascript. Is it is possible to do such a thing?<br>Here is the code. PLEASE PLEASE HELP<br><br>Thanks heaps<br><br>Private Declare Function GetDesktopWindow Lib "user32" () As Long<br>Private Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long<br>Private Declare Function GetTextMetrics Lib "gdi32" Alias "GetTextMetricsA" (ByVal hdc As Long, lpMetrics As TEXTMETRIC) As Long<br>Private Declare Function SetMapMode Lib "gdi32" (ByVal hdc As Long, ByVal nMapMode As Long) As Long<br>Private Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long<br>Private Const MM_TEXT = 1<br>Private Type TEXTMETRIC<br> tmHeight As Integer<br> tmAscent As Integer<br> tmDescent As Integer<br> tmInternalLeading As Integer<br> tmExternalLeading As Integer<br> tmAveCharWidth As Integer<br> tmMaxCharWidth As Integer<br> tmWeight As Integer<br> tmItalic As String * 1<br> tmUnderlined As String * 1<br> tmStruckOut As String * 1<br> tmFirstChar As String * 1<br> tmLastChar As String * 1<br> tmDefaultChar As String * 1<br> tmBreakChar As String * 1<br> tmPitchAndFamily As String * 1<br> tmCharSet As String * 1<br> tmOverhang As Integer<br> tmDigitizedAspectX As Integer<br> tmDigitizedAspectY As Integer<br>End Type<br><br>' Returns true if the system is using small fonts,<br>' false if using large fonts<br>'<br>' Source: the MS knowlege base article Q152136.<br>'<br>Public Function SmallFonts() As Boolean<br> Dim hdc As Long<br> Dim hwnd As Long<br> Dim PrevMapMode As Long<br> Dim tm As TEXTMETRIC<br><br> ' Set the default return value to small fonts<br> SmallFonts = True<br> <br> ' Get the handle of the desktop window<br> hwnd = GetDesktopWindow()<br><br> ' Get the device context for the desktop<br> hdc = GetWindowDC(hwnd)<br> If hdc Then<br> ' Set the mapping mode to pixels<br> PrevMapMode = SetMapMode(hdc, MM_TEXT)<br> <br> ' Get the size of the system font<br> GetTextMetrics hdc, tm<br><br> ' Set the mapping mode back to what it was<br> PrevMapMode = SetMapMode(hdc, PrevMapMode)<br><br> ' Release the device context<br> ReleaseDC hwnd, hdc<br> <br> ' If the system font is more than 16 pixels high,<br> ' then large fonts are being used<br> If tm.tmHeight > 16 Then SmallFonts = False<br> End If<br><br>End Function