<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>microsoft.public.dotnet.languages.csharp Latest Posts</title><link>http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.languages.csharp</link><description>This feed provides the latest posts to the C# newsgroup on news.microsoft.com</description><item><title>Dealing with different types of objects in an ArrayList</title><guid isPermaLink="false" /><description>I have a base class Control and a 2 derived classes Control&lt;T&gt;:Control&lt;br&gt;and ControlEnum:Control.&lt;br&gt;&lt;br&gt;The reason I have Control&lt;T&gt; and ControlEnum is these classes have a&lt;br&gt;field called "value" whose type is unknown until runtime. If it's type&lt;br&gt;is an enum, the enum definition itself isnt known until run time.&lt;br&gt;&lt;br&gt;So at runtime I am basically doing the following:&lt;br&gt;1. get type of value&lt;br&gt;2. if int create Control&lt;int&gt;&lt;br&gt;   if float create Control&lt;float&gt; etc&lt;br&gt;   if enum build "list" of names and values and create ControlEnum&lt;br&gt;(passing names[] values[] to its ctor)&lt;br&gt;&lt;br&gt;I initially had the field "value" defined in the base class, but moved&lt;br&gt;it into the two subclass as I couldnt come up with a way of&lt;br&gt;dynamically creating an enum and passing it as T to Control&lt;T&gt;.&lt;br&gt;&lt;br&gt;Now I have an ArrayList of controls and want to be able to access&lt;br&gt;"value" like so&lt;br&gt;&lt;br&gt;foreach(control c in controls)&lt;br&gt;    tmp = c.Value&lt;br&gt;&lt;br&gt;and here I get stuck not knowing what the type of c.Value is!&lt;br&gt;How do I design the classes to handle this? I am newbie to oops&lt;br&gt;concepts so any advice would be greatly appreciated. Thanks a lot.&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 5 Dec 2008 01:57:07 -0800 (PST)</pubDate><category>C# newsgroup post</category><dc:creator>Klerk &lt;cend2me@gmail.com&gt;</dc:creator></item><item><title>Re: Old version of Reflector doesn't run any more?</title><guid isPermaLink="false" /><description>On Thu, 04 Dec 2008 22:44:27 -0800, rimblock &lt;j.r.randle@googlemail.com&gt;  &lt;br&gt;wrote:&lt;br&gt;&lt;br&gt;&gt; Pete,&lt;br&gt;&gt; I am using the latest version, and i have had no problems with it.&lt;br&gt;&lt;br&gt;Perhaps I wasn't clear.  I'm not having problems with the latest version.   &lt;br&gt;I'm having problems with an earlier version that, for no actual technical  &lt;br&gt;reason, has decided to no longer run.&lt;br&gt;&lt;br&gt;&gt; You could try reinstalling (i dont know how you achieve this with a&lt;br&gt;&gt; standalone program, but you can bet there are some registry settings&lt;br&gt;&gt; somewhere!) and setting your firewall to not allow reflector to&lt;br&gt;&gt; communicate with the net...&lt;br&gt;&lt;br&gt;Unfortunately, all I've got installed right now is the XP firewall, which  &lt;br&gt;is really only half a firewall.  :)&lt;br&gt;&lt;br&gt;Disabling the network might help (believe it or not, I haven't tried that  &lt;br&gt;yet), but it's not exactly a practical work-around, even if it does help.&lt;br&gt;&lt;br&gt;Pete</description><pubDate>Fri, 05 Dec 2008 01:52:57 -0800</pubDate><category>C# newsgroup post</category><dc:creator>"Peter Duniho" &lt;NpOeStPeAdM@nnowslpianmk.com&gt;</dc:creator></item><item><title>Re: about DLLs</title><guid isPermaLink="false" /><description>On Thu, 04 Dec 2008 22:52:15 -0800, venkat &lt;rajesh&gt; wrote:&lt;br&gt;&lt;br&gt;&gt; is it possible to read or edit a DLL in .net frame work?&lt;br&gt;&lt;br&gt;In what way?&lt;br&gt;&lt;br&gt;A DLL is just a file.  You can read and edit it the same way you could any  &lt;br&gt;file.&lt;br&gt;&lt;br&gt;A .NET DLL is managed code.  You can load it from a managed code program,  &lt;br&gt;inspect it using Reflection, and probably even recompile it with  &lt;br&gt;modifications.&lt;br&gt;&lt;br&gt;But I would say that whatever kind of editing you're thinking of, if you  &lt;br&gt;have to ask the question, you may not yet have enough experience to do it  &lt;br&gt;successfully.  Whatever "way" in which you want to read or edit the DLL,  &lt;br&gt;it's probably not going to be simple.&lt;br&gt;&lt;br&gt;Pete</description><pubDate>Fri, 05 Dec 2008 01:48:51 -0800</pubDate><category>C# newsgroup post</category><dc:creator>"Peter Duniho" &lt;NpOeStPeAdM@nnowslpianmk.com&gt;</dc:creator></item><item><title>Re: What's a proper way to organize the packages?</title><guid isPermaLink="false" /><description>On Fri, 5 Dec 2008 09:06:25 +0100&lt;br&gt;"K Viltersten" &lt;tmp1@viltersten.com&gt; wrote:&lt;br&gt;&gt; Now, Resharper tool claims that i should&lt;br&gt;&gt; call each project by its name as follows.&lt;br&gt;&gt; &lt;br&gt;&gt; namespace Project1{ class Project1{ ... } }&lt;br&gt;&gt; namespace Project2{ class Project2{ ... } }&lt;br&gt;&gt; &lt;br&gt;&gt; Is it really recommended? Can i/should i put&lt;br&gt;&gt; the namespaces in a common super namespace?&lt;br&gt;&lt;br&gt;It depends on your project, and what works best for you.  For the root&lt;br&gt;namespace of a project, I usually use something along the lines of:&lt;br&gt;&lt;br&gt;  Company.Solution.Project&lt;br&gt;&lt;br&gt;.... and of course, break it down into any additional namespaces&lt;br&gt;necessary, which depends entirely on the project.  It's probably best&lt;br&gt;to not have more than four levels of namespaces in your application, so&lt;br&gt;Company.Solution.Project as a root namespace gives you enough wiggle&lt;br&gt;room to divide your project up into one level of namespaces, reasonably&lt;br&gt;speaking.  I suggest four levels just because it tends to be easier to&lt;br&gt;remember them that way, at least for me.&lt;br&gt;&lt;br&gt;	--- Mike&lt;br&gt;&lt;br&gt;-- &lt;br&gt;My sigfile ran away and is on hiatus.&lt;br&gt;http://www.trausch.us/&lt;br&gt;</description><pubDate>Fri, 5 Dec 2008 04:35:54 -0500</pubDate><category>C# newsgroup post</category><dc:creator>"Michael B. Trausch" &lt;mike@trausch.us&gt;</dc:creator></item><item><title>Re: get the parameters that came with running the progam</title><guid isPermaLink="false" /><description>Rene schreef:&lt;br&gt;&gt; Hi,&lt;br&gt;&gt; &lt;br&gt;&gt; &lt;br&gt;&gt; I want to start my (not console) application with HelloWorld.exe /test&lt;br&gt;&gt; How can i get/read the /test in my application ?&lt;br&gt;&gt; &lt;br&gt;&gt; Greetings,&lt;br&gt;&gt; Rene&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Everyone thank u&lt;br&gt;Yes it is a form application&lt;br&gt;&lt;br&gt;  string[] args = System.Environment.GetCommandLineArgs();&lt;br&gt;&lt;br&gt;did the trick&lt;br&gt;&lt;br&gt;Greetings Rene</description><pubDate>Fri, 05 Dec 2008 09:31:44 +0100</pubDate><category>C# newsgroup post</category><dc:creator>Rene &lt;Rene@nospam.nospam&gt;</dc:creator></item><item><title>Re: .NET version for extension methods?</title><guid isPermaLink="false" /><description>In article &lt;op.uloanwfa8jd0ej@petes-computer.local&gt;, &lt;br&gt;  Peter Duniho &lt;NpOeStPeAdM@nnowslpianmk.com&gt; wrote:&lt;br&gt;&lt;br&gt;&gt; Family Tree Mike  &lt;FTM@thisoldhouse.com&gt; wrote:&lt;br&gt;&gt; &lt;br&gt;&gt; &gt; That was what I thought too, but got the following when targeting .Net  &lt;br&gt;&gt; &gt; 2.0 or 3.0:&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt; Error 1 Cannot define a new extension method because the compiler  &lt;br&gt;&gt; &gt; required type 'System.Runtime.CompilerServices.ExtensionAttribute'  &lt;br&gt;&gt; &gt; cannot be found. Are you missing a reference to System.Core.dll?  &lt;br&gt;-snip- &lt;br&gt;&gt; Ah.  Well, there you go.  I guess C# adds an "Extension" attribute to the  &lt;br&gt;&gt; code, which being an actual class has to actually exist.&lt;br&gt;&lt;br&gt;&gt; I suppose you could define your own version of the attribute and reference  &lt;br&gt;&gt; that instead, but then you might run into trouble trying to run on .NET  &lt;br&gt;&gt; 3.5 (assuming it works at all...I'm not actually sure it would...while it  &lt;br&gt;&gt; seems theoretically possible, I don't care enough to try it :) ).&lt;br&gt;&lt;br&gt;&lt;http://www.danielmoth.com/Blog/2007/05/using-extension-methods-in-fx-20.&lt;br&gt;html&gt;.&lt;br&gt;&lt;br&gt;&lt;br&gt;It works, I've tried it.&lt;br&gt;&lt;br&gt;(In my particular case I was trying to do it in VB, where I ran into a&lt;br&gt;different problem, namely that you can't add extensions to the base&lt;br&gt;Object class.  So I'm left with ugliness).&lt;br&gt;&lt;br&gt;-- &lt;br&gt;J.B. Moreno</description><pubDate>Thu, 04 Dec 2008 23:19:18 -0900</pubDate><category>C# newsgroup post</category><dc:creator>"J.B. Moreno" &lt;planB@newsreaders.com&gt;</dc:creator></item><item><title>RE: Retrieve time of remote system</title><guid isPermaLink="false" /><description>Hello, &lt;br&gt;&lt;br&gt;And if you want to use PInvoke to call the native net API, you can use the &lt;br&gt;NetRemoteTOD function. You can find the NetRemoteTOD document here,&lt;br&gt;http://msdn.microsoft.com/en-us/library/aa370612(VS.85).aspx&lt;br&gt;&lt;br&gt;Please let us to know if you have any future questions or concerns on this. &lt;br&gt;Have a good day!&lt;br&gt; &lt;br&gt;Best regards,&lt;br&gt;Ji Zhou (v-jzho@online.microsoft.com, remove 'online.')&lt;br&gt;Microsoft Online Community Support&lt;br&gt;&lt;br&gt;Delighting our customers is our #1 priority. We welcome your comments and &lt;br&gt;suggestions about how we can improve the support we provide to you. Please &lt;br&gt;feel free to let my manager know what you think of the level of service &lt;br&gt;provided. You can send feedback directly to my manager at: &lt;br&gt;msdnmg@microsoft.com.&lt;br&gt;&lt;br&gt;==================================================&lt;br&gt;Get notification to my posts through email? Please refer to &lt;br&gt;http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.&lt;br&gt;&lt;br&gt;Note: The MSDN Managed Newsgroup support offering is for non-urgent issues &lt;br&gt;where an initial response from the community or a Microsoft Support &lt;br&gt;Engineer within 1 business day is acceptable. Please note that each follow &lt;br&gt;up response may take approximately 2 business days as the support &lt;br&gt;professional working with you may need further investigation to reach the &lt;br&gt;most efficient resolution. The offering is not appropriate for situations &lt;br&gt;that require urgent, real-time or phone-based interactions or complex &lt;br&gt;project analysis and dump analysis issues. Issues of this nature are best &lt;br&gt;handled working with a dedicated Microsoft Support Engineer by contacting &lt;br&gt;Microsoft Customer Support Services (CSS) at &lt;br&gt;http://support.microsoft.com/select/default.aspx?target=assistance&amp;ln=en-us.&lt;br&gt;==================================================&lt;br&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;br&gt;</description><pubDate>Fri, 05 Dec 2008 08:11:56 GMT</pubDate><category>C# newsgroup post</category><dc:creator>v-jzho@online.microsoft.com ("\"Ji Zhou [MSFT]\"")</dc:creator></item><item><title>What's a proper way to organize the packages?</title><guid isPermaLink="false" /><description>I have a solution called Solution and in it,&lt;br&gt;two projects named Project1 and Project2.&lt;br&gt;&lt;br&gt;I've organized the packages in a common&lt;br&gt;namespace ComNamSpc. I.e., i have this,&lt;br&gt;in each of my source code files.&lt;br&gt;&lt;br&gt;namespace ComNamSpc{ class Project1{ ... } }&lt;br&gt;namespace ComNamSpc{ class Project2{ ... } }&lt;br&gt;&lt;br&gt;Now, Resharper tool claims that i should&lt;br&gt;call each project by its name as follows.&lt;br&gt;&lt;br&gt;namespace Project1{ class Project1{ ... } }&lt;br&gt;namespace Project2{ class Project2{ ... } }&lt;br&gt;&lt;br&gt;Is it really recommended? Can i/should i put&lt;br&gt;the namespaces in a common super namespace?&lt;br&gt;&lt;br&gt;--&lt;br&gt;Kind Regards&lt;br&gt;Konrad Viltersten&lt;br&gt;----------------------------------------&lt;br&gt;May all spammers die an agonizing death;&lt;br&gt;have no burial places; their souls be&lt;br&gt;chased by demons in Gehenna from one room&lt;br&gt;to another for all eternity and beyond.&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 5 Dec 2008 09:06:25 +0100</pubDate><category>C# newsgroup post</category><dc:creator>"K Viltersten" &lt;tmp1@viltersten.com&gt;</dc:creator></item><item><title>Console Application</title><guid isPermaLink="false" /><description>Console Application&lt;br&gt;http://interviewdoor.com/questions%2Dfaqs/viewforum.php?f=39</description><pubDate>Thu, 4 Dec 2008 23:51:42 -0800 (PST)</pubDate><category>C# newsgroup post</category><dc:creator>reema &lt;geninuesolutions604@gmail.com&gt;</dc:creator></item><item><title>Windows Services</title><guid isPermaLink="false" /><description>Windows Services&lt;br&gt;http://interviewdoor.com/questions%2Dfaqs/viewforum.php?f=37</description><pubDate>Thu, 4 Dec 2008 23:40:41 -0800 (PST)</pubDate><category>C# newsgroup post</category><dc:creator>reema &lt;geninuesolutions604@gmail.com&gt;</dc:creator></item><item><title>Windows Services</title><guid isPermaLink="false" /><description>Windows Services&lt;br&gt;http://interviewdoor.com/questions%2Dfaqs/viewforum.php?f=37</description><pubDate>Thu, 4 Dec 2008 23:39:55 -0800 (PST)</pubDate><category>C# newsgroup post</category><dc:creator>reema &lt;geninuesolutions604@gmail.com&gt;</dc:creator></item><item><title>Re: Weird ClickOnce error</title><guid isPermaLink="false" /><description>When you set the target to x86, then your application runs as a 32-bit &lt;br&gt;application on the 64-bit machine.&lt;br&gt;&lt;br&gt;When you do the build, do you have it set to "any cpu", or are you changing &lt;br&gt;it to 32-bit? Try targeting x86 in the properties, but building for "any &lt;br&gt;cpu", and see if that helps. My guess is that you are building specifically &lt;br&gt;for x86, and it is trying to install the x86 version of the .Net Framework.&lt;br&gt;&lt;br&gt;As for why it works on one and not the other, maybe one already has the &lt;br&gt;framework installed on it.&lt;br&gt;&lt;br&gt;RobinS.&lt;br&gt;GoldMail.com&lt;br&gt;&lt;br&gt;&lt;br&gt;"musosdev" &lt;musoswire@community.nospam&gt; wrote in message &lt;br&gt;news:6B195724-D407-4914-BE0F-EAD9357AD317@microsoft.com...&lt;br&gt;&gt; Hi&lt;br&gt;&gt;&lt;br&gt;&gt; I've just been playing around with ClickOnce in Visual Studio 2008&lt;br&gt;&gt; (Publish..). It seems to work however I'm getting some odd behaviour.&lt;br&gt;&gt;&lt;br&gt;&gt; My project has been developed on a 64bit platform, but has always been&lt;br&gt;&gt; targetted for x86. When I've come to "deploy" using ClickOnce, it works &lt;br&gt;&gt; fine&lt;br&gt;&gt; on my 64-bit XP machine (same box as development, different partition), &lt;br&gt;&gt; but&lt;br&gt;&gt; on another machine (also 64bit) I get the following error during the&lt;br&gt;&gt; prerequisites check...&lt;br&gt;&gt;&lt;br&gt;&gt; "This version of the .NET Framework 2.0 (x86) is not supported on a 64-bit&lt;br&gt;&gt; operating system. Contact your software vendor"&lt;br&gt;&gt;&lt;br&gt;&gt; I don't understand how it works on one machinem, but not another, both&lt;br&gt;&gt; 64-bit, and both from the same deployment package on the same network &lt;br&gt;&gt; share.&lt;br&gt;&gt;&lt;br&gt;&gt; Any ideas?! Thanks &lt;br&gt;</description><pubDate>Thu, 4 Dec 2008 23:28:45 -0800</pubDate><category>C# newsgroup post</category><dc:creator>"RobinDotNet" &lt;robins@DontSpamMe.com&gt;</dc:creator></item><item><title>Check Visibility of Menu Items</title><guid isPermaLink="false" /><description>Why don't you check the ToolStripMenuItem.Available property. This worked for me. I think this is similar to Visible property</description><pubDate>Thu, 04 Dec 2008 23:25:50 -0800</pubDate><category>C# newsgroup post</category><dc:creator>Manoj Gamage</dc:creator></item><item><title>Re: About Garbage Collection</title><guid isPermaLink="false" /><description>On Dec 5, 6:54=A0am, venkat rajesh wrote:&lt;br&gt;&gt; is Garbage Collection a Process or a thread ?&lt;br&gt;&lt;br&gt;Neither, really. Garbage collection can happen on any thread which is&lt;br&gt;allocating memory - if it notices that it can't allocate what it needs&lt;br&gt;to, it collects the garbage, usually suspending other threads to do so&lt;br&gt;(modulo concurrent GC).&lt;br&gt;&lt;br&gt;There is, however, a finalizer thread, which runs finalizers of&lt;br&gt;objects which aren't referenced but haven't been collected yet.&lt;br&gt;&lt;br&gt;Jon</description><pubDate>Thu, 4 Dec 2008 23:13:33 -0800 (PST)</pubDate><category>C# newsgroup post</category><dc:creator>"Jon Skeet [C# MVP]" &lt;skeet@pobox.com&gt;</dc:creator></item><item><title>Re: Windows Application: Focus MDI Forms by right click</title><guid isPermaLink="false" /><description>here's a somewhat better version, checking first if clicked form is&lt;br&gt;already active.&lt;br&gt;&lt;br&gt;simply instanciate below class somewhere in or after mdiparent_load&lt;br&gt;new MdiRightClickActivate(mdiparent);&lt;br&gt;&lt;br&gt;******&lt;br&gt;using System;&lt;br&gt;using System.Collections.Generic;&lt;br&gt;using System.Drawing;&lt;br&gt;using System.Runtime.InteropServices;&lt;br&gt;using System.Text;&lt;br&gt;using System.Windows.Forms;&lt;br&gt;&lt;br&gt;    public class MdiRightClickActivate : IMessageFilter&lt;br&gt;    {&lt;br&gt;        Form m_mdiParent;&lt;br&gt;        MdiClient m_mdiClient;&lt;br&gt;        Dictionary&lt;int, Form&gt; m_formList;&lt;br&gt;&lt;br&gt;        const long GW_CHILD = 5;&lt;br&gt;        const long GW_HWNDNEXT = 2;&lt;br&gt;        const long GW_HWNDPREV = 3;&lt;br&gt;&lt;br&gt;        [DllImport("user32")]&lt;br&gt;        static extern int GetWindow(int hWnd, long wCmd);&lt;br&gt;&lt;br&gt;        public MdiRightClickActivate(Form mdiParent)&lt;br&gt;        {&lt;br&gt;            m_mdiParent = mdiParent;&lt;br&gt;            GetMdiClient();&lt;br&gt;            Application.AddMessageFilter(this);&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        Dictionary&lt;int, Form&gt; GetZOrder()&lt;br&gt;        {&lt;br&gt;            Dictionary&lt;int, Form&gt; zorder = new Dictionary&lt;int, Form&gt;&lt;br&gt;();&lt;br&gt;            BuildFormList();&lt;br&gt;&lt;br&gt;            int nextHwnd = GetWindow((int)m_mdiClient.Handle,&lt;br&gt;GW_CHILD);&lt;br&gt;            int z = 0;&lt;br&gt;            while (nextHwnd &gt; 0)&lt;br&gt;            {&lt;br&gt;                if (m_formList.ContainsKey(nextHwnd))&lt;br&gt;                {&lt;br&gt;                    zorder.Add(z, m_formList[nextHwnd]);&lt;br&gt;                    z++;&lt;br&gt;                }&lt;br&gt;                nextHwnd = GetWindow(nextHwnd, GW_HWNDNEXT);&lt;br&gt;            }&lt;br&gt;&lt;br&gt;            return zorder;&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        public bool PreFilterMessage(ref Message m)&lt;br&gt;        {&lt;br&gt;            if (m.Msg == 516)&lt;br&gt;                ActivateCursorForm(Cursor.Position);&lt;br&gt;            return false;&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        void ActivateCursorForm(Point onLocation)&lt;br&gt;        {&lt;br&gt;            Point clientCursorPoint = m_mdiClient.PointToClient&lt;br&gt;(onLocation);&lt;br&gt;&lt;br&gt;            Form activeForm = (Form) m_mdiParent.ActiveControl;&lt;br&gt;            if (PointIsInForm(activeForm, clientCursorPoint))&lt;br&gt;                return;&lt;br&gt;&lt;br&gt;            foreach (Form form in GetZOrder().Values)&lt;br&gt;            {&lt;br&gt;                if (PointIsInForm(form, clientCursorPoint))&lt;br&gt;                {&lt;br&gt;                    form.Activate();&lt;br&gt;                    break;&lt;br&gt;                }&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        bool PointIsInForm(Form form, Point point)&lt;br&gt;        {&lt;br&gt;            return point.X &gt;= form.Location.X&lt;br&gt;                &amp;&amp; point.X &lt;= form.Location.X + form.Width&lt;br&gt;                &amp;&amp; point.Y &gt;= form.Location.Y&lt;br&gt;                &amp;&amp; point.Y &lt;= form.Location.Y + form.Height;&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        void GetMdiClient()&lt;br&gt;        {&lt;br&gt;            m_mdiClient = null;&lt;br&gt;&lt;br&gt;            foreach (Control control in m_mdiParent.Controls)&lt;br&gt;            {&lt;br&gt;                if (control is MdiClient)&lt;br&gt;                {&lt;br&gt;                    m_mdiClient = (MdiClient)control;&lt;br&gt;                    break;&lt;br&gt;                }&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        void BuildFormList()&lt;br&gt;        {&lt;br&gt;            m_formList = new Dictionary&lt;int, Form&gt;();&lt;br&gt;            foreach (Form form in m_mdiParent.MdiChildren)&lt;br&gt;                m_formList.Add((int)form.Handle, form);&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;*****</description><pubDate>Thu, 4 Dec 2008 23:07:02 -0800 (PST)</pubDate><category>C# newsgroup post</category><dc:creator>Ty &lt;tylershome@gmail.com&gt;</dc:creator></item><item><title>About Garbage Collection</title><guid isPermaLink="false" /><description>is Garbage Collection a Process or a thread ?</description><pubDate>Thu, 04 Dec 2008 22:54:33 -0800</pubDate><category>C# newsgroup post</category><dc:creator>venkat rajesh</dc:creator></item><item><title>about DLLs</title><guid isPermaLink="false" /><description>is it possible to read or edit a DLL in .net frame work?</description><pubDate>Thu, 04 Dec 2008 22:52:15 -0800</pubDate><category>C# newsgroup post</category><dc:creator>venkat rajesh</dc:creator></item><item><title>Re: Old version of Reflector doesn't run any more?</title><guid isPermaLink="false" /><description>Pete,&lt;br&gt;I am using the latest version, and i have had no problems with it.&lt;br&gt;You could try reinstalling (i dont know how you achieve this with a&lt;br&gt;standalone program, but you can bet there are some registry settings&lt;br&gt;somewhere!) and setting your firewall to not allow reflector to&lt;br&gt;communicate with the net...&lt;br&gt;&lt;br&gt;HTH,&lt;br&gt;James.&lt;br&gt;&lt;br&gt;On 5 Dec, 00:15, "Peter Duniho" &lt;NpOeStPe...@nnowslpianmk.com&gt; wrote:&lt;br&gt;&gt; For the past several months, I have noticed that the version of Reflector=&lt;br&gt; =A0&lt;br&gt;&gt; I've been using, downloaded from Roeder's original site, has been =A0&lt;br&gt;&gt; prompting me to update itself. =A0Being of the general opinion that one =&lt;br&gt;=A0&lt;br&gt;&gt; should not update to a new version if the current version is working fine=&lt;br&gt;, =A0&lt;br&gt;&gt; I have simply continued to use the version of Reflector that's been =A0&lt;br&gt;&gt; working for me all this time.&lt;br&gt;&gt;&lt;br&gt;&gt; But today, when I tried to run it, after I clicked on the "No" button whe=&lt;br&gt;n =A0&lt;br&gt;&gt; it asked me if I wanted to update, it simply quit. =A0It's refusing to ru=&lt;br&gt;n, =A0&lt;br&gt;&gt; just because I haven't updated it!&lt;br&gt;&gt;&lt;br&gt;&gt; Has anyone else run into this? =A0I'm not fundamentally against switching=&lt;br&gt; to =A0&lt;br&gt;&gt; a version downloaded from Red Gate, but it's not clear to me why that =A0&lt;br&gt;&gt; should be necessary. =A0Did Roeder really code a time-bomb into his =A0&lt;br&gt;&gt; program? =A0(How rude!) =A0Anyone know of any work-arounds?&lt;br&gt;&gt;&lt;br&gt;&gt; Thanks,&lt;br&gt;&gt; Pete&lt;br&gt;</description><pubDate>Thu, 4 Dec 2008 22:44:27 -0800 (PST)</pubDate><category>C# newsgroup post</category><dc:creator>rimblock &lt;j.r.randle@googlemail.com&gt;</dc:creator></item><item><title>Re: printDocument class...Form Feed</title><guid isPermaLink="false" /><description>"Bhavin Parekh" &lt;bhavin_v_parekh@hotmail.com&gt; a icrit dans le message de &lt;br&gt;groupe de discussion : OKwUq0pVJHA.3708@TK2MSFTNGP03.phx.gbl...&lt;br&gt;&gt; yes, you are right and you help me to clear my doubts..but still finding &lt;br&gt;&gt; too hard to implement in the code as repeat calls can be made by having &lt;br&gt;&gt; hasmorepages property through only.&lt;br&gt;&gt; for e.g., if i have 10 string line variable, and i want to print on 10 &lt;br&gt;&gt; pages, i will need to remember status for each line if its printed or not.&lt;br&gt;&gt; Also still cant figure out how do i pass the diff data to print page event &lt;br&gt;&gt; everytime. i guess i will need to check status update for each line in &lt;br&gt;&gt; printPage Event.&lt;br&gt;&lt;br&gt;You have to remember status for each line or you can use the proper &lt;br&gt;container : i'd suggest a Queue that you would fill in the BeginPrint event.&lt;br&gt;&lt;br&gt;        Queue&lt;string&gt; lines = new Queue&lt;string&gt;();&lt;br&gt;&lt;br&gt;        private void pd_BeginPrint(object sender, &lt;br&gt;System.Drawing.Printing.PrintEventArgs e)&lt;br&gt;        {&lt;br&gt;            lines.Enqueue("line1");&lt;br&gt;            lines.Enqueue("line2");&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        private void pd_PrintPage(object sender, &lt;br&gt;System.Drawing.Printing.PrintPageEventArgs e)&lt;br&gt;        {&lt;br&gt;            if (lines.Count &gt; 0)&lt;br&gt;            {&lt;br&gt;                string current_line = lines.Dequeue();&lt;br&gt;                e.Graphics.DrawString(current_line, SomeStuffHere...);&lt;br&gt;            }&lt;br&gt;            e.HasMorePages = lines.Count &gt; 0;&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt; &lt;br&gt;</description><pubDate>Fri, 5 Dec 2008 07:44:12 +0100</pubDate><category>C# newsgroup post</category><dc:creator>"Christophe Lephay" &lt;christophe-lephay@wanadoo.fr&gt;</dc:creator></item><item><title>Re: Microsoft Reports w CSharp</title><guid isPermaLink="false" /><description>Its a shot in the dark, but have you tried setting .Filter after you&lt;br&gt;Refresh?&lt;br&gt;&lt;br&gt;HTH,&lt;br&gt;James.&lt;br&gt;&lt;br&gt;On 5 Dec, 01:10, squeezebot &lt;cefran...@gmail.com&gt; wrote:&lt;br&gt;&gt; I have a form with a report viewer and a combo box. I'm trying to get&lt;br&gt;&gt; the report result to "filter" based on the choice in the combo box.&lt;br&gt;&gt;&lt;br&gt;&gt; From reading on using data in dot NET, I saw that you could bind a&lt;br&gt;&gt; control (like the report viewer) to a BindingSource object, while the&lt;br&gt;&gt; object is bound to the dataset.&lt;br&gt;&gt;&lt;br&gt;&gt; Since the BindingSource object has a filter capability, I chose to&lt;br&gt;&gt; change that and refresh the report, but no filtered results, just the&lt;br&gt;&gt; original full set of data.&lt;br&gt;&gt;&lt;br&gt;&gt; I put a datagridview below the report viewer and bound the grid to the&lt;br&gt;&gt; BindingSource object.&lt;br&gt;&gt; When I applied the change from the combo box, the datagridview changed&lt;br&gt;&gt; (as claimed from article I read) and the results filtered as expected.&lt;br&gt;&gt;&lt;br&gt;&gt; Some code:&lt;br&gt;&gt;&lt;br&gt;&gt; rptBindingSource.Filter = "pkID_Discipline = " +&lt;br&gt;&gt; comboBox1.SelectedValue;&lt;br&gt;&gt; rptViewer.RefreshReport();&lt;br&gt;&gt;&lt;br&gt;&gt; The first line causes the datagridview to filter, but not the report.&lt;br&gt;&gt;&lt;br&gt;&gt; Any ideas?&lt;br&gt;</description><pubDate>Thu, 4 Dec 2008 22:40:11 -0800 (PST)</pubDate><category>C# newsgroup post</category><dc:creator>rimblock &lt;j.r.randle@googlemail.com&gt;</dc:creator></item></channel></rss>