Wilbert's Q&A profile
Visual Studio How to tell if report viewer controls are installed at runtime?
Is there a coded way to find out if a file is installed in the GAC I cannot find a way to access the names of dlls installed. Are they stored in the registry Is there a .net call that returns true if the file is in the cache I need to know if the ReportViewer controls are installed on a machine before I call a report. If not installed then I can run ReportViewer.exe and install them. Rick http://forums.mi ...Show All
Visual Studio Team System One Statement per line
Hi, I need some help in building custom FxCop rule, which checks for only one statement per line is present in the code. for example: int i; float k; Regards Venkatesaperumal This is another source constructs that compiles away when IL is emitted. You'd need to pursue a solution other than FxCop to accomplish this, since we're a binary checker only. ...Show All
.NET Development CreateFolder only shoudl succeed if folder doesnt exist
I was looking for a method in .NET similar to MkDir in VB the io.Directory.CreateDirectory() method succeeds even if the folder that i am trying to create already exists. I am looking for a method that should potentially error out while trying to create a directory if it already exist. any ideas The CreateDirectory method does throw an exception when the directory exists, but then again, u can make it a function and therefor call it ...Show All
Visual Studio Team System Windows SharePoint is not configured as recommended by TFS
Hi, the headline says it all - it comes up, when I start the TSF-Services setup. But the installation doesn't say, what it likes to have exactly done in addition ! Can anybody help Thx, Klaus Hi Klaus Have you installed sharepoint as a farm and not a single installation. That could be the error Christian ...Show All
Windows Forms DrawRectangle doesn't work?
Look at this code: protected override void OnPaint(PaintEventArgs e) { base.OnPaint (e); Rectangle rect = new Rectangle(100,100,300,300); Rectangle rect2 = new Rectangle(99,99,301,301); Pen pen = new Pen( ...Show All
Visual Studio Team System Can VS2005 Express/Standard/Professional Edition integrate with TFS? HOW?
Can VS2005 Express/Standard/Professional Edition integrate with TFS How Can other IDEs like Eclipse use TFS for source control In order to publish a project to a web portal, any other licenses are required SharePoint Or TFS includes everything the web publishing needs With the probable exception of the Express editions, the answer is YES. You can purchase a license to access the TFS. This ena ...Show All
Visual Studio #line directive and debug symbols
Is there a way to match whatever line was input with the #line directive to the debug symbols that are generated in a .pdb file If I generate a big file from several .cpp file, the compilation errors are displayed correctly, the __LINE__ macro are generated correctly but during the debug process I still get redirected to the big file instead of the small files that are used to edit the code. If it is not possible via a compiler option, is there ...Show All
Visual Studio Team System static member variables and static constructor
Hi, Has anyone noticed, that when declaring static members variables, there automatically also appears to be static constructor I noticed it with this piece of code: when there are no static variables, this code does not inform anything. But when I add a static variable to a class, both the variable AND a static ctor is printed to exist->looks like the ctor is created automatically which means that there will always be a static ctor found if ...Show All
Windows Forms DataGridView Problem
Hi All, I recently uninstalled VS2005 BETA 1 and installed VS2005 beta 2. The new beta 2 seems a little more stable, but I ran into the following problems: 1.) I have a base user control "A", which contains a datagridview. This user control is inherited by user control "B". With beta 1 , I can visually add, edit, remove any column in the datagridview using VS2005 IDE designer. With beta 2, I can't no lon ...Show All
Visual Studio Team System Test Project Settings
Hi, Can any one tell how to set a Test project as a dependecy of an another Application.The situation i am in as follows: I have a Windows application and i have added a Test Project to that.The Test project is created automatically when i hit "create unit test " on a function in my application. Now i want to make that Test project as a dependency of my Application.I mean to say that first of all the test method should run an ...Show All
Visual C++ Update on buffer over-run bug in ATL::CPath functions - FDBK26503.
I reported a bug about a buffer over-run and security flaw in some of the ATL::CPath functions, bug FDBK26503. The bug was resolved as by design because the Microsoft developer who reviewed the bug did not do a thorough job of reading the online documentation for GetBuffer() and failed to follow the code path that determines when a reallocation is performed. Here is Microsoft's response to my bug report and my response to the Microsoft resp ...Show All
Windows Forms How to get the correct value for DataGrid.Select(index) after DataView.Sort
I've read a lot of postings, but still don't seem to get this right. Hopefully someone out there can help. This is in C#, using Winforms: I have a datagrid, a combobox, and a textbox all on the same form. I would like the user to be able to use the combobox to 'select' one of the columns in the datagrid and then enter a search value for that column in the textbox. When the user has entered enough text to match a value in the selected co ...Show All
Visual Studio Team System Is there any way to assign two resources or more for a workitem?
Hi there, Is there any way to assign not only one, but two or more people to a WorkItem. In Project i can assign a work to more than one people, but when i try to add a Workitem, it only permits me assign one person. Thanks, Guino. You cannot assign to multiple entries in the Assigned To drop down. However, if you're thinking of something like having a DEV and TEST owner for each work item, you can definitely add a Dev Owner and Test ...Show All
Visual Studio Tools for Office Getting events when the contents of a Word Range is modified.
Hello, I am trying to implement a spell-checker-like service in Word using VSTO2005. My office solution must be able to check a piece of text in a document and to update the checks dynamically as the text is modified. I am planning to use a bookmark or XML tags to specify the text regions that must be validated. My problem is that I do not find any event that would be triggered when the contents of a given range is modified. I ...Show All
Visual Basic AmbientProperties: how to get it in my ActiveX control?
I make ActiveX control on VB.NET. Some "container application" loads it in runtime and interact with my control through certain "connection object". Container application does provide this object as Ambient property. In practice it looks like: Public Class MyControl Inherits System.Windows.Forms.UserControl Private WithEvents m_objConnObject as ContainerApp.ConnObject Pr ...Show All
