campwes's Q&A profile
Visual C# How do I create a simple table in C#
Hey, Iam designing a inventory software, and I need to make a table that shows the item number, description and price of each item. Iam not using any databases, just want to store all the info in 1 file. Whats the best way I can do this in C# First of all, thanks to everyone that his helping me, its been really helpful from all the information you guys have shared. And secondly, this XML thing as really taken care of my inventory problem. Now another part of this business project that Iam doing is the Invoicing part. I designed a simple form with a datagrid, but this time I want to make the datag ...Show All
Visual Studio Team System TFS Extensibility Problem (Microsoft.VisualStudio.Currituck.Proxies.DataServices)
Hi: Anytime I try to run the samples in Visual Studio 2005 Team System Extensibility Kit Beta 2 I got a FileNotFound exception related to "Microsoft.VisualStudio.Currituck.Proxies.DataServices". I was looking for that assembly in all the folders in the kit but i could not found it. Thanks in advance The proxies.dataservices.dll is supposed to be installed in GAC. Can you check to make sure it is there Probably somehow it got removed from GAC. You can use FileMon to see where it tries to load that dll and if it is present in at least one of the paths. You might have to reinstall Team System to correct the mis ...Show All
.NET Development End Asyncronous Task?
Is it possible to end an asyncronous task before the actual end criteria has been met I'm desperate! If you really need to end an async task immediately you can close the socket or, if you are using FTP or HTTP web request you could dispose the object. ...Show All
.NET Development WSE 3 and x509 certs
I am not sure if this has been addressed some where already... I want to secure web service calls used by about 40 pc's the pc's are locked down to have limited user functions. is there a way I can update my smart client app and have the clients use my secured web service -- where I see a possible problem is that I can't allow the clients to open web browsers and accept the x509 cert. we will use a private cert server so that the only authorized pc's can call the web services. I am thinking of using the "UsernameForCertificateAssertion" policy so the client just needs to have the servers public ke ...Show All
Visual Studio Team System Getting Code Coverage to work
Hello! I'm sorry if this has been asked many times before but I tried to look for an answer but only got alot about web tests. I've just followed this article: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/vstsunittesting.asp by Mark Michaelis and everything has worked great, but when I try to use code coverage (by right clicking on a runned test and choosing code covering results) I get the message "Code coverage is not enabled for this test run". I tried to go into localtestrun.testrunconfig, choosed "code coverage" to the left and then added a checkmark infront of VSTSDemo.dll and clicked ...Show All
SQL Server Database is read-only.
Hi I have been learning on how to use the new features of the .NET 2.0, and Well I using VS2005 and everything is pretty straight foward. I did a Membership webform where you log in and create users and roles etc. I installed the SQL Server 2005 express as my Data provider and thats where my Tables are. I used the aspnetsql_reg comand to integrate the server to this application. Anyway my problem started when i decided to copy my project to my IIS server and well when I run the app from the Browser tells me that he Database It's set to Read-Omly and therefore it cant update it. This happens right after log in. but then I open ...Show All
SQL Server AcquireConnection returns null
Hi, we are facing some issue to get the underlying OledbConnection from the runtime ConnectionManager. below is the code sample that we are using IDtsConnectionService conService = (IDtsConnectionService)this.serviceProvider.GetService(typeof(IDtsConnectionService)); if (conService == null) return; ArrayList conCollection = conService.GetConnectionsOfType("OLEDB"); for (int count = 0; count < conCollection.Count; count++) { string conName = ((ConnectionManager)conCollection[count]).Name; if (conName == conMgrname) { conMgr = DtsConvert.ToConnectionManager90((ConnectionManager)conCollection[ ...Show All
Visual Studio Team System Getting frustrated with red "X" on documents folder
I am at a loss as to why the Documents folder insists on displaying a red "X" in the Beta 3 Refresh. I have granted myself admin privilages but it seems to have done no good. Anyone know what would cause this Please let us know if you have upgraded to RTM and if this is still a problem. ...Show All
Visual Studio 2008 (Pre-release) Why Close a proxy?
Hi I know that as a best practice we should call ICommunicationObject.Close after using a client channel. What are the real consequences of not calling Close/Dispose In what i understand, it depends of the binding, right, like if we're keeping a transport channel opened or not, is that correct thanks! I am using the FEB CTP. As I typed proxy. the IntelliSense selection did not contain a Close method. So I blindly followed the example and added Close(); I noticed a small box under the .Close() portion of the statement. As I moved my mouse over the box it asked if I wanted to generate the method As this is BETA I f ...Show All
Visual Basic Undoing record changes
I have a list box and a set of text boxes bound to a dataSource (or something like that:-) The list box is used to navigate. Everything works just find - add, delete, edit, etc. HOWEVER, I haven't quite figured out how to make the undo button work:-( It will have two modes. 1. If not editing then undo all changes since last Accept. (You can delete or edit multiple records and undo all the changes. I still have to put in code to allow moving record to accept changes as an option to hitting the accept button.) 2. If editing then undo just the changes to the currently being editted thingie. (I'm being vague here because perhaps if i knew ...Show All
Windows Forms Rowfilter and child tables
I'm having trouble filtering data which depends on a record in my child table. First I will give you some information, so you can better understand the situation: two tables: ds.Tables["TestData"] (parent) and ds.Tables["TestHistory"] (child) relation: RelHistoryTest i'm working with rowfilter, but now I don't know how to make the wright filterquery, I want to filter on the childrecord lognr: i've tried this: Child(RelHistoryTest).Lognr LIKE 'BR3' That didn't work, so I searched the internet and found that with 'child' you have to include an aggregate function (because it can return multiple rows). But my c ...Show All
.NET Development Insert Row
Insert Row In vs 2003 I had a form that was a mixture of textboxes and comboboxes. The comboboxes had datasources, etc. I was able to verify that the contents of all the controls were valid. If so, I created a dataadapter, then a dataset, and added a row, all in code. It was cumbersome, but worked. I want to reproduce the behavior in vs 2005. The same code obviously won't work. I searched through the msdn 2005 documentation, and came across some hints, but no examples. It involved a datatable with queries orther than select queries: Insert Results Creates new rows by copying existing rows from on ...Show All
Visual C# How can I change the computer resolution when my program starts?
I'm having a problem when I install my apps to a computer with less resolution, my customized forms does not display all the buttons especially the ones at the bottom. I want to set the resolution at run-time, how do I do that Please help. Whilst I'm sure there's ways of doing this, my simple answer would be: don't. Not under any circumstances. You have no idea why people have the resolution they do. They may have eyesight problems, requiring a lower resolution, they may have restrictions from their graphics card, or even other programs. Rather make use of the Anchor and Dock properties to have your controls automatically resize at ...Show All
Windows Forms Is this a timing Issue with the datagrid column?
I've got a treeview and a datagrid on a windows form. When the user makes a tree selection, I populate the datagrid by creating a dataset and setting the grid's datasource to it. I also hide some of the columns by setting their width to zero. This is all within the tree's 'After_Select' event handler. However, sometimes when you select a tree node, you ...Show All
Visual Studio Tools for Office ClickOnce deployment for application-level Smart Tags
Dear all, I have created an application-level Smart Tag dll using Visual Studio 2005 by implementing ISmartTagRecognizer, ISmartTagRecognizer2 and ISmartTagAction, ISmartTagAction2. I have also successfully created a Windows Installer setup package to check for prerequisites, install the DLLs, create required registry entries and grant CAS trust to the assemblies. However, I would like to make updating of my application painless like ClickOnce-deployed applications (automatically check for the latest pulished version). Is there a way for me to do that Any suggestions are highly recommended. Thanks. HDH. ...Show All
