David N.4117's Q&A profile
Windows Forms MDI Parent Menu
How can I access and disable/enable an item in the MDI parent menu I displayed a mdi child after clicking the menu from the parent and wants to enable the menu that has opened it once the child form has been closed. Hi, You can get the instance of the main window with the mdi's MdiParent property. You the cast this Form to your FooForm class and once you add a public property to that class, call that method to reactivate the menu. Regards, Charles ...Show All
Smart Device Development Accessing the PDA's File System from a VB.Net App on a PC?
Hi I have a mobile database on a PDA and i need to access the data stored in this database with an app that is running on a PC. The PC and the PDA are connected Via a USB Link, the PDA does not have any other network connections. is this possible if so any one know how i might do this You could use RAPI to copy file from PDA to desktop so it can be accessed. This question has been answered before so please search for RAPI if you need more info and/or samples. ...Show All
SQL Server SQL Server CE 3 Constraint Problem
SQL CE 3.0 I am trying to add constraints using SQL statements but get an error saying that the constraint would cause a cyclical reference. The same statements work with SSCE 2.0 Eg CREATE TABLE A(pkA integer NOT NULL CONSTRAINT pkAx PRIMARY KEY); CREATE TABLE B(pkB integer NOT NULL CONSTRAINT pkBx PRIMARY KEY, pkA integer NOT NULL, CONSTRAINT fkBA FOREIGN KEY (pkA) REFERENCES A(pkA) ON DELETE CASCADE ON UPDATE CASCADE); CREATE TABLE C(pkA integer NOT NULL, pkB integer NOT NULL, CONSTRAINT fkCA FOREIGN KEY (pkA) REFERENCES A(pkA) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT fkCB FOREIGN KEY (pkB) REFERENCES B(pkB) ON DELETE CASCADE ON UPDATE CASCADE); I dont see that the foreign keys should cause a cyclical reference problem. I have ...Show All
Smart Device Development Pocket pc application using Access 2003
Hi there, this is my first ever post on a forum so please be nice if i get stuff wrong. I am wanting to develop an application for a Windows Mobile 5.0 device using visual studio 2005 but i want to store data on the device using pocket access. Can anyone tell me if this is possible or whether i am 'forced' to use SQLserver The reason i use the word "forced" is that all our software is written in vb6 and stores data using MS Access. The application i am wanting to develop needs to ultimately merge the data with the existing ms access databases. (There are only a limited number of people access these databases so i dont feel any need to upgrade to SQL just yet - If it aint broke dont fix it!!!!) I've found thread ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Books on XBox 360 and XBox Live Development for eLearning?
Hello, I'm sorry to be such a noob, but if you have children, please consider offering me some assistance. I'm studying what it would take to put a SCORM compliant Learning Management System like Moodle ( http://moodle.org ) on XBox Live with the goal of offering downloadable eLearning that would lead to "Achievements" in things like basic math, geography, and other academic topics, in an entertaining manner. Before I get started, I'd like to read a book on XBox 360 and XBox Live development and find out a few things. Can someone please recommend a good book on XBox 360 and XBox Live development, targeted at an intermediate level C# programmer with Visual Studio Is there a Macromedia/Adobe Flash player for XBox 36 ...Show All
SQL Server Help with SQL Server 2005 and IIS 6.0
Hello, I am having problems with my system configuration. I am trying to access a SQL Server 2005 database from a C# .NET web page, but I keep getting this error, " Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'". I am using windows authentication. The SQL Server resides on one server and my web server is on a different server. If I run the both the web server and SQL Database from within the same server it works fine, the problem comes when I separate the servers. I am running Windows Server 2003 on both servers, MS SQL Server 2005, MS Visual Studios 2005, and IIS 6.0. Here is my Web.Config file: < xml version = " 1.0 " > < configuration xmlns = " http://schemas.microsoft.com ...Show All
Windows Live Developer Forums Do Goverment Entities have extra privledges?
I've seen on links on several pages where there was supposed to be additional information about how goverment entities can or are using Virtual Earth, but most of them lead to something other than what I was expecting. Can anyone tell me where I can read up more on what special privledges goverment agencies (like local and state law enforcement agencies) may have when using this tool Examples of sites that mention "goverment" but then lead me to something that had nothing to do with goverment uses/rules/etc: http://www.microsoft.com/virtualearth/default.mspx s_cid=0002 https://msdn.microsoft.com/mappoint/ I work for a company who writes CAD (computer aided dispatch) software, and we'd like to be able to offer to o ...Show All
Visual Studio Team System Really force user to add a work item to a change set
Hi, Is there an easy way to force the user to add a work item when he checks in code At the moment we get the "Policy Failure" with the "Override policy failure and continue check in." Is there any way to suppress that window for only one policy DDressel Thanks Richards. It shows, that SC is not flexible enough to accomplish our needs :-( DDressel ...Show All
Visual Studio Team System Package Load Failure
After installing Team Foundation PowerToys I receive the following error everytime I start VS2005. Package Load Failure Package 'Microsoft.VisualStudio.TeamFoundation.PowerToys.TfptPackage, Microsoft.VisualStudio.TeamFoundation.PowerToys, Version=8.1.0.0, Culture=neutral, PublicKeyToken=b03f5f711d50a3a has failed to load properly. (GUID = {2C5A58FF-51D1-46CC-B46C-CD458632B321} I have had this occur on both my desktop machine and my laptop. I have tried reinstalling TF PowerToys but this did not help. Scott Hello I have the exact same error and this was the only hit on google. This occured for apparently no reason because I have not changed any settings, in fact, I only build from the command line. A ...Show All
Visual Studio 2008 (Pre-release) What's the difference between a template and a style in WPF?
Please help me to clarify that or show me the reference. Thanks:) Cool, a debate. ok, I should've clarified that with a "can". A style can contain a template as the template is one of the properties in the Style. I guess you can leave out any property you like really, but a complete Style contains the Control Template. If you draw a button in Expression, right click and go to Edit A Copy Of The Style, then the Style generated will contain the Control Template. So the original questioner could probably mark this post as the answer ...Show All
Windows Forms Concurrency Violation !!! makes me mad !!!
hi i have one user database application i have two tables related on the form when i save the data Concurrency Violation excetion occurs !! i tried to resolve this by all means from msdn and internet and nothing changed a concurrency violation occurs when i handle the concurrency violation i need your help thanks. thanks for reply i have two related tables the parent table binded to textboxes and the child table is binded to datagridview and i have one button for saving data i do every thing on the two tables and then save data sometimes it saves sometimes not !!!!! and the update code is like that try bindingsource1.endedit da.update(me.ds.table1) catch ex as exception end try ...Show All
SQL Server sp problem
hi, See the follow scenario, table names in red. first field is pk, and same field names in other table are fk. now what i need to do is some rules when setting a bill to discarded, see last table. okay i need to do that via sp. the rule is simple: A bill can be discarded as long as it does not change the costing total on which it figures , that means it need to be replaced, this is something like a chain reaction. see the structure is broken, a bill is decomposed into a lot of bills, then distrubuted on a lot of purchase orders, and then ech purchase order can have multiple costings. Bill BillID Date_ SupplierCode BillType TypeCode Total Currency ROE payment_or_bill bill_detailed BillID_Detailed BillID AmountType Amo ...Show All
SQL Server Extremely Poor Performance - Identical DB's but very different performance
Hello Everyone, I have a very complex performance issue with our production database. Here's the scenario. We have a production webserver server and a development web server. Both are running SQL Server 2000. I encounted various performance issues with the production server with a particular query. It would take approximately 22 seconds to return 100 rows, thats about 0.22 seconds per row. Note: I ran the query in single user mode. So I tested the query on the Development server by taking a backup (.dmp) of the database and moving it onto the dev server. I ran the same query and found that it ran in less than a second. I took a look at the query execution plan and I found that they we're the exact same in both cases. Then I too ...Show All
Visual Studio Express Editions files in a project
Hi All I am new to C#, I have downloaded VC#2005 EE, it's a great product! I have 3 questions: 1) If I create a simple windows forms new application I can find inside the solution explorer basically something like this: ... Properties... References... Form1.cs Form1.Designer.cs ... If I click on the Form1.Designer.cs node I open the Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> It's ok But if for example I open the following project ("Crafting a C# Forms Editor from scratch") (http://www.codeproject.com/csharp/SharpFormEditorDemo.asp) ...Show All
Smart Device Development Data Push
I have data stored in the oracle database. I will have an application (or web) server (for WAP Push) How can I do when data in the oracle database is updated, the program in the application server will know and PUSH the updated data into the smartphone Can SQL 2005 do "Pushing" like this Are only SQL2005 & Exchange Server 2005 can do "PUSH" The objective is that instead of the smartphone always ask the server what is changed, the server application will detect the change and automatically tell the mobile unit.... P.S. can anyone tell me more about the PUSH technology If you want to know about SQL Server mobile-data-sync scenarios than you should look into this p ...Show All
