salve a tutti,
come si tradurrebbe il codice seguente, fatto in vba di outlook, in vb.net??
ringrazio tutti anticipatamentecodice:Option Explicit Const ENUM_CURRENT_SETTINGS As Long = -1& Const CCDEVICENAME = 32 Const CCFORMNAME = 32 Public Type DEVMODE dmDeviceName As String * CCDEVICENAME dmSpecVersion As Integer dmDriverVersion As Integer dmSize As Integer dmDriverExtra As Integer dmFields As Long dmOrientation As Integer dmPaperSize As Integer dmPaperLength As Integer dmPaperWidth As Integer dmScale As Integer dmCopies As Integer dmDefaultSource As Integer dmPrintQuality As Integer dmColor As Integer dmDuplex As Integer dmYResolution As Integer dmTTOption As Integer dmCollate As Integer dmFormName As String * CCFORMNAME dmUnusedPadding As Integer dmBitsPerPel As Integer dmPelsWidth As Long dmPelsHeight As Long dmDisplayFlags As Long dmDisplayFrequency As Long End Type Private Declare Function EnumDisplaySettings Lib "user32" Alias "EnumDisplaySettingsA" (ByVal lpszDeviceName As Long, ByVal iModeNum As Long, lpDevMode As Any) As Boolean Sub ApriBrowser(ByVal strUrl As String, Optional blToolbar As Boolean = False) Dim Web As Object, Schermo As DEVMODE Call EnumDisplaySettings(0&, ENUM_CURRENT_SETTINGS, Schermo) Set Web = CreateObject("InternetExplorer.Application") With Web .Width = Schermo.dmPelsWidth * (90 / 100) .Height = Schermo.dmPelsHeight * (90 / 100) .Top = Schermo.dmPelsHeight * (5 / 100) .Left = Schermo.dmPelsWidth * (5 / 100) .Resizable = False .MenuBar = False .StatusBar = False .AddressBar = False .Toolbar = blToolbar .Visible = True .Navigate strUrl End With Set Web = Nothing End Sub

Rispondi quotando