David J Oldfield's Q&A profile
Visual Studio Express Editions How to Save Form
how do you save a form as a form that can be reopened and edit Hi, Could you further elaborate Coz normally when you save a form in Visual Studio you can open the form or attach it in a new project for you to edit it... cheers, Paul June A. Domag ...Show All
Windows Forms Datetimepicker haschanges
Hi All, I'm using a datetimepicker control on a form page displaying database records. I use an adapter and fill on form load. I have a form_closing event to catch unsaved changes with the .haschanges property. To get around the nullable problem with the datetimepicker, I use the checkbox. It's not great but it works and I'm fine with that. The problem I am having is that the control always sets .haschanges to true if a record is selected, though unchanged. I know it is the datetimepicker control because if I remove it I don't see this problem. Thanks in advance. ...Show All
.NET Development Why doesn't my C# form show the contents of the database?
Hi All, I'm using VC2005 in C# trying to create a windows app that displays the contents of the tutorial northwind.mdb. I've followed the tutorials and created a dataset and dragged the customers column onto the form and it all compiles and runs fine but none of the elements on the form get filled in with the contents of the database, also the BindingNavigator has no items to navigate. What am I doing wrong and how do you make the app automatically load in the northwind database and display the contents on the form I've just tried and experiment as I forgot to mention my OS is XP 64 and is proving a right pain in the ***. On the odbc data sources none of the user DSN options work and all give errors when you try and c ...Show All
Windows Live Developer Forums Due to a connection problem, changes you make might not be applied to other computers you use
Hi, Due to a connection problem, changes you make might not be applied to other computers you use I am getting this error in Live Messenger for last few days... As a result, my contact list is not appearing correctly and all the contacts are missing. Anyone having same issue Thanks Fahad Pleased someone else is having this problem. I emailed Microsoft about this and after deleting the cache their solution was for me to grant them access to my account. How will this solve things I explicitly said that my full contact list appears on other computers and with MSN Web Messenger. ...Show All
Windows Forms Problem casting in the CollectionEditor when Option Strict is On
Hello all, The SelectedItem of the ListBox in the CollectionEditor in the left pane is type System.ComponentModel.Design.CollectionEditor.CollectionEditorCollectionForm.ListItem. If Option Strict is Off, the component item is referenced by SelectedItem.Value. But if Option Strict is On you get a compile late binding compile error because the type is private. Is there any way to cast this so it will work with Option Strict On Thanks in advance for any ideas and/or suggestions. ...Show All
Smart Device Development VS .NET to VS.NET 2005
I have a problem with the conversion of dates after migrate of VS.NET 2003 to VS.NEt 2005 Test: Dim oDate As DateTime = DateTime.Parse(oDst.Tables(0).Rows(1).Item("mydate").ToString()) Error: invalidcastexception ..... In my project of vs.net 2003 worked well that code I sorry for my inlges ... i speak spanish Thanks. Please create new thread for each new question. Use correct forum, in this case that would be SQL CE forum. ...Show All
Visual Studio 2008 (Pre-release) Custom Transport & Message Encoding
I get the feeling that my custom tranport binding is not encoding Messages properly when tracing reports an exception being thrown somewhere below Dispatcher.ChannelHandler.ReplyEndpointUnknown at Dispather.ChannelHanlder.EnsureChannelAndEndpoint on the IInputChannel I've been pretty faithful to the encoding used in the UDP custom transport example, but I'm left wondering if I should be adding To, ReplyTo, and From details to the messages I'm transmitting. Come to think of it, can anyone suggest to how amend these details of a Message Many thanks for any suggestions... DL Looks like I forgot to add an encoding channel to my stack. This is of course embarrassing, as the need for an encoding cha ...Show All
Visual C++ LNK4209 in VS2003
Hi I am trying to link an EXE that will statically link in a library A that also depends on another static library B. When B is compiled with any debugging information, I get LNK4209 when linking the EXE. The steps I follow are: Build B Build A Build EXE The object files that LNK4209 comes up on are both generated from my own source files. All of these are compiled with VS2003. Additionally, eventually the linker terminates with "Internal Error during pass 2". If I rebuild B with no debugging information, I am successfully able to link & run the EXE, but this is not desirable. Below is some verbose output from the linker. If anyone can shed some light on this, it is much appreciated. GIPSSipVoiceEngineDll_debug.lib(rtpsende ...Show All
Software Development for Windows Vista Accessing Vista Registry from a Remote Machine
I'm trying to access the registry on a Vista machine that is part of a work group from an XPSP2 machine that is part of a domain. Both machines are on a local subnet of a wider LAN. I have acquired partial access by doing the following on the Vista machine. Starting the Remote Registry Service and setting it to Automatic. Enabling the File and Printer sharing and Remote Desktop groups in the Firewall. Enabling Remote Desktop from Computer, Properties, Remote. However, when I use regedit on the XPSP2 machine to access the Vista machine: I can see only the HKEY_LOCAL_MACHINE and HKEY_USERS keys. I can access and edit values in and under HKEY_USERS. When I try to access HKEY_LOCAL_MACHINE, I get the following error: Cannot open HKEY_LOCAL_ ...Show All
Visual Basic VB 2005 EE - Music and media player
Does anybody know the code - if it is possible - to open a music file in Windows Media Player from a visual basic program If i had 'track1.mp3' for example, does anyone know how to open this from visual basic in windows media player Thanks a lot ' If you have normal file associations this will ' work to launch Windows Media Player. ' Otherwise if you want to use the WMP control, ' uncomment some of the other stuff. Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click OpenFileDialog1.InitialDirectory = _ My .Computer.FileSystem.SpecialDirectories.MyMusic '" ...Show All
Software Development for Windows Vista Persistence Service with Remote SQL Server connection
Is there anyone out there that is successfully persisting and tracking workflow data on a remote server I've had no problems doing this on my local machine. I'm attempting to point to another database server and am getting this error message: System.InvalidOperationException: Workflow with id "9ff9b8b7-2243-4dfd-b606-a7daa88d9b16" not found in state persistence store. I've checked all of the obvious things, remote connections being allowed, DTC turned on and running, etc. I've even opened port 135 through windows firewall and added dtc as an exception. What am I missing ! Well, I ran everything with a fresh copy of the database with the exact same result. And I haven ...Show All
Software Development for Windows Vista Create Custom activity to store data
Hi everybody, I created a state machine workflow with some services: _WFRuntime = new WorkflowRuntime (); _WFRuntime.AddService( new DefaultWorkflowCommitWorkBatchService ()); _WFRuntime.AddService( new SqlTrackingService (trackingStore)); mmitWorkBatchService(workflowStore)); _WFRuntime.AddService( new SqlWorkflowPersistenceService (workflowStore, true , new TimeSpan (0, 0, 0, 10, 0), new TimeSpan (0, 0, 0, 10, 0))); _WFRuntime.AddService( new ManualWorkflowSchedulerService ()); ExternalDataExchangeService dataService = new ExternalDataExchangeService (); ... (adding my local service which i use to raise events from my asp.net application) I need to be able to stor ...Show All
Windows Forms Displaying Good Quality Graphics in a large Simulation
Hi Guys and Gals, My first forum post here so lets hope I get a good solution :D. Im a 4th year student at SLIIT (Sri Lanka Institute of Information Technology) and Im doing my final year project right now. Our group decided to build a traffic flow simulator that simulates real life scenarios (100 vehicles heading in one direction, the roads getting jammed, etc. etc) using AI agents (cars mostly). Now the question I want to ask is, I will have to show all these entities moving around, and since we plan to model a large area there will be lots of objects moving around and interacting with each other. Im pretty new to C# (I used mainly Java) and I doubt the best way to show all this graphics is to just dump them on the main form . So whats t ...Show All
Visual Studio Team System Ignoring UserMap.xml during VSS Migration
When migrating a simple project from VSS to TFS, I ran into the following error: TF60096: Unable to migrate due to Team Foundation Error: TF50605: There was an error looking up the SID for <USER>. Having experience with this type of problem in the past, I quickly mapped the user in the UserMap.xml file and reran the migration. <As a side note, it would be great if the analyze would report on this type of error> Unfortunately I got the same error back - almost as if the vssconverter ignored the UserMap.xml. I have doubled checked the UserMap.xml file and location and they appear to be correct. The VSSConverter.log is showing something like: [VersionControl, Error, 16, 2006/10/25 15:14:52.283] Exception: System.Web.S ...Show All
Windows Live Developer Forums Handwriting
As I can see, the handwriting feature was gone with live messenger version 8.0.0812, will it be back in a future version Or will any forthcoming versions be compatible with a handwriting plug-in, as the current live messenger is not Oh yes, I didn't know it had an on/off option. It must have been somehow automatically turned off when I updated my messenger. Thanks for the help. ...Show All
