hi this is a good example http://www.codeproject.com/cs/miscctrl/csharpgridcontrol.asp regards
joe carbone
Posts
-
table like excel -
PropertyGrid TypeConverteryou can also create your own editor class. 1. create a new class and implement the openfiledialogeditor. override the initialize methode (this methode have 1 parameter e.g. the openfiledialog) now, in the methode you can set your own properties e.g title, filter .... 2. change the editorattribute in the property to your class [Browsable(true), Description("The filename for the destination.")] [EditorAttribute(typeof(MyNamespace.MyFileNameEditor), typeof(System.Drawing.Design.UITypeEditor))] public string FileName { get {return _FileName;} set {_FileName = Path.GetFileName(value);} }
-
PropertyGrid TypeConverterHi D this is the code: [Browsable(true), Description("The filename for destination.")] [EditorAttribute(typeof(System.Windows.Forms.Design.FileNameEditor), typeof(System.Drawing.Design.UITypeEditor))] public string FileName { get {return _FileName;} set {_FileName = Path.GetFileName(value);} }
-
System.Windows.Form equivalent of PeekMessage()Hi Ravi the analog call of PeekMessage is BeginnInvoke.
-
Closing WindowHi Rakesh this is a good message :-). if i can help you in other programming problems send me an email at: joe.carbone@mymail.ch Joe
-
Closing Windowhi rakesh smile, the only way is to find out the window handle. tray this page http://msdn.microsoft.com/vstudio/downloads/101samples/default.aspx you find 101 c# samples in a msi file. this msi file contains a sample to find out all running processes in your system. download the right file, the page contains samples for both .net 1.1 and 2.0
-
Closing WindowHi Rakesh if you set CreateNoWindow = true; you can see the explorer window? if not, is difficult to close this process from code because the process don't have a window handle. the only way is to find out the window handle from the processID and then call the sendmessage function.
-
Editable GridHi try this: (you find a complete collectionbase class that implement IBindingList, .....) http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=0B47DA60-DF5F-4A28-ABF7-6F8EB977FCFD
-
Closing WindowHi Rakesh the process class has a property named Handle. with this property you can use the interop function SendMessage with the parameter WM_CLOSE. example: SendMessage(Handle, WM_CLOSE, 0, 0); or use the Kill Methode of your process class.
-
Closing WindowHi is the opened directory the file explorer? if yes, how you start this process, with ShellExecute or with the .NET Process class?