Kiran05's Q&A profile
Visual Studio Team System Is FxCop internals being used in any other products
Hi Michael, First let me say thanks for all the support your providing on this forum. In browsing around the different threads it seems like you elude to the fact that the engine that FxCop uses for its analysis is also used in other ways / places / products. Specifically when you say that many of the exposed methods dont do anything because it could be used to parse abstrace syntax trees from source, but FxCop uses it as a binary interpreter of the IL and many of these constructs dont exist in IL. I also noticed a while back a microsoft research paper titled "Common Compiler Infrastructure" . The paper is v ...Show All
Windows Forms Inner join in a Datagrid
Hi everybody .... First of all I'm sorry for my bad English .. My problem is tha I have 2 datatables in a dataset they are like: Table1: "Employees" with columns :"ID" (long), "Name" (string) ,"Job" (long) Table2: "Jobs" with columns : "ID" (long) , "Job" (string) I made a relationship between the two tables via fields&n ...Show All
Visual Studio Report Designer - how to add ObjectDatasource?
I am trying to add a local report to my ASP.NET 2.0 app. When I create new datasource in VS report designer it always creates SQL Datasource (it doesn't even ask me about the name of the dataset). I am going to use my business objects as a source of data, so it would help to be able to use them when I design the report. I don't need that DataSet1.xsd in my project. I just want to use my own objects. Is there any way to do that in the report designer Is there a way to access the session from this object to retrieve session stored info System.Web.Httphandler.Current is nothing w ...Show All
Visual C# How can I make my user control dragable?
I have a user control look like a panel. I want to make its dragable so that user can move it to other location. How to do this Many many thanks I have earlier asked but got no response so I had to delve into it myself. It can be tricky because it is easy to get into an infinite loop with MouseOver over yourself. I adapted the solution from a book but I can't remember the title of the book now. Basically, it involves noting down the mouse position and setting a flag on MouseDown. Note that MouseMove fires even if the mouse moves outside the object after MouseDown has been fired from that object. A ...Show All
Visual C# C# 2.0 doesn't allow me to use System.Void?
I love generics in 2.0! What a time-saving feature, less code to write! Plus it allows for more code re-use, and thus fewer bugs. I love generics, pat on the back to Anders and the C# team. I ran into a limitation, however, with C# 2 compiler and generics. I wanted to implement a method that would have a generic return type, for instance: TReturn ExecuteSomeDelegate<TReturn>(MyReturnableDelegate<TReturn> serverMethodToExecute) { // pretend there's lots of error catching & handling here... return serverMethodToExecute(); } This is all fine and dandy: // call some s ...Show All
.NET Development Open DataReader associated with this Command
SqlConnection conn = new SqlConnection("Data Source=server;Initial Catalog=db;Persist Security Info=True;User ID=xxx;Password=xxx"); public Form1() { InitializeComponent(); this .conn.Open(); this .GetConn(); //Creates first reader this.GetConn(); //when I try to create second reader it th ...Show All
Software Development for Windows Vista ASP.NET Navigation using the ExternalDataExchange Service.
Hi, I have a scenario where I enter details from an ASP.NET Websit Page, This details are sent into a workflow(State Machine) using the " Default scheduler "service. The flow of data is as follows: ASP.NETPage---->httpHandler----->ExternalDataExchangeService---->Workflow--->Database. for simplicity I have one state "CreateAndRead" (Initial State).This state has two "EventDrivenActivites " 1)Read 2)Create ExternalDataExchangeService is as follows: [ExternalDataExchange] public interface IMyDataExchangeService { event EventHandler<MyObjectCreateEventArgs>MyObjectC ...Show All
Visual Studio Tools for Office VSTO 2005 Bookmark visibility
In my solution I am dynamically creating several Microsoft.Office.Tools.Bookmarks in Word. When the solution brings up Word the bookmarks have been created at the appropriate location and everything functions properly. Unfortunately, some of the bookmarks don't show up visibly in the document. Since the bookmarks are perfectly adjacent I should see something that looks like: [ TEXT I TEXT 2 ] (where the " I " is representing an open and close bookmark bracket). However, I don't see the " I " but the other two bookmarks are shown. Similarly, in a larger document as I scroll down the pages some of ...Show All
.NET Development Howto retrieve Directory Services Object meta data
Hi all, can anyone tell me, whether the second version of DirectoryServices offers a possibility to retrieve meta data from Active Directory like the tool repadmin does I am trying to retrieve the timestamp of an AD machine accounts' attribute (not the WhenChanges property, but only of a single attribute). For example the modified timestamp of the "name" property of a certain computer object in AD (Windows 2003). I know that Repadmin /showobjmeta <DC-Name> "<Distingushed-Machine-Name>" can do this, but I don't get it with c#. kind regards, Chris ...Show All
.NET Development Will AnyCPU cause binaries to run as 64-bit on x64 machine
I used VS2005 professional to compile 18 .Net assemblies using the AnyCPU platform setting in configuration manager. I also have a startup executable that calls into one of the GAC libraries to start/run the program. I compiled both the program and all assemblies on at 32 bit Windows 2000 OS using the "AnyCPU" platform setting On the 64-bit computer running XP-Professional(64)... All assemblies were successfully loaded as 64-bit gac assemlblies using \v2.0 64 bit\bin\gacutil.exe. The startup program is shown running without the "*32 "suffix. The program is running but from "program performance" its behavior appe ...Show All
Windows Forms Install app as admin for ALLUSERS on a single machine, requires .msi be present 1st time nonm-admin users run app.
I have an app that I have been installing using InstallShield Express. I install for ALLUSERS while logged in as administrator. The installer creates the appropriate icons and start menu entries for all users and any subsequent non-admin user can run the app even after the installation file (usually on a CD) is no longer available. The app and all sub-dirs and support files are installed to \Program Files\<my company name>\<my app name>. The app itself creates the appropriate security descriptors for every file it generates thus controlling access to image files it creates. Problem: To "simplify" procurement, my ...Show All
Visual C++ why does Visual Studio2005 crash on only cleaning a solution?
Hello, I have a problem to build one dll project. The ide crashes whenever I try to compile it, in fact it crashes before that, it happens when I only try to clean the project before rebuild it, Here is the picture of the problem: the Visual Studio Just-in-time debugger popped up again with "An unhandled win32 exception occurred in devenv.exe[1728]". here below is found in the output window before the crash: "------ Rebuild All started: Project: profuisdll, Configuration: ANSI Debug RDE Win32 ------ Deleting intermediate and output files for project ’profuisdll’, configuration ’ANSI Debug RDE|Win32’’ I first reported ...Show All
Visual Studio pressing Back-button in Printlayout mode hangs the application
When in Printlayout mode, hitting Back-button will hang the application in LocalProcessing with Drillthrough. I have been looking for ways to disable the Back-button when in Printlayout (preview) mode. However, I couldn't find an appropriate property that would indicate the current display mode. The Back event allows to cancel the Back-button event when needed, but it seems there is no way of knowing the current display mode. Has anyone else had similar experience Are you certain that the app is hanging Is it unresponsive Can you click the stop button on the toolbar EMF re ...Show All
Visual Studio Tools for Office Did not work :-(
Well I have a word.dot file with C# behind, Office 2003 I am calling this file from a local web server, and I am receiving this error message: The customization does not have the required permissions to execute. One of the things that makes Linux less attractive are the tons of additional steps you need to do in order to get something working right, and I guess now Windows/Office is no different. I guess it is time to dump this garbage and to develop using something else. My confidence level in Microsoft was 100% until 2003, 70% in 2004, 20% in 2005, -15% now and keep going down. From a suc ...Show All
Software Development for Windows Vista Install directory of WinFX Feb CTP
After installing the WinFX Feb CTP, I notice there are some changes on disk file scheme: there is no files in Microsoft.NET\Windows anymore, a new folder "WinFX" is created but there are only a few files in it, it seems most files are installed directly into "assembly" folder. Is it true Or there are other location where these files are stored Thanks! Some background information to help understand this change: Reference Assembly: An assembly used at compile or design time. A tool, such as a compiler, retrieves metadata from the reference assembly to determine what public types are available, what memb ...Show All
