Keith Bromley's Q&A profile
Visual Studio Express Editions TableAdapter.Update does not save data
How can I save data entered in a dataset via the UI I tried the code suggested in the "VB Guided Tour", Private Sub Form1_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing Me .AddressesBindingSource.EndEdit() Me .AddressesTableAdapter.Update( Me .SQLdbDataSet.Addresses) End Sub but all changes are lost when I restart the application. Thanks. I have the same problem in C# even if you don't use a tableAdapter but a sqlCommand object instead. Though affectedRecords reflects the correct rows affected. ...Show All
Visual Studio Team System Team Server - Settings - Security is disabled
Occasionally when I bring up the Team Foundation Server Settings menu, all but the last option will be disabled, presumably implying that I'm not allowed to use those menus (but I'm an admin on everything). Closing and re-launching Visual Studio restores the menu to correct operation. Anyone else seeing this behavior I haven't upgraded to the RC yet. I guess it's about time to do that - I'm not looking forward to it, but it's got to be done sooner or later :) Update - I've upgraded to the RTM version and haven't see this issue since. ...Show All
.NET Development Refcounting issue in COM-.NET interop with beta2 framework
We have an unmanaged COM server application that aggregates a .NET component (which is exported to COM). Amongst some of our own interfaces, this .NET component is also responsible for the IDispatch interface. Running our code with the beta2 framework now has a refcounting issue that was not there with any of the previous .NET frameworks, incl the beta1. Say the unmanaged server class is called CUnmanaged and the aggregated .NET component implements a managed interface IManaged (which is also exported to COM) 1) behaviour in the old frameworks: <clientcode> { CComPtr<IUnknown> pIUnk; pIUnk.CoCreateInstance( __u ...Show All
Visual Studio Express Editions Cannot install Visual Basic Express or Web Developer Express after uninstalling VB & SQL
After uninstalling all the pre-release Beta programs, I am unable to install Visual Basic Express or Web Developer Express. I receive the following message: You must uninstall all pre-release products in a specific order before you can continue with setup. I don't recall if I uninstalled all the betas in the correct order or not. The unisntall tool does not work. There are no directories or files that I could see. Don't know where the problem is. Thanks everyone for helping me resolve my problem. I finally used the MsiInv from Aaron Stebner's WebLog to gather information about what is installed on my computer and cleared ...Show All
Audio and Video Development How to output 2 streams into evr
Hi, all: I know EVR can mix two streams into a single frame. But when I create such topology and call start, I get a error code: MF_E_TOPO_UNSUPPORTED. So I have two questions: 1) How to create such topology about mixing multi-streams into a single evr 2) Due to async programming style, it is hard to find out which step cause error. Is there any way to know the details when I get a error code from the Invoke function Thanks. Although you are correct that the EVR does support multiple streams of input, the Media Foundation pipeline does not support this EVR feature in Vista. Therefore, I'd guess that your error stems from the fac ...Show All
Windows Forms Get the version of setup
Hi, I want to get the version of setup and save it to xml file for future using. How can I do this Thank's Alexei Hi, I have found how to use this objects: Code in function: WindowsInstaller.Installer installer = new WindowsInstallerClass() as Installer; string pname, ver; foreach ( string prod in installer.Products) { try { pname = installer.get_ProductInfo (prod, "InstalledProductName"); if (pname.Trim().ToLower().Equals(ClsConfig.getAppConfigS("Title").Trim().ToLower())) { ver = installer.get_ProductInfo (prod, "VersionString"); this .lblApp.Text = this .lblApp.Text + " ...Show All
Windows Forms Embedd froms and design-time issues
I've written a control that enables me to embedd other forms in it. The problem is that the embedd form seems to run in run-time inside it's host, at design-time (ie. Textboxes can be filled, buttons can be pressed etc...). I don't really mind about that (I can always do 'Enable=false' on the embedded form to prevent this), but i would like ...Show All
Visual Studio Files automatically checked out in visual studio
Hi I uploaded the code into Visual Source Safe using the source control option in File Menu of Visual Studio. From then on whenever I try to open the code in Visual Studio it is automatically checking out the code. Is there any way from me to turn that feature off. I mean I would like to open the code in Visual Studio without the code being checked out in VSS. Thank you. -V Files should not be checked out automatically unless you start modifying them. If you'd like to always be prompted before file is checked out then set following options to Prompt for Check Out: Tools->Options->Source Co ...Show All
SQL Server Help! Report Model Project doesn't like my primary key
I'm creating a report model in VS2005 I've created my data source fine and I have selected all the tables I want in the report model data view. The problem is that for one of the tables it is refusing to acknowledge the promary key. If I try to create the report model it compains that the table doesn't have a primary key. So I went into SQL Management Studio and checked the table, Lo and behold the primary key is there!!! I tried droping the primary key and recreating it but it still says there is no primary ley on the table. Any ideas ! Just did some fiddling and managed to find the problem. There is a Uniq ...Show All
Visual Studio Team System Can I undo / discard a checkout from source control explorer?
Hello, This issue may have already been visited, but I haven't had any luck searching for a solution. Here's my problem: I had a contractor working on my project for quite some time in the early phases. When he left he left files checked out in his Workspace on his desktop. The effect of this is that Source Control Explorer listed a pending change for him dispite the fact that he has been gone for months. How can I discard his pending changes How do I delete his workspace Background: - TFS B3R on VMWare Server - Single server install Thanks as always, Graham If you want to use a friendly name ...Show All
Smart Device Development Display a RTF file with InkX
I don’t know if it’s possible to open and show a .rtf file with InkX. I’ve tried with the example of http://www.opennetcf.org/Forums/topic.asp TOPIC_ID=286&SearchTerms=Inkx,control but when I open a .rtf file it doesn’t show correctly, I need your help!! could you show me a code sample I don’t want to use Intelliprog’s richInk, and I’m using Visual Studio 2003 with c# building a PPC program. thanks ...Show All
Windows Forms Export to Excel from Datagrid?
Hey everyone, this is my first post here, so I'll get right to the point. I need to determine the best way to export data in a datagrid or dataset from a VB.NET Windows Form application directly into Excel. I was able to find reasonable ways using Webforms, however have not found any except using the clipboard which is not practical in my case.&nb ...Show All
Visual C++ Value Sorting
Okay now that I have got the whole fstream working I now need to compare values with each other from 2 dat files and output all values in order to one file. I have no clue where to start on comparing, I know im supposed to use pointers(&) on this. So my first ifile01.dat contains the following in this order: 2 22 16 11 9 My second ifile02.dat contains these value in this order: 26 1 8 21 13 They need to be outputed in this order to the last ofile.dat: 1 2 8 9 11 13 16 21 22 26 Basically you want to put the values into memory, just run once through the file keeping a count of how many lines you've read. Allocate the memory using the ...Show All
Windows Forms How to set scrollbar size while autoscroll property is true ?
HI, I am new in C#. I have one form in which my autoscroll property is true. I want to set the Height & Width of the Horizontal & Vertical scrollbar when it is displaying. Can any one suggest me how to do it. Thnaks ...Show All
Visual Basic ActiveX License problem
Hello all, I recently purchased Visual Basic .net 2003 and installed it. I am working on a project where I need to use the serial port to communicate with a remote device. I added the 'Serial Communication' to the toolbox sucessfully. However when I try to add the 'serial communication icon' to my form I received an error message that I do not have a license for this application. Any ideas what my problem is I don't know if this is relevant, but I did have a problem installing VB.net. I have an epson cx4600 printer. When I used the autorun feature from Disc 1 and tried to install VB.net, the printer scan application would open and t ...Show All
