xinz's Q&A profile
Visual Studio bracket matching highlighting
Hi Just had VC 2005 pro installed and I cant see any bracket matching highlighting as the standard install gives me. Had a look around in the docs and have checked the right box is ticked ie Options/Text Editor/ Automatic delimiter highlighting Is on, I beleive this is the right box well the docs mention bracket highlighting. Anyway does jack, kind of basic functionality I guess. Anyone got a fix as I am trying to go through someelses code and I really need it..... Cheers Frosty Hello- You say you have VC 2005 installed, is this VS 2005 pro or the Visual C++ express Sku As OmegaMan mentioned, we have seen some brace matching issues with certain add ins installed, are you using VSTO or any other add-i ...Show All
Software Development for Windows Vista Screen Captures?
Last I checked with the earlier Bits screen capturing when the ID selector is open was prohibited I'm on XP Pro with the latest Bits and have no problem getting screen captures of the ID selector!! Is this as designed -fs http://www.FrancisShanahan.com Sorry for the late reply. Yes, this is as designed. As a matter of fact, I can't recall when it wasn't working. I've always just used the printscreen ability to get my captures of the screen. g Garrett Serack | Program Manager |Federated Identity Team | Microsoft Corporation blog: http://blogs.msdn ...Show All
.NET Development Difference between Console.WriteLine and Console.Out.WriteLine?
Hi, What is the difference between Console.WriteLine and Console.Out.WriteLine in .NET Thanks & Regards, kalai There is no difference. Because writing data to the console is so common MS decided to expose the common TextWriter methods directly off the class. The Out property is available if you need a TextWriter , such as for piping output from another application. Internally the methods simply call the Console.Out method. For cleanless and ease you should prefer the methods exposed directly from the class. Note also that Console probably exposes some overloads or additional methods that make working with Out easier so not all the methods are necessary supported in TextWriter . Michael Taylor ...Show All
Visual Studio Team System Migration of Class Library code to VSTS Test project
We want to migrate the code written in C# (class library project) to VSTS test project. We are using MAUI and ECHO libraries in our code. What could be the best possible ways available to migrate The execution of current code takes some command line parameters( like application.exe assebly name / class name / method name / variations). The Test project does not allow input parameters. Have anyone migrated similar projects to VSTS If yes have you faced any problems Please reply at the earliest. Thanks in advance There are a couple of possibilities: 1) continue using your command line program. You can wrap your command line using a generic test, which will enable you to kick off the command line process and pull ...Show All
Windows Forms Dual/Multi monitor – Window message
Hi, I have a scenario where there are dual/multi monitor systems. I have written a nag (like a message box) application, which prompts the users with a message. Now, in a dual monitor scenario this message gets always prompted in the primary monitor of the user. Is there a way to identify that the user is on the second monitor and prompt the message in the second or the user active screen. It would even help if we can prompt the message based on the mouse cursor position – in a dual monitor scenario. This is very urgent, kindly help. Thanks in advance, Dan One of the easiest ways would be to interrogate the Screen class to learn on what screen a given coordinate set, control, or handle is on. ...Show All
Visual Studio Team System Publishing to TFS from Project 2003 resets leveling
I am using the MSF for Agile Software Development template, and am working with the "Development Project Plan.mpp" file to keep the work items in synch. In order to set task start and end times, I like to set task priorities, and then use the "Level Resources" feature with leveling order "Priority,Standard". I am doing Manual leveling, not automatic. The problem is that when I do that, and then click on the Publish button to push the changes back to Team Foundation Server, the task start times will get changed. This is particularly a problem if you have task durations that are less than one day. Why does the act of publishing work item changes to TFS change any of the attributes Shouldn't it just be a one-way ...Show All
Windows Live Developer Forums Dynamic TileSource not showing up in 3D
Hi all, I'm using sharpmap to render some shapefiles as dynamic tile sources, and I've run into an issue with 3D mode. The same code seems to work flawlessly in 2D mode, so I'm kind of stumped. Here's the nefarious javascript: function AddHazardLayer(layername, zorder) { try { var bounds = [new VELatLongRectangle(new VELatLong(42,-127),new VELatLong(29,-108))]; var tileSourceSpec = new VETileSourceSpecification(); tileSourceSpec.ID = layername; tileSourceSpec.TileSource = GetTilePath3D() + "&LAYER=" + layername + "&QUADKEY=%4"; alert(tileSourceSpec.TileSource); tileSourceSpec.NumServers = 1; tileSourceSpec.MinZoom = 1; ...Show All
Silverlight (formerly WPF/E) WPF/E VS Templates do not recognize SP1 beta
The installer for the SDK VS Templates returns an error saying that the web application project update must be installed first. The problem is that SP1 beta has superseded that and includes the functionality. Can the template installer please be re-released to detect the SP1 beta Thanks --Oren We're working on an updated template installer. Until then, I've posted a sample file based project that can serve as a template. http://blogs.msdn.com/mharsh/archive/2006/12/05/wpfe-template-for-express-skus-and-vs-2005-sp1.aspx - mike ...Show All
Visual C# a quick question regarding viarable scope
In the scope of a "button click" event, I declared a string variable "result". In a for loop within this event, I tried to access "result' but with a compiling error " use of unssigned local variable". My question is: Why "result" is not visible in the for loop Thanks. Codes: private void btnGo_Click( object sender, EventArgs e) { string result ; Point newPoint = new Point (1, 1); Circle newCircle = new Circle (2, 2, 0.5); Cylinder newCylinder = new Cylinder (3, 3, 0.5, 4); Shape [] newShape = new Shape [3]; newShape[0] = newPoint; newShape[1] = newCircle; newShape[2] = newCylinder; for ( int i = 0; i <= newShape.Length - ...Show All
.NET Development DecimalSeparator
Hi, I got 20 textboxes and i want to change the decimal separator to the one they have in their region settings. This is how i tried it: foreach (Control textbox in this.Controls) { if (textbox is TextBox) { int controlIndex = 0; for (int k = 0; k < 20; k++) { string decimalSeparator = System.Globalization.NumberFormatInfo.CurrentInfo.NumberDecimalSeparator; string input = this._textBox[k].Text; input = input.Replace(".", decimalSeparator); input = input.Replace(",", decimalSeparator); double d; if (double.TryParse(input, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.CurrentCulture, out d)) ...Show All
.NET Development Disable Reduce, minimize, quit toolbars buttons.
I apoligize, I don't know the correct english names: when I make a Form I can select if enable or disable the icon, chenge the text (the default value is Form1), but I would cancel the toolbar and I want manage the three buttons on the top right (Reduce, enlarge and quit) with my buttons. How can I do ...Show All
Visual C# C# components
hello! how to use components which are not part C# tool bar. mean i downloaded XP progress bar from Code project and now i want to include it in my programme. what the way i will use Right-click the toolbar and click "Choose items". It takes a while. Click the Browse button and navigate to the component's DLL. ...Show All
Windows Forms I can't get Timer to work...
I am using a timer in a form to make progress in a progressbar. I want the progressbar to complete in 10 seconds so I sett Maximum to 10000 and Minimum to 0. I init Value to 0 allso. private : System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { this ->smoothProgressBarControl1->Value = 0; this ->myTimer->Interval = 1; this ->myTimer->Enabled = true ; } private : System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) { if ( this ->smoothProgressBarControl1->Value < 10000) { this ->smoothProgressBarControl1->Value++; } else { this ->myTimer->Enabled = false ; } } Now there is 1000 miliseconds on 1 second so there should be 1 ...Show All
Visual C# Best way to confirm Microsoft Office Applications present on System
Hi, What would be the most precise way to confirm the existance of Microsoft Office applications from a running application. For example how can I confirm that Outlook is installed, or Word is inastalled, what would be the 'best practice' method to confirm this or any installation information, to the highest degree of accuracy. Thanks for any ideas. Its just one of those things unfortunately. you could get a list of files which are "Office" related files only using the Directory.GetFiles(), and get files in the program files folder and see if the specific files do exist but then again, it could be that it does exist but not installed! you could do the thing as suggested and you pointed out about launching the process ...Show All
Smart Device Development UDP communication from mobile 5.0 to desktop
Hi , can any one give me details how to configure mobile 5.0 emulator with Virtual Switch driver so that UDP communication is take place. and ActiveSync-over-RNDIS details from where i can download it Since my current configuration is visual studio 2005 and windows mobile 5.0 SDK and Active Sync 4.2 . For this configuration what setting is required. Thanks ...Show All
