John.Doe's Q&A profile
Windows Forms BindingSource errors when trying to set DataMember to a relation
I am trying to control the records shown in a datagridview based on the selection in a combobox. When I run the code below I get this error: "DataMember property 'Application_List.RelApp_RptDesc' cannot be found on the DataSource." . dataset dsDescription is already populated with multiple tables. Dim DescriptionBinding As New BindingSource Dim AppBinding As New BindingSource dsDescription.Tables(0).TableName = "Report_Description" dsDescription.Tables(2).TableName = "Application_List" dsDescription.Relations.Add( New DataRelation( "RelApp_RptDesc" , _ dsDescription.Tables( "Application_List" ).Columns( "App_Id" ), _ ...Show All
Community Chat Laser based obstacle detector for autonomous RC Car
Hello everyone! I made a computer controlled RC car a few days ago. Now, I've built a laser + webcam obstacle detector for the car to turn it into an autonomous vehicle! In robotics, people normally use ultrasonic or IR obstacle detectors. However, I decided to go with my weird, laser based, obstacle detector. Check it out on my blog: http://ashishrd.blogspot.com/2007/02/autonomous-rc-car-with-laser-based.html . I've also put a video clip of the car with the obstacle detector. Hope you like it, Ashish :) ...Show All
Software Development for Windows Vista Workflow VB.Net examples: interfaces and local service
Does anyone know where I could find some example in VB.NET that use Windows Workflow (not C#) Specifically, I'm looking for code that shows how to implement an interface needed to define the contract between a workflow and service and local communications between the host and workflow. In a typical schizophrenic fassion, let me answer my own question. I found a couple of links on Paul Andrew's blog: http://blogs.msdn.com/pandrew/archive/2006/12/02/Windows-Workflow-Foundation-and-Visual-Basic-.NET.aspx Hands on Labs in VB.NET: http://wf.netfx3.com/files/folders/documentation/entry7553.aspx SDK Samples in VB.NET: http://www.microsoft.com/downloads/details.aspx FamilyId=C2B1E300-F358-4523-B479-F5 ...Show All
Visual Studio Team System How to add my custom rules into Visual Studio 2005
Visual Studio 2005 has integrated the FxCop. you can see the rules in vs2005 following the steps. Using Visual Studio, create a new C# ClassLibrary project. In Solution Explorer , right-click the project and choose Properties In the Project Properties window, choose the Code Analysis tab . and then you can see the rules that the vs2005 provides. Now I want to add some custom rues into . please tell me what should I do If possible, Please give the step by step tips. Thanks. I have added my customed rule's dll into the folder:"C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\Rules". and then I restart my vs2005,but I can' t to see my custom rules on the Code Analysis tab . ...Show All
Visual C++ reinterpret_cast
Hi agian! I have this code now, I was using ifstream, but it was well over my head, didn't understand it. But what I'd like to do with this code is get the buf to read in 64 bits (8bytes), which is does. But I would like to output the decmial value of that interger. However it seem just to but the 8 bytes back into the txt file. How do I get it to print of the number from the buffer the interger being displayed by value Oneline, is not correct. I can't figure out what it is doing Eventually I'll get this program to read in a whole file, I was thinking of 8byte at a time, and print it off to a file. Using a while(!eof) statement, please would you let me know if that's not possible #include <stdio.h> ...Show All
Visual Studio Team System No appropriate mapping exists for $/Project/Branch/File.cs
I'm trying to unshelve some code I was working on weeks ago and keeping the error msg in subject line which I'll repeat: No appropriate mapping exists for $/Project/Branch/File.cs I do have a workspace mapping setup for the source control path in question so I'm not sure what gives. My workspace mappings have changed since I shelved the shelveset...is this the source of my problem Is there any way to dump the shelveset to disk in some manner so I can access the code changes. I really don't want to lose them... Help appreciated. Hello, if Steve's suggestions does not help, you can always access contant of the shelveset from the unshelve window (select shelveset, click Details..., for each file choos ...Show All
Windows Forms getting ComboBox to Open MyPictures
I'v been trying to get a ComboBox to open My Pictures Folder so a image can be Selected...I was woundering if someone could help me out with this issue... Code: private void pComboBox( object sender, System. EventArgs e) { OpenFileDialog dlg = new OpenFileDialog (); dlg.Filter = "MyPictures(*.jpg)" + "|*.png|All Files (*.*)|*.*" ; dlg.InitialDirectory = MyPictures.DefaultDir; try { if (dlg.ShowDialog() == DialogResult .OK) { _MyPictures.Open(dlg.FileName); } } catch ( Exception ) { MessageBox .Show( "Unable to open " + "album\n" + dlg.FileName, "Open Album Error" , MessageBoxButtons .OK, MessageBoxIcon .Error); } } } ...Show All
Visual C++ Detected memory leaks!
I obtained the following strings in the output windows when I exited my program. How to read it Detected memory leaks! Dumping objects -> {45} normal block at 0x013C1A60, 16 bytes long. Data: < qf f - - > E8 71 66 00 0C 91 66 00 F0 2D BD 00 C0 2D BD 00 {44} normal block at 0x013C0040, 16 bytes long. Data: < qf f / @ > E8 71 66 00 0C 91 66 00 A0 2F BD 00 40 12 BD 00 Object dump complete. Best regards, Jeremy Memory Leak Detection and Isolation ...Show All
SQL Server sql 2005 to sql 2000 linked servers problem.
We have two sql servers using Windows authentication. One is sql 2000 the other sql 2005. When logged in as "sa", I can link these servers and run a SELECT distributed query without any problem. But when one of our developers runs the same query (he is "dbo" of each database on each of the servers) he gets the error: "OLE DB Provider "SQLNCLI" for linked server <Servername> returned message "Communication Link Failure" ... Login failed for user '(null'). reason: Not associated with a trusted SQL Server connection" Despite that, I, as "sa" equivalent, have no problem so it appears to be a permisisons issue. Any ideas what is going on here TIA, Barkingdog ...Show All
Visual Basic Array or object to string
Hi this is probably really simple - I want to convert an object (could be an array) to a string, so that I can save it in a text file, and then retrieve it and recreate the object at a later date. The object could be a muti dimentional array or an object with mutiple properties. Many thanks Thanks I was looking to produce a general purpose tool that could take an object and then fire the resultant string at where ever I wanted, to be recovered at a later date or other location. seemed like a really useful building block to me (once the work was done). I looked at the serializable link. It is going in the right direction, and now I know know what it is officially called! Thank again ...Show All
Visual Basic textbox validating
I ahev a form in vb.net in which the textboxes are validated useing e.cancel. My problem is I want to have a "clear Form" & an"exit" button. If a textbox has focus and I click a button to clear/exit the button click is not called as the textbox retains focus due to e.canel=true. How can I get these buttons to work Colin The issue you're having with the Save button retaining focus after the validation error message is acknowledged can be handled in the Validating event by setting focus back to the textbox. MessageBox.Show(...) textbox1.Focus() Everything seems to be working for me with the exception of when the user hits the ESC key. I've set the CancelButton property on the form to us ...Show All
Visual Studio 2008 (Pre-release) Detecting ComboBox value changes
How do I detect value changes in a XAML combobox I can't figure out which Event to watch. Thanks! That seems to be working for mouse changes. For keyboard I'm using PreviewLostKeyboardFocus. Is that the best method for this ...Show All
SQL Server Permissions to view Stored Procedure Property
My Production servers are SQL Server 2005 x64. I would like to allow my developers the ability to look at permissions on production stored procedures but not be able to change those permissions or alter the production code. What has to be set to allow this sort of security. Hello! I have difficulties running: Code Snippet SELECT OBJECT_DEFINITION ( OBJECT_ID ( N 'TableName' )) AS [Object text] It returns null. I've read that user who is running this query has to be granted VIEW DEFINITION. I set this grant (although I am owner) and it still returns null. If i run: Code Snippet select object_id (N 'TableName' ) ...Show All
Microsoft ISV Community Center Forums MS Office document and image writer print driver
Besides removing this feature from Office during setup, is there a process to remove this virtual printer from 300 users with roaming profiles on an active directory network We are having an issue with this printer assuming the "default printer" selection for our users. As a work around we have changed their default printer, but after they reboot or log off / on it has defaulted back to the MS Ofc doc and image writer printer. Per our support engineer: Thanks for using ISV Community Forum, according to your problem, I’m wondering whether you can simply log on the machine as administrator and delete the virtual printer (just select the icon and press del key) in Control Panel -> Printers ...Show All
Architecture Question on Custom Entities
I have a scenario wherein the UI talks to Service layer --> Business Layer --> Data Layer and fetches data and passes along the layer via custom entities. Typically when we retrieve records it would as a set of entities inside an entity collection or should I say an array of entities. Now when I update a particular entity in the entity collection I either have the option of sending the entire entity collection or just extract out the updated entity and send the same across the layers to be updated in the database. Looking apparently, it would suggest sending only the updated entity instead of the entire entity collection bcos its always best to pass small size data across the layers. Is this analogy correct or is there some scena ...Show All
