Steve Clibbery's Q&A profile
Visual Basic Calculating Elapsed Time Based Upon Two Values
I'm having issues coming up with a solution to what is hopefully an easy fix. Here's my problem: I want to calculate an elapsed time from two values expressed in minutes. I have one text box that contains a value for the "Start Time" and another text box that contains a value for the "End Time." Both of the values are expressed in a format for military time (i.e. 1200, 1300, 1430, etc.). When the "End Time" text ...Show All
Visual Studio Team System TFS problems
I just emailed this to my whole team, who is getting ready to switch from SOS to TFS. I made a series of changes before checking in, including things like adding a new code file, then later removing that same code file. Recap of my issues: When I went to check in, the Pending Checkins window would not give me the option to check in. It only gave me the option to unshelve. So I chose that option thinking it would lead to a ch ...Show All
.NET Development "else if" statement with System.CodeDom.CodeConditionStatement?
I'm creating some source code programatically using the System.CodeDom namespace. I can't however create a proper "else if" statement. You can easily create an "else" statement, but as far as I can see there's no provision for an "else if". Currently I'm inserting CodeSnippetStatement's for the "else if" which works fine, but the output file is not properly indented for the statements within the "else if". The CodeConditionStatement has "TrueSta ...Show All
Visual C# Restart Threads?
Hello All, I am trying to work on a client/server software. I have written a thread to manage the socket listening. But the problem is that after the current user disconnects i terminate the thread with :- thrdListener.Join(); or thrdListener.Abort(); But the problem is that i cant restart the same thread again since my thread throws a ThreadStateException Is there any work around for this How can i restart the same thread ...Show All
Visual C++ Rationale for C++/CLI Value Types not having a default constructor
Given value class X { public: // Not allowed: X():i(100000),s(10000) { } // Allowed void InitializeDefaults() { i = 100000; s = 10000; } private: int i; short s; } How can: 1) X x; x.InitializeDefaults(); be better semantically than 2) X x; for setting the default values of 100000 for i and 10000 for s In other words what is the rationale for removing the natural user-defined default constructor for value types and forcing the user to default co ...Show All
SQL Server Colour coding on subtotals
I have a matrix table with subtotals on row level. Now I want to add colour coding on the subtotals. In the colour property, I have added following expression: =iif(sum(Fields!Booking.Value)<5, "Red" , "Lime" ). This does not give the expected results. It sums up the measure for all columns and adds color coding on that total. But I want the color to be set per column. Anybody any idea ...Show All
.NET Development Framework 1.1/2.0 and VS 2003/2005
I actually just installed VS2005 B2 and receive the following error when starting my VS2003 and loading a project: The following two files are marked as incompatible: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\vspackages\cslangsvc.dll (Version 7.10.3077 [2]) C:\Windows\Microsoft.NET\Framework\v2.0.50215\cscomp.dll (Version 8.0.50215.44(beta2.050215-4400)[4b000050]) Then compiler cannot be used in this configuration. Thi ...Show All
SQL Server semicolon terminator
Can someone define for me what is a statement when it comes to having to use semicolon statement terminator This is absolutely undocumented in BOL. Googling only finds this incoherent article which is far from official documentation. TIA actually I think that is a very good article outlining the usage of GO and statement terminators. GO separates Script blocks ; defines the end of a statement within ...Show All
Visual Basic Oledb connections
I am creating a Db application using MS Access and VB.Net 2003 My database has multiple tables, Employee Master, Company Defaults, Order History. etc... My Main form is where I collect and display most of my data. There is a tab control with multiple tabs (one for Employee info, another for Company default info etc..). I have successfully managed to read the Db to populate the Comp. Default data. Now I want to go back to the same table and ...Show All
Smart Device Development messageBox
hi everyone!!I m still new to .net compact framework... Can i know what is the code to put an exclaimation icon into the message box Thanks in advanced! MessageBox.Show( "My text", "My caption", MessageBoxButtons.OK, MessageBoxIcon.Exclamation ); ...Show All
Visual Studio Team System Another foreach with missing coverage
The FAQ said that we should mention code here which has 100% line coverage but < 100% block coverage. I'm showing 4 blocks uncovered in the following code, and 40 blocks covered. private static void ScaleControlProperties( float ratio, Control baseControl) { float smallFontSize = 6.5F ; if (baseControl.GetType() == typeof ( Button )) { Button scaledControl = ( Button )baseControl; scaledControl.FlatSty ...Show All
Software Development for Windows Vista Digital Signature?
Hello~ I assume anything is possible here, but has anyone incorporated digital signatures as a step within the workflow I assume the digital signature would be an activity I develop Any tips on doing this I am looking to digitally sign form data utilizing PKI. Thank you, Jennifer Jennifer, While you could possibly get this done by just writing code for a CodeActivity, doing it as a custom activity ...Show All
Visual Studio Team System TFS and Reporting Services - Domain vs. Local Users
I run a small development shop and I’m currently using the RTM version of TFS for internal configuration management and as a means to provide structure to our development projects by using MSF 4.0 for Agile Development. . My goal is use the portal portion to allow our customers to contribute to the project documents, and also to view the canned reports. Currently, TFS is configured on a server which is part of our domain. All of ...Show All
SQL Server MDX Query Tool
I have been searching and looking for days for a tool that will allow you to build mdx queries in a GUID (Alot like the browser) and then view the actualy mdx query. I tried to profile the AS 2005 database while using the browser but it profiles some strange stuff.. SELECT NON EMPTY [{51E097E0-68D7-48E7-9847-B7D931EA6E0B}Pivot70Axis0Set1] DIMENSION PROPERTIES MEMBER_NAME, PARENT_UNIQUE_NAME ON COLUMNS, NON EMPTY [{51E097E0-68D7-48E7-9847-B ...Show All
Windows Forms Extreme Menu Generation
anyone have any article links or advice on creating menu's on the fly from xml I want to be able to add menu's for an app that uses snap-ins, and include a definition file that adds snap in menus to the application menu. I want to be ...Show All
