Set Default Page Setup in ReportViewer

Dim pg As New System.Drawing.Printing.PageSettings()    pg.Margins.Top = 0    pg.Margins.Bottom = 0.25                pg.Margins.Left = 0                pg.Margins.Right = 0 Dim size As System.Drawing.Printing.PaperSize = New PaperSize(“custom”, 300, 200) ‘the custom size…

VB.Net Message Box Modal

MsgBox(“Modal Message”, MsgBoxStyle.SystemModal + MsgBoxStyle.Exclamation, “VB.Net Message Box Modal”)…

Get Windows User Full Name in VB 6

Code in getting the windows user’s fullname. Dim strComputer As StringDim strUserName As StringDim objUser As Object strComputer = “ComputerName”strUserName = “UserNameSet objUser = GetObject(“WinNT://” & strComputer & “/” & strUserName)…