Armin Zamani's Q&A profile
SQL Server Multiple column in crosstab objects
My question is that, I have made a software on Visual C# 2003 and I use cross tab for my report. But, when I add more than one column.the other columns are coming under the first column. But, I want to put them next to each other. How Can I do that Sincerely ...Show All
Windows Forms number validation
Hi there, I am trying to have a validation control which accepts 16 numbers. After entering 4 digits a "-" character should appear automatically. Is this possible thanks guys Cheers Chris Thanks a lot. It work perfrct. I just want to accept numbers. I handled that with a regular expression. Modified code in C# if (TextBox1.Text.Length == 4) { ...Show All
Visual Studio Team System Teambuild
Hello, I want to include the NDoc function in the teambuild service. I have 2 questions: How can I make this and where can I start the Teambuild Wizard Hi TeamBuild, You can start the Team Build Wizard by going to the Team Explorer and doing a right click on the 'Team Builds' Node. Choose the option 'New build type'. This will launch the Team Build Wizard. As far as integrating Ndoc is concerned, you can do this by customising the build script to invoke the NdocConsole.exe post build. On the beta 2 bits this is how you would do it 1. Checkout the CustomActions.targets file under the TeamBuildConfigurations ...Show All
Visual C# UOM classes?
One of the things I haven't seen in the base .net libraries is some kind of unit-of-measure handler. If you're just measuring distances then Unit and UnitType are there and they're okay, but I haven't seen anything for weight or volume or anything. It's one of those things I'd expect to change with CultureInfo, but it looks like it might have been a bit beyond the scope of the base libraries. So I'm wondering if there's something somewhere I can use for this, or if I have to roll my own. My searches so far lead me to believe that unless I want to go the route of some CRM product (which looks like a lot more than I need) I'll hav ...Show All
Smart Device Development Help using a videocamera in a pocket pc with WM2003
I have read a lot about it but I don't have aby clear idea. I'm new with pocket pc and with windows mobile so I'm a little bit lost. I am developing (in C language with Visual Studio) an application that reads 'in live' the video streams of an iPAQ and use that streams to gather some info to display in the screen. In order to make that possible I have to access my camera to obtain those streams. I have read about using Directshow but I think that it doesn't works in WM2003 (which runs in the iPAQ). I also read about some APIs like this one : http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcem... ...Show All
.NET Development NetworkSrtream Buffers
Dear sirs, i would like to ask you the following: i have a network stream associated with a socket from where i read and right asynchronously. First of all is there a problem if i call BeginWrite many times before the callback returns What about BEginRead more than once before endread is called How is tha data and the used buffer managed SHould i use a different buffer for each seperate BeginRead After all what can happen if 2 BeginReads are called Which one will get the data Thanks in advance! The general pattern is to call BeginRead or BeginWrite once, and then, from your callback, to call again. To ma ...Show All
.NET Development TimeSpan or Stopwatch not as accurate as Environment.TickCount
Can someone, maybe preferably from Microsoft, confirm a behavior that I'm noticing concerning the lesser accuracy of using TimeSpan and the Stopwatch object to time something in milliseconds versus using Environment.TickCount. Specifically, I'm noticing that in my Ping class that when I use Environment.TickCount to measure how long a host responds to my message, the result in milliseconds is accurate compared to the results when I use Ping.exe from the command prompt. However, when I measure it using either TimeSpan or the Stopwatch class, the results are off about 100 to 200 milliseconds (more). Here's pseudo code of how I'm ...Show All
SQL Server PackageID and GUIDs in ExecuteSQL task
Am I looking at a potential bug here or do I not understand the feature properly I have an ExecuteSQL task that inserts into a table for logging and includes the System::PackageID as one of the values. It's stored in my table as a uniqueidentifier. When I set the output variable in Parameter Mappings tab of the Execute SQL task to VarChar, all works great. WHen I set it to GUID as the data type in that tab, it outputs a different GUID than the actual System::PackageID variable. -- Brian This is not a bug, although several have thought it was. If you look at the system variable you will notice that even though it looks like a GUID th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotation about the z-axis...
I have a square on screen (2 triangles), and I'm experimenting with rotating the thing. Rotating about the x and y axis works as expected (the thing spins horizontally and vertically), but when I rotate it about the z-axis, it goes up and down, deforms a bit, and just looks weird. As for how I'm doing it right now, I'm using Matrix.RotationYawPitchRoll(x, y, z) to get my rotation matrix. We need to see your Perpective Matrix setting and your View Matrix Setting Maybe you are in orthogonal mode... ...Show All
SQL Server SP1 Installation Failure for Reporting Services Instances
The upgrade was alright for my first/default instance of reporting services but failed for the other 3 non-default instances. I was running SP1 using remote desktop connection. I got the following error at the report manager and the reporting services configuration's initialization. Is there any way to get around this The version of the report server database is either in a format that is not valid, or it cannot be read. The found version is 'C.0.8.40'. The expected version is 'C.0.8.43'. To continue, update the version of the report server database and verify access rights. (rsInvalidReportS ...Show All
Visual Studio Team System Error during setup
It seems I'm getting one error after another... my newest is the error 29112. -- Dialog -- Error 29112.Team Foundation Report Server Configuration: Report Server is not properly configured or the Reporting Services Web site could not be reached. Use the Report Server Configuration tool to confirm that Report Server is configured properly and that the Reporting Service Web site can be found before running the installation again. For more information see the Team Foundation Installation Guide. -- Part of MSI-log file -- 02/23/06 14:11:09 DDSet_Status: Commandline: "c:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools ...Show All
Visual Studio 2008 (Pre-release) How to make a column's width 50% of the grid's width?
hello, is this possible. Something like <columnDefinition width="0.5"> or <columnDefinition width="50%"> doesn't seem to work. thanks in advance Kimme You can use 2 columns with <columnDefinition width="*"> and each of them will have 50% of the grid's width. ...Show All
Visual Basic global characters in vba
I am trying to Search for a character string in Excel cells. The first four letters are "CAPP" and it is followed by other insignificant characters. If those first four characters are found I will delete the entire row. Is there a way to use global characters such as "CAPP*" to locate this type of string Here is a code sample: If Range("A2").Value = "CAPP*" Then Selection.EntireRow.Delete Else Exit For End If These forums are for VB.NET questions. VBA is a very different product from VB.NET and there are some other locatio ...Show All
Windows Forms Could not find InstallState
I add a custom action to the Commit node of Setup project. The custom action is a .dll. But when I execute the install project, it result in an error message at the end of installation: Could not find files 'C:\WinProg\CutomAction.InstallState' Where c:\WinProg is the target folder. How can I do Thank, I am a hand about setup project. Could you give me an example David Guyer MS wrote: I think that in your install method, you need to use the "statesaver" object and save the output. ...Show All
Visual C++ MFC Activex Control - Failed to create control: Unspecified error
Hello, I have created an activex control in MFC 8, VS - 2005 Beta 2, which hosts Windows Forms control in it. I have created it as per the article by Nicola (MFC 8 (VC++ 2005 and Windows Forms). When I test using the activex tester I get the message - Failed to create control: Unspecified error. When I refered this object in a html page using the object tag - It does not show the object. I have used the /clr option. I noticed one more thing - When I comment out CWinFormsControl related code, the activex object displays on the html page. ...Show All
