Jason Walker's Q&A profile
Windows Forms Develping a Incremental Search Dialog in .NET
Hi, The problem I am facing is I have a Data-grid and the menu item in the context menu opens up a Search Dialog(similar to Eclipse). It is used to search in a particular column in the data-grid. One option it has is "Incremental Search". It means as you would go on entering a letter in the textbox in this dialog, it will search in the data-grid. But the problem is, the moment I enter my first letter in the find dailog, it appropriately searches but it moves the "FOCUS" from this dialog to the grid and again I have to move my cursor to the textbox in this "Find" Dialog to start the search again. Because of this focussing problem betwee ...Show All
Visual C# prefix and postfix unary operators
How can I make prefix and postfix unary operators (in c++ I can write like this: TYPE operator++() //for prefix and TYPE operator++(int i) //for postfix) I don't understand. How + and - connected with ++ and -- Can you write sample I can write only TYPE operator ++ (TYPE) ...Show All
Visual C++ How to regenerate Intellisense database?
I am using Visual C++ Express Edition Beta 2 How can I regenerate the Intellisense database for a project It's always showing old, not up-to-date, suggestions. ...Show All
Visual C# Service Setup project does not install service KB816169 does not work
I followed every step in KB 816169 and after I create a servicesetup project for my service and build the project, when I do the install, only servicesetup is installed an my service does not install! I can install my service through installutil.exe and works fine. What am I missing I have tried everyhting but somehow my output for setup does not add the service and all I see in add/remove programs is my "ServiceSetup" I am at the end of my rope and any ideas is greatly appreciated. I am using .net 2.0 and VS2005. Hi, I tested that's KB's walkthrough and the sample service has been installed as expec ...Show All
Software Development for Windows Vista MSDN Vista key fails
Hi I have just downloaded the December CTP 5270 build from my MSDN subscription but the Product key provided on MSDN doesn't work, I have read that I need a new code for this build does any one know when this will be published on MSDN Regards Steve Still not work on my "REAL" hardware! The key works on my 5231 build. :-( How should I contact Microsoft to resolve this problem Thanks! ...Show All
Visual Studio 2008 (Pre-release) Is there a possibility to increase the SqlCommand execution timeout?
Hello! Is there a possibility to increase the SqlCommand execution timeout Best regards, Henrik Dahl Currently there is no way to get to SqlCommand object. It is a good suggestion that we will look into. Thanks. Dinesh ...Show All
Visual Studio Team System Package Load Failure Error every time starting VS2005
Hi, I have just uninstalled (using the tool) VS2005Beta2 and installed VS2005, and I get the following error message every time I start the program: Package Load Failure Package 'Microsoft.VisualStudio.TeamSystem.ELead.ServicesHostPackage, Microsoft.VisualStudio.TeamSystem.ELead.Client, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has failed to load properly ( GUID = {8E01EC3E-2928-4AA5-B720-E28C163818E6} ). Please contact publishing vendor for Assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in future You may use 'devenv /resetslip ...Show All
Windows Forms Can we set default datetime by using XSD Schema file
If I specify a default value in an .xsd-File like this ... <xs:element name="element1" type="xs:dateTime" minOccurs="0" default="2004-02-10T00:00:00.0000000+01:00" /> .... and try to build a dataset with xsd /d Dataset.xsd, I receive an "value doesn't fit the datatype" error. I tried with other formats like "2001-01-01" or "2000/01/01" and get the sam ...Show All
Windows Forms Shell into my Windows Database App using preselected data
I have a vb.net Windows App that I would like to preload from a run command or a desktop short cut with preselected record data and have that data show up in my app at start. Bottomline is that I need to shell out of one program and into mine and start with that data inplace. I have a SQL backend if that helps. Any ...Show All
Visual C++ How to redistribute multiple VC dll's?
We have a product that was written as 32-bit libraries and executables. We are adding 64-bit support by building key libraries and executables with both 32- and 64-bit versions, however certain utilities are only available in 32-bit versions. On most other platforms we support this is not a problem as 32-bit and 64-bit libraries can co-exist. However, we are not sure how to handle the C runtime library (msvcr80.dll). Our own libraries are named differently for the 32-bit and 64-bit versions and so do not have conflicts. The question is, how can we redistribute the C runtime library (msvcr80.dll) in both its flavors so that customers can run ...Show All
SQL Server Question about SQl Server proformance based on Datatype
Hi all , I have a generic question about the table columns And its data type. As per most of the sites and forums : - This is advisable that we should keep the Numeric data type (int , Bigint ,smallint ) for the columns and not char Data type to gain or boost Query performance. Now see example below :- Table A : A_col_1 Int index R ow count 1000000. Memory used 1000000 * 4 bytes Table B : &n ...Show All
Windows Forms How can I return the method that is called when an event is raised ?
How can I return the method that is called when an event is raised System.Reflection.EventInfo.GetRaiseMethod does not work. In a designer you can get from an event descriptor to the method through the event binding service, see documentation at: http://msdn2.microsoft.com/en-US/library/system.componentmodel.design.ieventbindingservice(VS.80).aspx Use TypeDescriptor.GetEvents to get the event descriptors for the object. The IEventBindingService.GetEventProperty method returns a property descriptor for a string property, the valu ...Show All
Visual Basic Smaller Database
I have an application in VB 2005 Express with a SQL Server database. I added large amounts of data for debugging purposes. However, I want to ship an empty database, so I deleted all of my data, yet the database did not go back to its original smaller size. Is there a reason for this, or anyway to correct it Thanks -Aviatordave If it's a SQL database, just export the database shema. You can import the schema again into the new server. You dont' have to export the data (if any) The files are still big because the tables won't autoshrink. if they grew and shrunk automatically, it wo ...Show All
Visual C# compare
Hi how can i compare two text files i mean the text in these files For small files you can do this: using (StreamReader readerFile1 = new StreamReader(@"c:\file1.txt")) using (StreamReader readerFile2 = new StreamReader(@"c:\file2.txt")) { string file1Content = readerFile1.ReadToEnd(); string file2Content = readerFile2.ReadToEnd(); if ( file1Content.Equals( file2Content ) ) { // The files are equal. } } ...Show All
Visual Studio Express Editions Showing only one Row from DataSet in DataGridView
Howdy folks, Is it possible to show only one row or only a few rows from a dataset which has many rows If so, where can I get some info about how to do it Thanks much. hi, yes you can do so, you can use dataview , filter your dataview , bind the dataview to datagrid you can do the same thing by using bindingsource but use bindingsource.filter = "columnName = value" all that depends on which rows you want to display in the datagrid hope this helps ...Show All
