dmsmsdn's Q&A profile
Software Development for Windows Vista Sequence vs. CompositeActivity Guidance
Hello, Could anyone please provide some guidance as to when to create a custom activity that is based on Sequence and when to base it on CompositeActivity I see some of the same WWF activities are based on Sequence while other derive from CompositeActivity. I'm not clear on how to decide what to use in which situations. Thanks, Notre Notre, This is correct. A CompositeActivity wo ...Show All
Windows Forms How do I determine a CheckBox control width when adding CheckBoxes at runtime
Hello All, I am adding some CheckBoxes at RunTime and am having trouble calculating the width of the control. How do I determine the width of the checkbox and the padding around the text. I am using graphics.MeasureString but I must be missing something as they are not calculating properly. Thanks in advance for any ideas and/or suggestions. You can set the AutoSize property of checkbox to true and then meas ...Show All
Visual Studio Team System Measure performance - Load Test
Hi, I've got a standalone solution file for which I have to do load test to measure the performance. I've done the Load test successfully but Iam unable to view the performance of my solution file. Is there any way to do the same. I've also done Performance testing using Performance Wizard in VSTS but since Iam working on a VPC i cannot do sampling technique but could able to implement Instrumentation technique. But that seems to be comple ...Show All
Windows Forms When to Use WinForms Over WebForms
Hi: Gurus, I have to make a major decision to port the VB6/SQL server (typical client-server) application on .NET. The application should be accessible over the net to outside clients. Since the old application had a very rich GUI I am bit con ...Show All
Windows Forms Documentation links
FYI- It looks like several of the documentation links at http://www.windowsforms.net/Terrarium/docs/ObjectModel/OrganismBase.(none).aspx give error messages. For example click on the 'Animal' class. oh, great! looks like it's been fixed. Thanks! ...Show All
Visual C++ using WM_KEYDOWN to find which non system key was pressed.
Hey all, I,m starting to learn MFC and I'm trying to write a program that will display which keys a user has pressed. I use WM_CHAR for normal keys and that works fine. I want to use WM_KEYDOWN for non-system keys that aren't supported by WM_CHAR. The problem I'm having is that I cannot display which key is being pressed when OnKeyDown() is called. Here is a sample of code that I unsuccessfully implemented: afx_msg void CMainEIWin::OnK ...Show All
Windows Forms Creating a Data Library
Hello, How do I call methods and use classes from a VB.Net class library project I have a UI project and a seperate class library for CRUD processing on datasets. I am new to the platform and don't know how do what I need to do.  ...Show All
Visual Basic Get information from database
Hello I was using Visual Basic 6 and when I want to get information from a database, I write: Dim Con As New ADODB.Connection Dim rst As New ADODB.Recordset Set Con = New ADODB.Connection Set rst = New ADODB.Recordset Con.Open "Provider=MSDataShape.1;Extended Properties='Jet OLEDB:Database Password=111';Persist Security Info=False;Data Source=D:\Programs.mdb;Data Provider=MICROSOFT.JET.OLEDB.4.0" rst.ActiveConnection = C ...Show All
Visual Studio 2008 (Pre-release) Button Resizes Incorrectly when changing the angle of it's layout
I grabbed some source off Charles Petzold's website and played around with it. There seems to be a problem that when you rotate the layout of a button in a UniformGrid that at an angle of 45 it shrinks below what is required to show all the text. Is this a bug Copy all the code below to a .xaml file and run it to see the problem: < StackPanel xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xm ...Show All
SQL Server Create File Option In File Connection Manager
May be it's too late, but I think this requests could be scheduled at least for a SP1 if it's not possible for the RTM. 1) Execute Task without debugger: it would be very nice to be able to execute a single task without going in debugging mode. Just as you would ask "Start Without Debugging CTRL+F5" but for a single task 2) Customize default properties for task and component: when you drag a task on the package you get a default value for the ...Show All
SQL Server Need to create <Query> statement programmatically
I am creating a web application that uses a using a web service to get data for my reports. Since the webservice only accepts 1 parameter called "sql" (the sql select statement), I am using the report's query string to get the data. Here is the data source and dataset info I am using: DataSource Name: WebService Type: XML Connection string: http://localhost/myWeb/myWebService.asmx Credentials: No credentials DataSet ...Show All
Software Development for Windows Vista VISTA re-install
Hi all, I installed Vista on a new PC. Now I want to re-install Vista and it tells me that the partion I want to use does not have enough space. But I want to completely re-install. How do I do this Thanks for your help. Linley For some strange and bizarre reason, unknown to me, Vista requires at least 8GB of a partition to be free to install. As I was doing my install on a test box with a ...Show All
Visual C++ VS2005 Beta2 fatal error C1902
VS2005 Beta2 fatal error C1902 I have machines with VC6 and VS2005 Beta2, and it works fine. After I uninstall VC6,I work with only VS2005 Beta2. Then I write any MFC programs with APPWizard using VS2005 Beta2,it always reports error when I build the project. the error message is : fatal error C1902: Program database manager mismatch; please check your installation ..file stdafx.cpp Can anyone help me to solve the problem ...Show All
Visual Studio Team System cannot create a new team project
Hello. I installed TFS successfully into single machine and could connect to TFS using TFSSETUP account. But once I tried to create a new team project, I got an error message. "Project creation failed with error: "Initialization failed for plugin(s): 'Microsoft.Pcw.wss'"" The TFSSETUP account is a member of Administrators group and Namespace Administrator(ADAM). My environment is below. - Windows Server 2003 with SP1 - IIS 6.0 - SQL Server ...Show All
Visual C++ All INVALID functions?
I'm struggling with this problem for this class. All my friends can't understand this one. Anyways here it goes. Write ALL invalid fuction calls to the following fuction prototype. Assume that the compiler will accept float and integer interchangeably. void testit (int x, int y = 1, float z = 3.1, int w = 5); Hint: 1. Skipping parameters such as (1, , 4.1, 16) is not an acceptable answer. &nbs ...Show All
