Helpful's Q&A profile
Visual Studio Disabled Property Pages button.
I'm developing a project. - I'm developing for VS 2005 - I'm developing in managed code. - I use the interop assemblies. - I do NOT use the MPF project classes. Here's a brief chart of the project's objects, emphasizing on ISpecifyPropertyPages. In case you cannot see the picture... IVsGetCfgProvider is implemented in the class returned by the project's GetProperty(VSHPROPID_BrowseObject) . The same class also implements ISpe ...Show All
SQL Server sql statement from webform with dynamic join, how?
In my application the user can enter form textfields and check checkboxes to dynamically generate the SQL SELECT. Most searched values com from one table but some come from other tables with a 1:n relation. So, if needed INNER JOIN them by writing the FROM statement in a variable, that I use in the query. Like this: " INNER JOIN tCmsElementCustomProdspecArtikelZusatzStoff ON tCmsElementCustomProdspecArtikel.artikel_ID = tCmsElementCustomProdspec ...Show All
.NET Development How can I know the reference count of an object?
To diagnose memory leak problem, it's convenient to know the "reference count" of an object. Is there any API that could let me I know that e.g.: object obj = ... ... int count = GetReferenceCount(obj); if (count > 0) { Debug.WriteLine(...); } When the window stays blank, can you scroll the window or click the menu I can scroll it and click the menu after the progress bar (showing the log file is being ...Show All
Visual Studio Team System Custom Exception causes "Not Authorized to View this page"
Hi, I am having a problem throwing custom exceptions. Whenever my web application throws an unhandled custom exception it does something so that the next time I run the application I get a "You are not authorized to view this page" message. I have tried manipulating the Directory Security in the website property pages and on the physical directoreis themselves with no luck. It seems to work just fine if the exception thrown is a system exc ...Show All
Visual C# Win32 Heaps keeps on Growing
Hi Guys, We've written a Service Application for importing data into our system. It appears that we have a memory leak since the applications grows and grows and grows until it crashes ( OutOfMemoryException ). Using .NET Memory Profiler 2.6 I found that the Win32 heaps seems to be the culprit. Does any one have any Idea what could be causing this issue Hundreds of things could cause this. Most ...Show All
.NET Development reflection and PInvoke methods
Hi, If a MethodInfo object represents a platform invoke method (determined by checking if (0x2000 & myMethodInfo.Attributes) == 0x2000) then is it possible to find the name of the module/dll that contains the unmanaged code that is being invoked and the correct entry point into it by using System.Reflection Thanks in advance, colin Hi! If I remember right - external method name specified in ...Show All
Visual Studio Team System Team System template Summary
I'm looking for a way to completely summarize the templates. Anyone know if there is a way to do this Take a look at the Team System Extensibility Kit, which is available as a part of Visual Studio 2005 SDK (can be downloaded at http://affiliate.vsipmembers.com/affiliate/downloadFiles.aspx ; registration is required) - at least this will give you information on customizing work item types. Thanks, Alex ...Show All
Windows Forms validation in forms
Hi I have made a web form (C# asp.net) and now I'm making the same form for windows. I'm trying to validate the user input. Can I use the same validator gems I used in asp.net (requiredfieldvalidator, comparevalidator etc) in a windows form ...Show All
SQL Server PDC CTP
Will those of us not attending the PDC be able to pick up the latest SQL Server CTP being distributed there And now we have it updated on http://www.microsoft.com/sql/2005/productinfo/ctp.mspx Regards, Boris. ...Show All
Windows Forms How to change the DataGridView's private field dataConnection
There is a known bug in the DataGridView control: "FDBK11802:OnRowValidating ignores DataGridViewCellCancelEventArgs.Cancel". The posted workaround FDBK11802#1 says: "...set the private field dataConnection of the grid to null...". Has anybody an idea how one can do such a thing It violates the OOP principles. I would like to have another workaround, if one exists. ...Show All
Windows Forms Handle changes in screen resolution.
I would like to know how to use Screen.PrimarScreen.Bounds to handle changes in screen resolution from the design time to run time. I found that it could be used in the following link, but i couldn't find any more information as to how to use it. I am a beginner in .net Appreciate your help. http://msdn.microsoft.com/smartclient/community/wffaq/default.aspx#adt56jjf supose you want your screen to be 50% the size of the screen.... p ...Show All
Windows Forms How to disable right click in textbox..
Anyone knows how to disable right -click on a textbox.... Basically i dont want the cut, copy paste menu to pop up when i right click on the textbox... thnks in advance... Just don't let the textbox to process the WM_RBUTTONCLIC ...Show All
.NET Development Setting my controls properties using xmldocument class
can you use the xmldocument class to create a xml document from scratch, or do you first need to use xmlwriter to create the file You can create a XmlDocument from the scratch. Use the Create methods to create XmlNodes and use the Append method to append the XmlNode to you document. Here is a little example: XmlDocument doc = new XmlDocument(); XmlElement myElement = doc.CreateElement( "MyElement" ); XmlAttribute myAttribute ...Show All
Visual Studio 2008 (Pre-release) Extension Methods: Static Electricity?
As Anders pointed out in his Channel9 demo, Extension Methods in C# 3.0 really make Linq possible. After drilling into Extension Methods and wanting to not like them, I must ask: what were the alternatives The example that Ian Griffith's gives of some 3rd party developer quietly including something like: namespace System { public static class Evil { public static vo ...Show All
SQL Server Connecting to SQL 2005 from other machines
The April CTP was working well but both the June and Sept CTP seem to be having problems with connections outside the local machine. It does not seem to matter how the connection is to be established (from code, from SQL managment studio etc) the same error comes up repeatedly. Cannot connect to SEPTCTP. A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: Named Pipes ...Show All
