Thanks,I don't know why I didn't see that property.:) Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
Wish You Were Here-Pink Floyd-1975
I hate it when I find things they have changed. VB used to have a nice event called QueryUnload, that told you why the form was closing (your code, user pressed X, windows shutting down etc.) and allowed to decide what to do. Why does Microsoft insist on doing things? Changing the way it works I dont mind, but removing functionality altogether? Makes me angry sometimes. </rant> -- David Wengier Sonork ID: 100.14177 - Ch00k
You can lookup what the exception is and what threw it to track down the offending code. If you don't have the documentation locally it is available online @ MSDN. James Sonork ID: 100.11138 - Hasaki "Smile your little smile, take some tea with me awhile. And every day we'll turn another page. Behind our glass we'll sit and look at our ever-open book, One brown mouse sitting in a cage." "One Brown Mouse" from Heavy Horses, Jethro Tull 1978
You need to add the control to its parent's Controls collection. In WinForms and ASP.NET this.Controls.Add( filtergrid ); assuming this is the form or page class that the grid will be added to. James Sonork ID: 100.11138 - Hasaki "Smile your little smile, take some tea with me awhile. And every day we'll turn another page. Behind our glass we'll sit and look at our ever-open book, One brown mouse sitting in a cage." "One Brown Mouse" from Heavy Horses, Jethro Tull 1978
Thank you friend :) Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
Wish You Were Here-Pink Floyd-1975
Yes, you should be able to. I assume an ActiveX Document is just a COM object with some standard interfaces implemented. You can use COM interop to expose your C# class as a COM object, however clients will need the .NET framework installed in order to use your "COM" object. James Sonork ID: 100.11138 - Hasaki "Smile your little smile, take some tea with me awhile. And every day we'll turn another page. Behind our glass we'll sit and look at our ever-open book, One brown mouse sitting in a cage." "One Brown Mouse" from Heavy Horses, Jethro Tull 1978
True :) James Sonork ID: 100.11138 - Hasaki "Smile your little smile, take some tea with me awhile. And every day we'll turn another page. Behind our glass we'll sit and look at our ever-open book, One brown mouse sitting in a cage." "One Brown Mouse" from Heavy Horses, Jethro Tull 1978
David Wengier wrote: ROFL... that exists? Thats about my luck these days :-) Nish
Oh, I don't know why she's leaving, or where she's gonna go I guess she's got her reasons but I just don't wanna know 'Cos for 24 years I've been living next door to Alice 24 years just waitin' for a chance To tell her how I feel and maybe get a second glance Now I gotta get used to not living next door to Alice
Yep thats correct, using a subclassed control is easy; instead of saying System.Windows.Forms.DataGrid, you refer to myDataGrid :) Thats all there is to it. James Sonork ID: 100.11138 - Hasaki "Smile your little smile, take some tea with me awhile. And every day we'll turn another page. Behind our glass we'll sit and look at our ever-open book, One brown mouse sitting in a cage." "One Brown Mouse" from Heavy Horses, Jethro Tull 1978
Nemanja Trifunovic wrote: C# was designed to be "easy to use", not to be fast Exactly. In fact most of .NET seems to be like that :-) Nish
Oh, I don't know why she's leaving, or where she's gonna go I guess she's got her reasons but I just don't wanna know 'Cos for 24 years I've been living next door to Alice 24 years just waitin' for a chance To tell her how I feel and maybe get a second glance Now I gotta get used to not living next door to Alice
James T. Johnson wrote: Guid.NewGuid(); Boy. That is sure easy! Nish
Oh, I don't know why she's leaving, or where she's gonna go I guess she's got her reasons but I just don't wanna know 'Cos for 24 years I've been living next door to Alice 24 years just waitin' for a chance To tell her how I feel and maybe get a second glance Now I gotta get used to not living next door to Alice
There's a few ways. 1. Right click your project in the Solution Explorer and click on Properties and in the properties pages you can set the project icon. 2. Edit the ProjectName.csproj file... the ApplicationIcon entry should be about 10 lines down. 3. The /win32icon: command line switch for the C# compiler. Andy Gaskell, MCSD MCDBA
I created a method to generate sql string "where clause", and then append the string to the first part of sql. It works fine. Thanks for both of your help. chris#
Either it is a remarkably small world, or you are not the Chris Masiero that I am thinking... :) -- David Wengier TAC ad gone wrong: "Don't fool yourself, you're a bloody idiot." Sonork ID: 100.14177 - Ch00k