David Zuckerman's Q&A profile
Visual Studio Team System How to autofill field value from other field value during transition?
We have a following problem. In our work item type we have two states: Proposed and Active. Also we have two fields: System.AssignedTo and our own Company.VSTS.Common.Developer. During transition from Proposed to Active state every time user changes System.AssignedTo field we need automatically copy its value to Company.VSTS.Common.Developer field. We tried to use COPY rule on Company.VSTS.Common.Developer with field=System.AssignedTo applied to transition (Proposed->Active) and even to Active state. It seems that copying is performed only once during changing State field of the work item. Subsequent changes to System.AssignedTo (before commit) don't propagated to Company.VSTS.Common.Developer field v ...Show All
Visual Studio Express Editions Refresh Calculated TextBoxes on a Form?
I'm not sure if my Subject line properly describes my problem, but here it goes. I have a form with several textboxes that are used to enter data. One of the textboxes is bound to a table field that performs a calculation based on the data entered to other textboxes. For example: Textbox1 - The user enters the value '1' Textbox2 - The user enters the value '2' Textbox3 has the formula: Textbox1 + Textbox2 On my form, when the user enters '1' in the first textbox, then '2' in the second textbox, nothing appears in the third textbox. What code can I use so that when the user either enters data in the second textbox, or gives focus to the third textbox, or whatever, that runs the calculation and gives the result, in this case, '3' ...Show All
Game Technologies: DirectX, XNA, XACT, etc. input handling
i was trying to get some basic input handling done but i get this error Error 1 The type 'Microsoft.Xna.Framework.Input.KeyboardState' has no constructors defined be nice please i am new to the language and xna namespace LearnXNA { /// <summary> /// This is the main type for your game /// </summary> partial class Game1 : Microsoft.Xna.Framework. Game { int posx = 240; int posy = 320; SpriteBatch spriteb; Texture2D spritetex; KeyboardState input; public Game1() { InitializeComponent(); spriteb = new SpriteBatch (graphics.GraphicsDevice); spritetex = Texture2D .FromFile(graphics.GraphicsDevice, "ship.jpg" ); input = ne ...Show All
Visual Studio Tools for Office How To configure application develop by VSTO for exchange server
I have developed an application using VSTO.It is working Fine for the desktop machine.Now I wants it also to work for exchange server. What will be the guide lines that I have to follow We need more information on this question, Exchange is a different application and as such is programmed in different ways but not using VSTO as this is linked to the Office Client side solutions primarily. Here are details on the Exchange 2003 SDK http://www.microsoft.com/downloads/details.aspx FamilyId=463F0649-6274-45EA-B647-E6BE1425C893&displaylang=en Regards ...Show All
.NET Development Setting Form shadow in Visual C# Express
Hello. I am working on an application for a final project, and I want to be able to emulate the form coloring as we design it in Visio. Specifically, I have two problems: 1) The colors in Visio do not have the specific names that C# defaults to. How can I specify the colors in C# in a RGB mixture 2) The visio designer lets you set a form and a shadow, each with their own color, pattern, and transparency. I know I can set the color and transparency for the form in C#. How can I set the form shadown in C#, or am I out of luck Thanks. Mike ...Show All
Visual Basic BoundField DataFormatString - how to format a password?
On an administration page, I have a DetailsView bound to a SQLDataSource, and one of the fields I want to display in edit or insert mode is the password field. Although I could display it in clear text, the field is simply a place for the administrator to enter a new password when requested to do so by the user. I would like to display the field as "******" instead of text until the admin clicks in the field, which should then be cleared ready to type the new password. The admin needs to see their new entry in clear text as they type it, and have it display as asterix characters when it is not the field being edited on that particular webform. MSDN library has plenty to say about formatting dates and numbers, but is there a ...Show All
SQL Server SSRS 2005 Failure sending email: The server rejected the sender address
I have subscription by email problem on the following configuration: Windows XP prof. SQL Server 2005 Enterprise Configured Database Mail with remote SMTP server to send email successfully Configured SSRS to use remote SMTP server Edited the Rsreportserver.config file as following (by the instructions from MSDN) <Configuration> <RSEmailDPConfiguration> <SMTPServer> smtp.broadband.rogers.com </SMTPServer> <SMTPServerPort> 25 </SMTPServerPort> <SMTPAccountName></SMTPAccountName> <SMTPConnectionTimeout></SMTPConnectionTimeout> <SMTPServerPickupDirectory></SMTPServerPickupDirectory> ...Show All
Visual C# Design question: collection of collections
Hello, I need to implement an investment portfolio data structure. I'm thinking that the basic unit is going to be a transaction (ex: buy 10 shares of IBM). Multiple transactions will be combined in a position (ex: buy 10 shares of IBM on September 1st to open the position, and sell 10 shares of IBM on September 30th to close the position). Multiple positions are going to be grouped in an account. Multiple accounts are going to be grouped in a portfolio. The restrictions on positions is that the same account can not hold more than one position of the same side (long/short) in the same instrument at the same time. The way I plan to approach this problem is with a bunch of nested collections. An IAccount will have an ICollection& ...Show All
Visual Basic How to ref. form in VS2005 ?
Hi, In VB6 I can pass the form reference as following to display tip msg on any form which has txtTips.text 1. Call Display_Tip(Me, "Show this message") 2. Sub Display_Tip( f as form, sMsg as string) f!txtTips.text = sMsg End Sub 3. How can I do this in VS2005 Thank you very much for your help. KN that code translated into VB.NET: Me.Display_Tip(Me, "Show this message") private sub Display_Tip(ByVal f as Form, byval sMsg as string) f.txtTips.text = sMsg end sub is this what you are after however you don't need to pass the form to itself, instead just call the form's control: private sub Display_Tip(Byval ...Show All
Smart Device Development Bluetooth problem
Can someone please help me find vb code for turning on the bluetooth of a WM5.0 PDA from the application I am writing thanks DD ...Show All
Visual Studio 2008 (Pre-release) How to underline the content of a Button control?
Hi. I'm trying to underline the text (content) of a default Button control. Trying to use control templates, the default template gets overridden and I have to create my own button template as well. I don't want to do that! I just want the text to be underlined using a decorator. How's that possible Thanks in advance. you can do < Button > < TextBlock TextDecorations = " Underline " > my default button </ TextBlock > </ Button > ...Show All
Visual Studio 2008 (Pre-release) WPF and ActiveX rendering problems
I really like to use the possibilites of WPF for a demo application. Within this demo application a map is shown on the background. The user can pan and zoom the map and can get information of certain items by clicking on the map. I want to show this information with WPF so that i can use rotating, opacity and animations. The map is an ESRI ArcGis ActiveX MapControl. I know I can use ActiveX within WPF by using the WindowsFormHost. Using this, i really see a map visible. But when i want to render a WPF panel of top of it, it is not possible because the ActiveX is always on top. So the panels are rendered under the map. How can i fix this issue Or is it not possible to solve because of the way the controls are rendered ...Show All
Visual Studio Express Editions Some files in VC# Express Img file seem damaged
When I tried to use isoBuster open the VC# Express IMG or ISO file, some files (like setupres.dll, vs_setup.dll, etc) seem already damaged, the isoBuster failed to read those sectors. Where can I get the good files Thanks a lot! http://msdn.microsoft.com/vstudio/express/visualcsharp/download/default.aspx ...Show All
Smart Device Development UPnP Programming
Hi all! I'm working on programming a UPnP software and I'm facing a problem about invoking UPnP devices actions. I use the UPnP API that the Microsoft Platform SDK provides. It's the use of the IUPnPService::InvokeAction which fails. Here is the definition of the fonction : H InvokeAction(BSTR bstrActionName, VARIANT varInActionArgs, VARIANT* pvarOutActionArgs, VARIANT* pvarRetVal); where : * bstrActionName : Specifies the method to invoke * varInActionArgs : Specifies an array of input arguments to the method * pvarOutActionArgs : contains a reference to an empty array * pvarRetVal : contains a reference to an empty array You can search more information about this if I've not explained very well the definition. After execution, the functi ...Show All
Visual Studio Express Editions how to save files
Hi! I have tried this code (from Spotty) for saving and opening files and it works perfectly with my program but i need to add more TextBoxes, one ComboBox, one RichTextBox (text and picture from paint). How can i solve the problem I'am useing WinXP and VB Express Grateful for answers. I.HJ Public Class Form1 Private Mod_strFilename As String = "" Private Sub BtnLoad_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnLoad.Click Dim ObjFileBrowser As New OpenFileDialog If ObjFileBrowser.ShowDialog() = System.Windows.Forms.DialogResult.OK Then Dim str_Filename = ObjFileBrowser.FileName TextBox1.Text = My .Computer.FileSystem.Re ...Show All
