FileDialogsLoadByDialogTObject Method (LoadConstructorTObject, String, String, DialogResult)

CVB.Net Documentation
Generic file load function.

Namespace:  Stemmer.Cvb.Forms
Assembly:  Stemmer.Cvb.Forms (in Stemmer.Cvb.Forms.dll) Version: 14.0.0.0
Syntax

public static TObject LoadByDialog<TObject>(
	LoadConstructor<TObject> f,
	string title,
	string filter,
	out DialogResult dlgRes
)
where TObject : class

Parameters

f
Type: Stemmer.Cvb.UtilitiesLoadConstructorTObject
Load delegate.
title
Type: SystemString
Title of the dialog.
filter
Type: SystemString
File type filter.
dlgRes
Type: System.Windows.FormsDialogResult
Dialog result.

Type Parameters

TObject
Type of the object to be loaded.

Return Value

Type: TObject
Loaded object (or null if loading fails).
See Also

Reference