New Guy's Q&A profile
Visual Studio Team System Deployment location option no longer there under test configuration
Hi, We just upgraded to RC1. When I open up a test configuration file in the IDE and edits its properties, there no longer is an option where you can specify where you want your test projects to build. In the previous versions, you could specify an output path if you selected Deployment, Deployment Location, User Defined Directory. The entire Deployment Location frame is missing in RC1. It seems to honor a user defined output path if it was brought over from the previous version, but you cannot see it in the UI, nor can you change it in the UI. I don't want the tests to build to the default location, and was wondering how you can specif ...Show All
Windows Forms Where can I find some free icons
Does any one know where I can download a free set of icons for business application for use with the buttons and menus Wow, These icons are great. Thanks for the tips. ...Show All
Smart Device Development Fullscreen with keyboard pad?
Hello, Form.WindowState = Maximized works only if there is no menubar and no statusbar but i realy need the keyboard icon. is there any way to have fullscreen and keyboard icon Or a workaround for calling the keyboard pad, is there a pinvoke call for this You can p/invoke the keyboard by using this function: [ DllImport("coredll.dll")] private static extern bool SipShowIM([In] int dwFlag); ...Show All
Visual Studio 2008 (Pre-release) "yield enumerate"...
(Slightly off-topic, but it at least deals with enumerations.) Lately, I've found myself using the following pattern: public IEnumerable<T> Foo(IEnumerable<T> values, IEnumerable<T> moreValues) { foreach (T t in values) { yield return t; } foreach (T t in moreValues) { yield return t; } // more yielding } For example, if I want to maintain the sanctity of values, but catenate another set of values (checksums, e ...Show All
SQL Server Unable to retrieve Column information when using Ole Db Provider for sybase
Hi All, I am in process of transfering data from Sybase to Sql Server using SSIS 2005 have taken a Data Flow Task in Control Flow tab In Data flow tab, I have taken one Ole DB Source and One OLe DB Destination For the source, I am using Sybase Adaptive Server Anywhere Provider 8.0 For Destination, I am using Sql Server 2005 database In Ole Db Source Editor , For OLe Db Connection Manager, I choose Sybase Connection For Data access mode, I choose Table or View For Name of the table or the view, I choose a table by name Table1( it lists all the tables from Sybase database) When i click on preview button or Columns link ...Show All
Windows Forms Closing/Opening/Switching Forms
Ok im sorta new to VB 2005-im used to 6.0. How would I write this 6.0 code in 2005 : (this code is executed from Form1 to go to Form2) Load Form2 Unload Me Form2.Visible = True all this does is switch between 2 Forms, but i dont kno how to do it in VB 2005! could somebody please help! You can set your project up to support more than one main forms. Your other option is to impliment your 'main' forms as user controls and switch their visiblity on the main form. ...Show All
Visual Studio Tools for Office Dialog pops up again after closing it
Hello, I have a commandbutton which when pressed opens a dialog. Sometimes, when pressing ok or cancel, the dialog pops up again. Using the debugger, I see that the method handling the commandbutton event in these cases, first is called and upon exit it is called again. The dialog pops up sometimes 1, sometimes 2, and sometimes 3 or more times (less likely). Any ideas This is the commandbutton: editEntity = CreateNewButton(entityContextBar, 6, editEntityCaption, 6754, new Microsoft.Office.Core._CommandBarButtonEvents_ClickEventHandler (this.EditEntity_Click)); CreateNewButton method: private Core.CommandBarButton Cre ...Show All
SQL Server SqlCeConnection guidelines - keep it open?
What is exactly the recommended way of using a SqlCeConnection object in your application In all the examples I see (IBuySpyDelivery for example) it opens the connection object in the constructor and leaves it open most of the time until the class gets disposed. Is that the way to do it Or should you open and close the connection for each database action (insert/select/delete) you're doing on the local SQL Mobile database I'm a bit confused, but maybe I'm messing up the way of working on remote database servers with how it should be done on a local SQL Mobile db. Do you use it within more threads an ...Show All
Windows Forms DataSet and Tables
I would like to know whether a single DataSet should be used for the whole application The reason is I can't see any points that I should use multiple DataSet instead of single one. (Certainly, it's in my case. Any counter example is certainly welcome.) Moreover, I found it impossible to make relation between tables in two DataSets. So, is there any drawback of having a single DataSet instead of multiple ones I found that I've created more and more DataSets in my application and it seems that a single one is better. Hi! All depends on your skills and your task. Single dataset is good when all data that it contains is constantly u ...Show All
Windows Forms Store Objects In A Control - Like Outlook E-Mail
I need a control where I can drag and drop objects into it (i.e., files, e-mails, pictures) and I'd like it to work like an e-mail works in Outlook. In Outlook, I drag a picture into the e-mail and it because an attachment and displays itself in that e-mail as an icon. If I drag another e-mail into the e-mail, it is now an attachmen ...Show All
Visual Studio Report Source not Valid when using Remoting/Netrun
Hiya! We are using Remoting for an application, and have integrated Crystal Reports. Currently we export the crystal report as a byte array from our business objects and write it to a file using a filestream. This works perfect in local and debug modes. When running thru remoting, however, we get a message "Invaid Report Source". The file IS being written... just cannot be read by the crystal report viewers load method. If anyone out there has any ideas, please share! This problem is driving my whole dev team nuts. Any help or sharp kicks in the right direction greatly appreciated! Dave Borneman Triad Business Group ...Show All
.NET Development "The request failed with HTTP status 401: Access Denied"
I am currently developing an ASP.net web application to consume web services, but am having an error message on the ASP.net web application whenever i try to run it. The message says " Server Error in 'Client record application', "The request failed with HTTP status 401: Access Denied". How do i resolve this To add to kbradl1 's perfect resolution: You are getting this error because your web service needs Authentication and you are not providing the same when you access the web service. The Two solutions for the above problem is Enable the anonymous access of the Virtual directory in the IIS (inetmgr. ...Show All
SQL Server SQL CPU Loads?
What kind of actions does consume most of the CPU joins,triggers,inserts...etc where can I find a matrix that shows such as this action consumes this much of CPU All this depends on your database implementation (indexing strategy, type of queries, table size, table design, etc.). There is no fixed cost for these things. WesleyB Visit my SQL Server weblog @ http://dis4ea.blogspot.com ...Show All
Visual Studio 2008 (Pre-release) ServiceEndpoint collection empty from WsdlImporter
Hello, running the following code I get two different results: EndpointAddress epr = new EndpointAddress(" http://localhost:8080/GreetingService "); MetadataResolver resolver = new MetadataResolver(epr); ServiceEndpointCollection eps = resolver.RetrieveEndpointsUsingHttpGet(); Console.WriteLine("/** Endpoints **!/"); foreach (ServiceEndpoint endpoint in eps) { Console.WriteLine(endpoint.Address); Console.WriteLine(" " + endpoint.Contract.Name); Console.WriteLine(" " + endpoint.Binding.Name); } WsdlImporter importer = new WsdlImporter(resolver.ResolvedMe ...Show All
Windows Forms Datagridview Exception: column does not allow null
I have a datagridview(dgv) control which is bound to a typed dataset. There is a hidden column called "ItemId", it is a not null column in database, this is used when update the data in dgv. Now, when the application is start and I create a new application, the dgv is empty and user need to type in data in the dgv. However, when I finish editing a row, and try to exit out from the row, I got an Exception "Column ItemId does not allow null". What should I do to allow the dgv to ignore the null ItemId Thank you in advance. Hi Terrence, I don't think it's possible to by-pass it unless you' ...Show All
