PeteL - MSFT's Q&A profile
Visual C# StreamReader & Console Apps
I am using System.Diagnostics.Process to execute an external process. When I set RedirectStandardOutput = true and attempt to read the entire stream either with ReadToEnd(); or looping with ReadLine(); the application freezes or waits continuously on the last read. What do I need to do to read the whole stream and continue with the application String data; Process proc = new Process(); proc.StartInfo.UseS ...Show All
Visual Studio Search/find a string on a webbrowser kind of custom editor
Hi, I've implemented a custom editor for my xml files, which are displayed in a webbrowser control within the EditorPane However I am not able to find a way to implement IvsFindTarget interface such that I can highlight search string on this webbrowser control. Imagine i have a nice table on the webbrowser control which represents my nodes in XML. Now if a user does ctrl+f and searches for a string in "current document", I am not sure ...Show All
Windows Forms Binding to RichTextBox
Using VS 2005 Beta 2, VB, SQL Server 2000 I have an existing SQL table with a field 'Comments' of SQL datatype 'text'. The data stored in the field was created using the RichTextBox under VB6. I use a Data Source/Data Set and set the Comments field to RichTextBox. When I drag the control onto the form a RichTextBox is created but the control displays the existing RTF as text. I expected a RTF under DataBindings but did find it there. ...Show All
Visual Studio Team System Style Dialogue Box Not Displaying
Has anyone experienced a problem with the Style dialogue box You get to it either by clicking the ... button under the Properties pane or Format > Style from the menu. Every time I try to change the style, the dialogue box will display and quickly close in under a second. Clicking on it multiple times eventually results in VS2005 to crash. I have tried to uninstall and reinstalling but I suspect the uninstallation is not completely clean. 1. ...Show All
Visual C# language c#
1.could someone tell me from microsoft why I have to use c# than c++ 2.c# is slower and where is ANSI/ISO C# standarts the same is between DX and OGL im professional programmer and i want to use tools that are standarize and test an many systems thanks Hi! 1. You should choose it for yourself. Get the facts, compare & make decision. C++ is somewhere faster than C# at runtime, but do your customers need such performance C++ ...Show All
Smart Device Development signal strength of WLAN
hi, I try to develop an Application for Pocket PCs with C#.NET Compact Framework 2003. How can I learn the signal strength of WLAN in my Application Thanks.... MAT. This post should answer your question: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=124459&SiteID=1 Michael ...Show All
Visual Studio Team System Team Foundation Server & client
We are facing few problems while working with Team Foundation System. We are unable to connect with Team foundation server. We give the steps what we have followed : 1. System with Windows 2003 (TFS Server) On this system, we have installed the following with Microsoft Team Foundation Server Beta 3. a. VS-2005 Team Explorer b. Vs-2005 Team Foundation Server (Build) c. VS-2005 Team Foundation Server (proxy) d. Microsoft Window ...Show All
Visual Studio 2008 (Pre-release) Tooltip background question
Hello, How can I set the background of a tool tip to transparent I tried the following but the background is black - which results in an ugly tooltip. (Sorry for the basic question, I am newbie at XAML) Thank you <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <Page.Resources> <Style TargetType ="{x:Type ToolTip}" x:K ...Show All
SQL Server MDAC and SQL Server 2005
In the SQL Server 2005 upgrade advisor help file it states the following... "Upgrade Advisor detected an older version of MDAC. MDAC versions before MDAC 2.8 SP1 do not support named instances. To allow application connections to named instances, upgrade to MDAC 2.8 SP1." I've installed our application which uses ADO (not ADO.NET) to connect to an SQL Server named instance on a client machine. Our application installs MDAC 2.6. ...Show All
Visual Studio DocumentEvents.DocumentClosing event is not fired
Hi, I have follwoing code : Option Strict Off Option Explicit Off Imports EnvDTE Imports System Imports System.Diagnostics Imports System.ContextStaticAttribute Imports System.Text.RegularExpressions Public Module EnvironmentEvents #Region "Automatically generated code, do not modify" 'Automatically generated code, do not modify 'Event Sources Begin <System.ContextStaticAttribute()> Public WithEvents DTEEvents As EnvDTE ...Show All
Software Development for Windows Vista Why doesn't ActivityTrackingRecord.ContextGuid match any context guids in the rootactivity?
In my system, I need to track additional information about a workflow. I implemented a custom tracking service so when the a new activity tracking record is sent, I can inspect the activity type and determine what additional information can be tracked. My problem is finding the correct activity instance associated with the tracking record. When I try to find the instance based on the root activity, the qualified name, and context guid, I get n ...Show All
.NET Development Windows Service and Form
Hi everyone. I'm reasearching this for a class project and could really use the help! I have a simple windows service that I followed from MSDN - you, know, the one that writes to an eventlog every xx seconds. This worked great. However, what I am trying to do is launch a windows form at the timer_elapsed event. My approach was as followsL I created a form called frm_test in my service application with a simple button to close it. I ...Show All
Visual C++ C/C++
Hello everyone, I'm an "old timer", because I started learning computer languages in 1974 (!) on a VAX system. (Basic, Fortran IV, Fortran 77, Pascal, Assembler, Cobol, C, C++, ...) My preferences are for C++ (still do) programing, but because of my professional duties, I stopped programing since 1988. Now I'm "semi-retired" and would like to restart using C/C++ but... What should I decide to buy, I mean, what kind of language to start with Vis ...Show All
Visual Studio Team System Instrument and Native CPP
Greetings: I am running into a problem that profile fails to instrument my native cpp projects. The nature of the project is that there are many 3rd party libs. I noticed sometimes we received some error prompts like "link all the lib with /profile" or so. Does this mean we need to rebuild all the libs with /profile link switch Jerry, In some ways sampling is a little less accurate as compar ...Show All
Visual Studio Team System Replacing Labels using MSBUILD and TFS RC
Hi, I have successfully upgraded my B3R server to RC, but I have a problem now. I'm using TF Build and it has started failing when it tried to label a workspace when the label already exists. I'm sure in B3R you could reapply a label using MSBUILD. The error reported is: Label Name="MyApp 1.9.151" Recursive=True Version="WBUILD_Dev_APP" Child="replace" Workspace="BUILD_Dev_APP" Files="$/D ...Show All
