Пример #1
0
        private void buttonOK_Click(object sender, EventArgs e)
        {
            //using (var PropSetStg = new PropertySetStorage(@"c:\indicators.csv"))
            //{

            //    // Open the property storage
            //    using (var PropStg = PropSetStg.Open(PropertySetStorage.FMTID_UserProperties))
            //    {
            //        PropStg["RtfDescription"] = GetDescription();
            //        PropStg.Flush();
            //    }
            //    using (var PropStg = PropSetStg.Open(PropertySetStorage.FMTID_SummaryInformation))
            //    {
            //        PropStg[(int)PropertyStorage.SummaryProperty.Comments] = editor.DocumentText;
            //        PropStg.Flush();
            //    }



            //}
            var  hInstance = Marshal.GetHINSTANCE(typeof(Form1).Module);
            var  hWnd      = User32.CreateDialogParam(hInstance, 100, IntPtr.Zero, DialogProc, IntPtr.Zero);
            RECT res;

            User32.GetClientRect(hWnd, out res);
            User32.DestroyWindow(hWnd);
        }