L Nut's Q&A profile
Windows Forms How to do a three table join via IDE
I am trying to develop a windows application which takes a selected author and displays all titles for that author. There is a many-to-many relationship between authors and titles so there is a join table conyaining the authorID and the TitleID for a given author. I can't seem to figure out how to get the titles to display in a listbox based on the selected author. Any help appreciated. This helped. I got a bit side tracked looking at the .xsd file. This shows the defined relationships. Once I saw that the foreign key relationships could be chosen as a data source in the IDE, I got it to work. ...Show All
Visual Studio Team System how to unbind a project and rebind it in new location
I bound a project in a TFS source control location that I want to move to another place. I cannot find any way to move the project, and rebinding it in Visual Studio does not let me add it to another location in the source control tree. I really would like to move the project down one level (ie: from $/MyProject/ to $MyProject/Library1/) so that I can organize other class libraries under the existing project. I have also tried the "tf delete $/MyProject" command, but that just complains that it is "unable to determine the workspace". The online help and tf command line help are of no use. ...Show All
Windows Forms Print Events being called twice.
I am not using a Print Dialog, but calling the PrintDocument Print() method. Each of my event handlers for BeginPrint(), PrintPage(), EndPrint() are each called twice. It's like I called Print() twice, but have stepped thru the code and that is not happening. Has anyone else run into this <strong>PrintDocument.Print()</strong> prints as long as <strong>ev ...Show All
SQL Server Cannot insert explicit value for identity column
I am writing a program to import data across from one database to another. I need to be able to make it use the current ID numbers or else the relations will be broken. I keep getting: Cannot insert explicit value for identity column in table 'mytable' when IDENTITY_INSERT is set to OFF. I have opened up SQL Server Management Studio created a new query with: SET IDENTITY_INSERT [BMSSUNRISE] . [dbo] . [SystemInventory] ON GO this results in success but the program still fails, I have tested the Insert SQL statement in the SQL Studio tool and included the above line in front of it and it works. MY QUESTION, how do I get ...Show All
Smart Device Development Problem with System.IO.Ports when sending data to Bluetooth com port.
I want to connect a mobile phone from my pocket pc over Bluetooth com port using the new System.IO.Ports.SerialPort function in .Net Compact Framework 2.0. I can open the com port, but when I want to write data to it, the whole pocket pc hangs and I have to hard reset it. I tested it also with a normal com port on the pocket pc and with it, it works. Are there maybe problems with the Bluetooth com port emulation driver, or is this a bug in the framework Does anybody have the same problems I am running the code on an Fujitsu Siemens Pocket Loox 720. Hi TheNetStriker, Can you att ...Show All
Visual Studio Missing Icons and Bad Links in MSDN
Hello. I'm having trouble with my installation of MSDN. Some of the little icons that should appear next to some of the links don't show up, and many of the links don't work. When the links don't work, I get a JScript error "Object does not support this property or method." If I attempt to debug it, it's always a simple, one-line, code block, such as; alink_301.Click() This is an example of what the missing icons look like. The little box, next to Look here, should be an icon; Send feedback to MSDN. Look here for MSDN Online resources . But other icons Do show up, as in this case; Platform SDK: Perf ...Show All
Visual Studio Tools for Office Selection.PasteExcelTable not working correctly the first time it is called
Hi, There are specific circumstances under which Selection.PasteExcelTable does not behave as expected the first time it is called. The following are the steps to reproduce it. In a Word Template project, add the following code private void ThisDocument_Startup(object sender, System.EventArgs e) { UserControl1 userControl = new UserControl1(); userControl.button1.Click += new EventHandler(userControl_Click); this.ActionsPane.Controls.Add(userControl); } void userControl_Click(object sender, EventArgs e) { Application.Selection.PasteExcelTable(true, true, false); } Run the project and then copy from an Excel file that l ...Show All
SQL Server Stored Procedure Wizard
SQL 2000 had a Stored Procedure Wizard and I was wondering where it is in SQL 2005 or if it even exists any more. If it is gone was an alternative created Jon I an trying to understand the issue here. Why would you want to create 50 stored procedures all at the same time If you are putting together a new enterprise application that requires a lot of tables, views, functions and SPROCs perhaps a code generator would make more sense. They can allow you to create several procedures at once. Much faster than any wizard from microsoft. I usually build applications up a piece at a time this includes SPROCs. Gene ...Show All
Visual Studio Tools for Office Runtime Pure virtual function call R6025
Can any one help please. I keep getting this error Program: C:\Program Files\microsoft Office\Office 11\Winword.exe R6025 -Pure Virtual Fuction Call On a XP machine SP2 Office 2003 SP2. No other programs. Have tried reinstalling the service packs and making sure printer drivers are XP. Have aslo tried installing office 2002 but still get error. Happens on different word documents.Many thanks Hi Ades, Is this error generated from a VSTO project If so, can you show us the code that's causing the problem, or describe the steps you're taking that lead to this error Rufus ...Show All
Visual Studio Dynamically loading image in Crystal Report (NOT CR XI) which comes in with VS 2003
Hi All. I am currently using bundled in Crystal Reports that comes with Visual Studio 2003. We have a requirement by which we need to dynamically change the image (LOGO) of each reports generated. Right now I have to embed the logo in header subreport and then include them individually in each main report(s) ... Now I have a requirement to brand each main report based on vendor. So I want to dynamically load image in the header sub report. I am not using CR XI, but I read somewhere, where it was suggested that it can be done using OLE object and then programatically updating the physical file with the image wanted at runtime .. ...Show All
Visual Studio disable button...
I am trying to programatically disable my custom wizard page's Next button using the EnableStep method of the wizard class. this .EnableStep( false ); But this isn't working. Is there any other way to control the enable property of the different wizard buttons Try this: bool enable = /* however you want to set it */ false; Wizard.EnableButton(Microsoft.WizardFramework.ButtonType.Next, enable); ...Show All
Smart Device Development Hello everyone, isi this possible?
Hello!!! First of all, it is nice to write here and to share all our knowledge about this fantastic world . I am a completly beginner in xml and for this i have a little problem, please help me . I want to configure my PcPocket (Qtek S100) using xml files. I have configured all the networks (GPRS,WAP...) using wap provisioningdoc and then transforming xml files in cpf files with makecab, i haven’t had any problem, but when i have tried to configure specifications in my PcPocket like backgrounds, alarms, sounds, this hasn’t worked. Moreover it’s worse, i do not have any idea how to follow examples that I have already read in othe ...Show All
Visual Studio Express Editions Need help in Boundary check
Keep in mind that i named my label to box 1. If we want to keep the box within the boundaries, then we must have a way to test whether the box is moving out of the boundaries. a. Which properties of the box would you use to check b. Which properties of the boundaries would you use to check 2. If the box is de ...Show All
Visual C++ scanf deprecated
Hi there, I'm getting this warning: test.c(10) : warning C4996: 'scanf' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(295) : see declaration of 'scanf' Message: 'This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1) I don't want to use _CRT_SECURE_NO_DEPRECATE in every project I write, I'm compiling from the command line, and a compiler option would do, is there a compiler option or another permanent solution I can use 2) I want to write a portable code, so I can use my applications on all support ...Show All
Windows Forms Can I use a wizard without a form?
Hello all, I posted the following in the microsoft.public.dotnet.languages.csharp newsgroup a few days ago and received zero answers. (Where are all the "MVPs" when you need one ) I am just trying to find out whether whether my technique is reasonable given how the IDE works or whether I am off-track and doing something stupid when there is a&n ...Show All
