KrishnaUNISYS's Q&A profile
Visual Studio Emacs mapping scheme - changing Ctrl+u,Ctrl+<space> to also recenter line?
When Edit.EmacsSetMark (Ctrl+Space) is invoked with the Emacs universal argument active (i.e., Ctrl+U), the edit point moves back to its "previous" location. I'd like this new location to be centered, as it is in Emacs. I've tried writing my own function: Sub Blah() DTE.ExecuteCommand("Edit.EmacsUniversalArgument") DTE.ExecuteCommand("Edit.EmacsSetMark") DTE.ExecuteCommand("Edit.EmacsScrollLineCenter") End Sub .. but I can't bind this to Ctrl+U,Ctrl+<space>, as this messes up the whole universal argument support. I suppose I could try writing my own version of Edit.EmacsSetMark (would this override the "built-in" version ) and then call Edit.EmacsScrollLineCenter if th ...Show All
Visual Studio Team System Groups and membership
I have defined some groups on server and project level. I would now like to have an overview of the membership and relations between those different group definitions. Could anyone come up with an SQL query that would give me this overview Thanks. Hey paso, The warehouse does not keep track of groups, unfortunately. Try contacting the TFS-Admin forum for assistance: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=477&SiteID=1 I know that generally we reserve the right to change the database schema, so it's better to go through the APIs to get the information you're looking for. You would go through the IGroupSecurityService interface. You'd retrieve it by doing something like this: ...Show All
Visual C# How to go through a list of increasing variable names.
My problem is that have 20+ controls of my form. Lets call them digitalPanel1, digitalPanel2, .... and so on until 20. they all get their values from a an array stored in a class called mySensor for .... mySensor.iTemps[x]; I cant use the x index because digitalPanel1....20 is not an array. there must be another way to do this instead of typing digitalPanel1 =.... digitalPanel2 =.. . ..................20 Anyone hi. its better 2 use foreach loop as foreach (Control c in this .Controls) { } in that loop u check the controls type with c.GetType() method n then do ur work. ...Show All
Windows Forms Using Progress bar and Status lebel with Web Browser control
What code do I use, and where do I put it to make the Progress bar and status label in the status bar work according to how the website is loading in the web browser You know, like the progress bar will show the progress of the webpage loading and the status label will state things like READY, Loading (site), Done, Stoped, etc.... Thanks! Landon Well, I can help you with the progress bar part. Place a progress bar named pbrPageLoad somewhere on your form. Now go into the browser progresschanged event and copy this code: double curprogress = (double)e.CurrentProgress; double maxprogress = (double)e.MaximumProgress; double progress = (curprogress / maxprogress)*100; pbrPageLoad.Value = (int)progress; then go ...Show All
Visual Studio during opening VS2005 VS creates directories such as system.pdb
during opening VS2005 VS creates directories such as system.pdb, and also creates pingme.txt. Solution contains only simple C# application. How can I change folder location for them And second moment: in *.csproj I've changed some properties: Code: <PropertyGroup> <top_srcdir>..</top_srcdir> <OutputPath>$(top_srcdir)\out\$(Platform)\$(Configuration)</OutputPath> <BaseIntermediateOutputPath>$(top_srcdir)\tmp\$(Platform)\$(Configuration)\$(M SBuildProjectName)\</BaseIntermediateOutputPath> <IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath> </PropertyGroup> As you can see I've changed path to obj directory(BaseIntermediateO ...Show All
Smart Device Development Custom Wait Cursor
How do you replace the (IDC_WAIT) system wait cursor with a custom wait cursor of my own graphic design on the Compact Framework 2.0 and Windows Mobile 5 There was a way to do it in prior versions, but, so far, I haven't found a way to do it for the current versions. Regards, Wil There is no supported way to do exactly what you want here. However, you could place a control on top of your form that looked like a wait cursor and it would probably work well enough in most scenarios. David Wrighton .NET Compact Framework ...Show All
Visual Studio 2008 (Pre-release) Setting inner exception for FaultException
It seems that it is recommended that a WCF application throw a FaultException. My question is that if I catch an Exception how do I construct a FaultException so that the inner exception is populated Basically I have something like: catch(Exception ex) { throw new FaultException . . . . } Sorry to continue this thread but there is something that I still don't understand. What I thought this document was saying is that you should not let exceptions "leak" through the service boundary. If the exception raised is a null reference exception it would be a coding error and I would like to know the detail and hence the inner exception. I don't know which class or method generated the exception b ...Show All
Visual Studio Execute iexplore.exe under a program
Hi, I need to excute iexplore.exe under a program. For this I temptted to use "Exec" class. It's a C# project. I used following code: Exec execObj = new Exec(); execObj.ToolPath = "C:\\Program Files\\Internet Explorer"; execObj.Command = "iexplore.exe"; execObj.Execute(); But it didn't work. I got exception as it's not initialized. Can any one ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Physic Based Games?
Would I be able to create Physics Based Games on XNA For example a game where you can move around objects and also, could I make my own map on Marble Blast Ultra I don't believe Torque X actually COMES with GSE. I also don't know if the Torque Game Builder is going to support Torque X. I believe that Torque X is a standalone product that is NOT the Torque engine as most know it. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Porting the engine (written in C++) from DirectX 8.1. What are my options ?
I`ve got a 3D engine used in my previous and upcoming online/budget PC games that I wrote by myself from scratch during last several years. However, I would like to port it to XNA since that would give me another platform (XBOX360), since that`s what most of distributors would like to have (multiplatform title) these days. Plus, all games/demos that I would create would then run on both platforms, which is a fantastic feature in itself, and a great negotiating factor with distributors/publishers. Will XNA support ASM shaders natively, or will I have to rewrite those in HLSL I`ve got a pretty huge set of ASM shaders handling lighting,animation,decompression and lots of other stuff. But, from what I`ve read so far, it seems I`m goin ...Show All
SQL Server SQLDMO restore error
I am using SQLDMO.restore object to restore database from backup file (in classic ASP 3.0 Web application). I am getting the following error:- Error Type: Microsoft SQL-DMO (ODBC SQLState: 42000) (0x800A072A) [Microsoft][ODBC SQL Server Driver][SQL Server]The file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\WEBGROUP_0.mdf' cannot be overwritten. It is being used by database 'WEBGROUP'. [Microsoft][ODBC SQL Server Driver][SQL Server]File 'WEBGROUP' cannot be restored to 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\WEBGROUP_0.mdf'. Use WITH MOVE to identify a valid location for the file. [Microsoft][ODBC SQL Server Driver][SQL Server]The file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\WEBGROUP_0_l ...Show All
Windows Live Developer Forums Problem Photo Upload Dialog: "THis folder has a new image format. The COnverter is downloading."
Does anyone have any insight as to what is causing the photo uploader not to recognize any photos in the My Pictures folder It shows "No photos in this folder" (when there are) and when you change to another folder containing photos it gives a dialog box " There are images with a new format in this folder. The converter is downloading". Well, there are the typical jpg photos in the folder, and when the dialog box goes away by itself, it still shows "no photos in folder". I've tried the whole reinstallation procedures, clearing cache, removing objects, etc. Every reinstall has the same problem. Any insights please -David It is unbelievable that this sort of error appe ...Show All
Visual Studio Team System TFS - Undo Checkout in an environment where multiple checkouts are disabled?
We have configured our TFS server to disable multiple checkouts. Today, a developer left the office early with a file checked out; a coworker asked me (the TFS admin) to undo the checkout. This was more challenging than I anticipated. Here's what happened (names changed to protect the guilty): C:\Program Files\Microsoft Visual Studio 8\VC>tf lock /lock:none /workspace:workspace;username $/code/foo.cs / s:http://server:8080 TF10152: The item $/code/foo.cs must remain locked because its file type prevents multiple check-outs. OK, so I temporarily enable multiple check-outs & run it again: C:\Program Files\Microsoft Visual Studio 8\VC>tf lock /lock:none /workspace:workspace;username $/code/foo.cs / s:http://s ...Show All
Windows Forms webBrowser question, content from string?
Hello. I am using VS 2005 beta 2 and am building a C# project with a webbrowser control embedded in my Windows.Form. I see that I can use the DocumentText hook to feed HTML from a string to the webbrowser. What I would like to do is feed SVG code to the browser from a string (I have already installed Adobe SVG Viewer, so the browser can render SVG content). Is there a way to tell the browser control that the mime type it is getting is "image/svg+xml" instead of HTML Thanks in advance for any help. From what I see document.mimeType is read only. It would take about 3-5 minutes to write code to write the file to a file and then load it u. I don't believe this would be clumsy and this shoul ...Show All
Visual Studio Team System TFS WorkItem Tracking : Error
Hello all, i am getting the error in TFS WorkItem tracking in the event viewer like this: I am using Single server deployment of TFS. Event Type: Error Event Source: TFS WorkItem Tracking Event Category: None Event ID: 3000 Date: 12/1/2006 Time: 2:48:40 PM User: N/A Computer: <server name> Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 12/1/2006 9:18:40 AM Machine: <server name> Application Domain: /LM/W3SVC/2/Root/WorkItemTracking-5-128094383134804186 Assembly: Microsoft.TeamFoundation.WorkItemTracking.Server.DataServices, ...Show All
