mpcadel's Q&A profile
Windows Forms Problem creating master/detail form w/customer/orders
It's a pretty simple question: I have a few tables: customers, orders, orderdetails, products etc. I have created relations between these tables. The problem is that i want to create a form with ORDERS as the "master". When showing an order, i want to see details about the customer who ordered it, and details about the products that was ordered. How would i do this Note: I do NOT want to have customers as master, and display orders based on which customer selected - i want the opposite, and that's the problem... The solution could be to create a Table of Customers with a primary Key and a relation one to many to the table of order. Selection of the Client record, will give you ...Show All
SQL Server Error: 18456 Severity: 14, State: 10
I have SQL 2005 Expess installed on Windows Server 2003 SP1. My application is running as a service and is set to depend on SQL Server instance... During the startup my app attempts to connect to the databes and it fails to do so, after 30 retries (1second appart). SQL Server log has this error msg: Error: 18456 "Severity: 14, State: 10" Once the server has started, I cam manually start my application and it then sucesfully opens a connection to the database. What does this error mean Srdjan Start->Run...->services.msc Then go to the SQL Server service and stop it. Then Click <Properties> and in the <Start Parameters> field enter -y 18456. You can then click <Start> t ...Show All
Visual Studio Team System MSF Template - Risk WIT has a validation error
Hi, I am getting an error when trying to save a Risk WIT in a MSF CMMI and AGILE team project. There is no other information I have about this error other than what is recorded in the trace log: [WI] [Error, 3328, 1, 13:19:31.622] SvrEx: Microsoft.TeamFoundation.WorkItemTracking.Server.ValidationException: Forcing rollback ---> System.Data.SqlClient.SqlException: Forcing rollback at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior ...Show All
Microsoft ISV Community Center Forums Outputting to a Listbox
Hi; I have a list of data, and need for values outside a lower and upper bound to be flagged up to the user. I was thinking of outputting to a listbox, but cant get the code to work. I was wondering if anyone had any ideas for possible code, or a better way of outputting to the user. Ryan This will output the cells that contain values. It will also store the cell address in a second hidden column in cause you want to do something with item in the list. I you only need to list values comment out code. Dim rngTemp As Range Dim FinalRow As Long FinalRow = Range("A65536").End(xlUp).Row ListBox1.ColumnCount = 2 ' to hold cell address ListBox1.ColumnWidths = ";0" ' hide column Fo ...Show All
Smart Device Development what is native and managed applications?
May I know what is native applications and what is managed applications. What is the differences between Thanks in advance! This forum is dedicated to device emulator. Since your question is not related to device emulator, it's off topic here. If you’re having a hardware issue, please contact hardware manufacturer or reseller. If you having an issue with 3rd party software, please contact respective software manufacturer or reseller. Otherwise please post to relevant forum or news group: http://support.microsoft.com/newsgroups/default.aspx Closing as off topic Hint: read forums titles and pick the one best matching your question, don’t post to the first one you see. Also please try search engines, they ...Show All
Visual Studio How to add a winforms textbox value dynamically to a rdlc?
I would like to know if anyone knows how or if it is possible to add a textbox to a windows form and have the value typed into the textbox displayed on a rdlc upon rendering the report (reportviewer.localreport). I am trying to allow a user to add header titles and dates to the report without having to add the values to the database and call them through the dataset. this is a vb windows application (VS 2005). Thank you, Allen Simmons Report parameters can do this. If you create a parameter on the report, you can refer to it in a textbox in the report. Just because it is a parameter to the report does not mean that it is a parameter to a query used by the report. Report parameters can be set programatically using Repo ...Show All
.NET Development NEED URGENT HELP!!Creating an xml file based on xsd schema
Hi all, I need urgent help with an xml issue. Let me explain the scenario: My app needs to read an xml (e.g. Sales Orders). This xml contains say 10 sales orders. Next the app needs to split the original xml into 10 individual SalesOrder xml files, each file containing a single sales order. The xml files created must be created based on a set xsd schema.See example below: Here I have 2 sales orders in my original xml, I want to create 1 xml file for each Sales order. e.g. <Sales Order> <DocNum>"1234"</DocNum> <ItemCode>"321"</ItemCode> <DocDate>20070215</DocDate> <Qty>1</Qty> <Amount>$1500.00</Amount&g ...Show All
Visual Basic More than one datareader at the same time?
How to replicate this snippet of code using Ado 2.0 I mean, you are not able to use two datareaders associated to the same connection. Let me know, how do I such thing, I'm just a newbie with ADo .Net. TIA sql = "select..." command.commandtext = sql set recordset = command.execute While Not recordset.EOF sql2 = "select..." command.commandtext = sql2 set recordset2 = command.execute While Not recordset2 Wend Wend VB 2005 with SQL 2005 does allow for multiple result sets on a single connection. See http://msdn2.microsoft.com/fr-fr/library/ms131686.aspx or search on Multiple Active Result Sets (or MARS) for ...Show All
Software Development for Windows Vista Issues with HumanEmailWorkflow...
Hi Everyone, I am having serious problems with HumanEmailWorkflow - a "Sample" as from Windows Workflow Foundation. These are the errors I am getting: Warning 1 Could not create output directory 'C:\Windows Workflow Foundation\Examples\SimpleHumanWorkflow\RtcActivityLibrary\bin\Debug\'. Access is denied. RtcActivityLibrary Warning 10 Cannot find wrapper assembly for type library "Outlook". SmtpMailServices Warning 11 The referenced component 'Outlook' could not be found. Error 2 'LeaveWorkflows.EmailWorkflow' does not contain a definition for 'CanModifyActivities' c:\Windows Workflow Foundation\Examples\SimpleHumanWorkflow\LeaveWorkflows\EmailWorkflow.Designer.cs 43 18 Error 3 'LeaveWorkflows. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# Lack of pointer confusion
My lights are kept in the main Game class. I register my light sources with my render manager so all of the shaders know which light sources to use. I want to be able to update a light source in the Game class (like sunlight) and it be updated for my shaders. I'm passing the source in by ref, but when it gets added to the Dictionary (which holds the name of the light and the light vector itself) it seems to be adding a copy. When I update the light in Game, it is not being updated in that Dictionary. I am pretty much new to C# but have been programming in C++ for years. In C++, I'd just store a pointer. Thanks // This code is from the shader class m_LightSources = new Dictionary<String, Vector3>(); public void AddLightSource(S ...Show All
Visual Basic regsvr dialog confirmation
This might be a imple solution to someone but I can't figure it out. I need to know how to register a dll without getting that annoying confirmation message. My code is below. Thanks! Shell( "regsvr32 operate.dll /i" ) 'to install Shell( "regsvr32 operate.dll /u ") 'to uninstall Registering of DLL's is only required for COM to work. DLL's can contain COM components (ActiveX is COM) which require registration OR unmanaged API's or .NET assemblies which dont require registration. ...Show All
Software Development for Windows Vista Cannot uninstall WinFX Beta2 (April) error 1603
Greetings. I have problem uninstalling the WinFX 3.0 Beta2. This is the latest beta before the current (June CTP) so I think it is Beta2 April CTP. I try to uninstall from Control Panel, and get this error: [06/26/06,09:50:58] Windows Communication Foundation Beta 2: [2] Error: Installation failed for component Windows Communication Foundation Beta 2. MSI returned error code 1603 [06/26/06,09:51:22] WapUI: [2] DepCheck indicates Windows Communication Foundation Beta 2 is not installed. [06/26/06,09:51:22] WapUI: [2] DepCheck indicates WinFX Runtime Components 3.0 - Beta 2 was not attempted to be installed. Ok, so it seems that I didn't have WCF installed , therefore I cannot uninstall WinFX So, I try to fnid the WCF Beta2 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Workaround to make XNA GSE work on Vista RTM?
It is not supported of course, but since Vista is locked down and shipping, is there a workaround to install Beta 2 of XNA GSE on Vista Repro steps: On Vista RTM Install C# Express Launch XNA GSE Beta 2 When it is "registering templates", an error message about C# Express closing down appears XNA GSE Installation app errors as well, saying that something went wrong Installer reverses all the installation... Have you tried the 'Install the Service Pack BETA for Visual Studio C# Express' and the 'Run As Administrator' method that was used for the release candidates That worked for me on RC1... ...Show All
.NET Development Performance Counters for 32 bit Worker Process on x64 OS???
I would like to be able view the performance counters for ASP.NET v2.0... on my server running Windows 2003 Server Std x64. I am running the worker processes in 32-bit mode and the performance counters that I see are for the 64-bit ASP.NET v.2.0... When local to the server I can run this command to see the actual values "mmc.exe /32 perfmon.msc" but how do I achieve the same thing from my workstation using perfmon Thanks for your help! That probably would've worked but due to an incompatability with our application we installed a x86 version of windows and this is no longer an issue for me. Thanks everyone. ...Show All
Visual Studio Team System MSBuild script question for VSDBPro
I'm trying to integrate a solution that has two VSDBPro projects into my automated build. Here are some snippets from my build script file: < PropertyGroup > < TargetConnectionString > Data Source=DevServer001;Integrated Security=True;Pooling=False </ TargetConnectionString > </ PropertyGroup > < ItemGroup > < DBSolution Include = " DatabaseSource\DBProjects.sln " /> </ ItemGroup > < Target Name = " BuildDBSource " > < MSBuild StopOnFirstFailure = " true " Projects = " @(DBSolution) " Targets = " Build;Deploy " Properties = " $(TargetConnectionString) " ...Show All
