Recently programming has appeared a very depressing thing! The program needs to edit a function, and need to be able to set their own Save folder! The code is as follows:
1FolderBrowserDialog FBD =NewFolderBrowserDialog ();2Fbd. SelectedPath = AppDomain.CurrentDomain.BaseDirectory +"video\\";3Frmmonitoring.path_picture =FBD. SelectedPath;4 if(FBD. ShowDialog () = = DialogResult.OK)//Debug the line that is having problems5 {6Frmmonitoring.path_picture=FBD. SelectedPath;
7}
From the point of view of the code alone, there is no problem, but when you execute to line four, you always do not play the window.
Finally found the problem: because I used the skin, skin code line as follows, cancel the skin after all normal.
1 // Sunisoft.IrisSkin.SkinEngine skin = new Sunisoft.IrisSkin.SkinEngine ((System.ComponentModel.Component) frm); 2 // // Specify Skin file 3 //skins. Titlefont = new System.Drawing.Font ("Microsoft Jas Black", 10F); // Specifies the font for the title bar.
C # Development about Select Path dialog box pop-up doesn't go wrong