rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr's Q&A profile
Visual C++ Length cannot be less than zero. Parameter name: length
I am getting this error "Length cannot be less than Zero". After this error occured the application stops working and this same error messages gets displayed in all the pages. If i replace the dll files again then the application starts working again. I am pasting the complete error message below ------------------------- Length cannot be less than zero. Parameter name: length Description: An unhandled exception occurred during the execut ...Show All
Windows Forms Need a Thread... I think
Hi folks. I've written Windows Form application that copies files. I've noticed that when I give it a large number of files, it stops responding until the copy is complete. How can I put the copy method into a thread so the main gui remains usable Additionally, as the thread copies, I would like to send updates to the Form to show what file it's currently copying and increment a progress bar. I gather a thread (in managed C++) is what I need - c ...Show All
SQL Server DATEDIFF in Report Builder
I'm having a bit of trouble with the DATEDIFF function in my Report Model project and in Report Builder. I am trying to create a new Expression field that will work out a persons age from the current date and their Date of Birth, here is the formula that I have entered, DATEDIFF("y", NOW(), DOB) where DOB is the field that holds the persons date of birth in the database. When I enter this into the formula box and click OK i get the following e ...Show All
Windows Forms Problems with Imagelist control
Hi, I have a problem with the Imagelist control. I have added the control to a form and added a number of Images to it (Images collection). I am then using the following code to display the Images : Dim X, Y X = 10 Y = 10 Dim theGraphics As Graphics = Graphics.FromHwnd( Me .Handle) For Count = 0 To (ImageList.Images.Count - 1) Me .ImageList.Draw(theGraphics, X, Y, Count) Application.DoEvents() System.Threading.Thread.Sleep(10) ...Show All
SQL Server Complete list of error codes
Does anyone know where to obtain a complete list of error codes which can occur in SQL Server For example : errror number 547 is a foreign key violation - where can I get a complete list of these numbers and there descritions I can't find it in BOL or anywhere In BOL type in 'errors-SQL Server' in the search box in the index tab and they are listed starting with Error 10008 (DB-Library) you can also ...Show All
Windows Forms Master-Detail Datagrids
I need to create a Master Detail form with two Datagrids for two tables, but also bound a textboxes with the fields info for each row when the user click the Parent Datagrid. How I can do it Thanks You will have to ...Show All
SQL Server SP3 & SP4 not upgrading on SQL Server 2000
When I run SP3 & SP4 for SQL Server 2000 it runs okay. I get no errors after the installation & both installations call for a reboot which I do with no problems. But yet when I get back into my machine, go to the Query Analyzer & run " Select @@version " and execute it, it's still showing v8.00.194 (Original release). It should be showing 8.00.2039. Any ideas or suggestions Thanks! ...Show All
SQL Server Administering SQL
In SQL Server 2005 to administer all aspects of SQL is there any way a non local administrator can do this We are trying to remove the DBAs from being local administrators over the SQL server machines in SQL 2005, we were able to do this in SQL 2000 but SQL 2005 is not working correctly. We want to make the DBAs a member of local power users and assign the specific rights for it. Can this be done, if so how is there a document I can referen ...Show All
Windows Forms Creating Custom Explorer Bars, Tool Bands, and Desk Bands (The .NET Way)
i've seen the samples at microsoft <a href="http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/bands.asp frame=true" target="_blank">Click here</a> but, this seems to be a very old and outdated way to do it, which i am not& ...Show All
.NET Development How can I Add/Update/Delete ConfigFile in windows Application 2.0?
Could somebody help in writing a routine to Add/Edit/Delete a config File in 2.0 Lets suppose I have the following Config File < xml version="1.0" encoding="utf-8" > <configuration> <connectionStrings> <add name="Connection1" connectionString="Data Source=MYSERVER;Initial Catalog=Pubs;Integrated Security=True" providerName="System.Data.SqlClient" /> <add name="Co ...Show All
Visual C# Pass paramters to applications when executing?
Hi, How do you pass a parameter to an application when executing an application E.g. "MyApp.exe -parameter". Thanks, Weiran. Create a shortcut to the exe and add the args to the target line of the shorcut's properties. ...Show All
Visual Studio SS 2005 Get and Get latest error
im using vpn to connect to SS database , via drive mapping and then set up https access to source safe 2005 successfully and its working perfectly. Now I can work while disconnected from VPN The only problem is that when I select the project and click get or get latest, the error appears saying , --------------------------- Microsoft Visual Studio --------------------------- The current source control operation cannot be completed. The ...Show All
.NET Development Can I apply an attribute at runtime?
Hi all, As you might have noticed some attributes are supported only on a limited number of flatforms and/or os versions, so I am trying to apply those attributes with caution. I can achieve this by using conditional compiling with some symbol defined ... However, in such an approach, I have to re-compile my file on every platform and/or os version, with different symbol definitions ... I just wonder whether there is a wa ...Show All
.NET Development Implicit Conversion ... in copying the value of ByRef (VS.2005)
Hello, I'm going thru the warnings in my source code and I don't know what to do about this one. The error message is as follows: "Warning 11 Implicit conversion from 'System.Object' to 'System.Windows.Forms.CheckedListBox' in copying the value of 'ByRef' parameter 'obj' back to the matching argument." The line that triggers the error is the following: Dim sSql As String sSql = " ...Show All
Visual C# Writing a basic shell extension.
Looking to write a basic shell extension and can't find where to look for this info. I would like to write an extension that is added into the context menu in explorer so that when I left click on any file or folder, one of the options is my program. Also, is it possible to execute command line statements in C# - Chris homerc44 wrote: Looking to write a basic shell extension and can't fi ...Show All
