Message 1 of 11
TaskDialog and FileName
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
The TaskDialog does not display the full path, do you have a solution?
thank you.
public class TestPath { public string Extension { get { return ".rfa"; } } public string FamilyFolder { get { return System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "\\Support\\"; } } public string FamilyPath { get { return FamilyFolder + FamilyName + Extension; } } public string FamilyName { get { return "MyFamily"; } } }
TestPath tp = new TestPath(); if (!File.Exists(tp.FamilyPath)) { TaskDialog d = new TaskDialog("Error"); d.TitleAutoPrefix = false; d.MainIcon = TaskDialogIcon.TaskDialogIconWarning; d.MainInstruction = string.Format("{0} not found in {1}.", tp.FamilyName, tp.FamilyFolder); d.Show(); }