Friday, July 17, 2009

VB 6.0 code for Open file using Microsoft Common Dialog Control 6.0

CommonDialog1.DialogTitle = "Open File"

CommonDialog1.Filter = "Log Documents (*.log)|*.log|Text Documents (*.txt)|*.txt|Excel Spreadsheets (*.xls)|*.xls"

CommonDialog1.FilterIndex = 1

CommonDialog1.Flags = cdlOFNFileMustExist + cdlOFNHideReadOnly

CommonDialog1.ShowOpen

Dim filename As string

filename = CommonDialog1.filename

Dim fl As String

fl = CommonDialog1.FileTitle

No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...