robincurry's Q&A profile
SQL Server Bulk Copy Program
Hi, can anyone show me a link to a bcp return values table please I have tried googling, but rather than getting info on lookup tables, I'm just getting articles on how to use it :( tia, hi, yes, probided that the text file is delimited such as CSV or (comma separated values) and then importing them to their corresponding fields in the table. But, if you are up to loading the the entire text file as a single BLOb (binary large object) this is not the tool. regards, joey ...Show All
Windows Forms Accessing component from another form
Hi all I'm totally new to Visual Studio , coming from Delphi . My question, I'm sure is pretty trivial. I'm using C# I have a component class (Project/Add Class/Component Class). In this component class, I drop an ImageList. Now, in my main form, I put a button. I would like to define the ImageList property of my button to be the one created in the component class. I can achive this by code but I want to define visually (at design time) the property so I can select the ImageIndex property before compiling. You cannot do this except using code. Phil Wright http://www.componentfactory.com Free UI control l ...Show All
Visual Studio Team System Installing without AD? Using ADAM? (Error 32000)
I followed the instructions for installing TS to the letter, but when I try to install it on the application server, I get the error: Error 32000. The commandline "C:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\bisdwserver\bin\SetupWarehouse.exe" -n -s "SERVERNAME" -d BisDWDB -c "C:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\bisdwserver\bin\Consolodated.xml" -a "DOMAIN\TFSSERVICE" -v -l "..local..\Temp\SetupWarehouse.log"" returned non-zro value: 3. If I check the LogFile, it says: If exists(select name from Sysdatabases where name='BisDWDB') begin exec ('alter database [BisDWDB] set ...Show All
Visual Studio Team System How to rename Work Item Type?
Maybe someone knows if there is a possibility to rename work item type Thanks You could always just export the work item type to XML, rename it then re-import it. You would still have the original work item type (unless you wanted to go all the way and create your own guidence) but you would have the work item type you would want. Not ideal, but it may get the job done... ...Show All
Visual C++ is it x64 (?)
Hi, I have a AMD opteron machine on which i have installed Windows 2003 server. The systems information displays it to be a X86 Based PC!. Also programs compiled on visual studio 2005 Beta2 for x64 fail to run on the same machine. Message from one of my test programs.. "C:\MntFSWin64\Hex_dump2\Hex_dump2\x64\Debug>.\Hex_dump2.exe The image file C:\work\imk\MntFSWin64\Hex_dump2\Hex_dump2\x64\Debug\Hex_dump2.exe is valid, but is for a machine type other than the current machine." The dump of my machine configurartion is " C:\Documents and Settings\khani>systeminfo Host Name: &n ...Show All
Visual C# Moving a shape with mouse
i 'm new in C# but i have an old hope to make a program using shapes and figures and moving them with mouse. my problem is : is there a way to restor previous image or background after moving the figure, like a CAD software does !! Thanks X 10000. Howdy, This depends on the scenario you are in, but everything is possible. You need to override the OnPaintBackground method of your form or control and set comment out the base update statement. You should be overriding the OnPaint method at any rate, and its in here that you should be calling the Clear method from your graphics context. So an example might look like the following: ...Show All
Windows Forms reference a control in another (form) class?
How do I reference a control that exists on a form that exists in another class I have: class UserControl, class Mainform Usercontrol is used in Mainform form, and I reference controls embedded in the UserControl from the Mainform by setting their visibility to Internal Protected. From a UserControl (usercontrol.cs, class usercontrol) parented in Mainform, I want to reference a different control in Mainform. The parent form is the main app, so it's created by the program.cs Application.Run(new Mainform()). I've change the modifier in the properties of the control I wish to reference to Public, Internal, Internal Protected, but ...Show All
Visual Basic Controlling input to an input box
Im a beginner to VB and I would like to know how or if I can allow the user to only enter the numbers 0 to 10 in an input box. This is for VB.Net btw. I've attached the code if that helps Thanks alot Private Sub uiCalcButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles uiCalcButton.Click 'calculates and keeps track of average score and number of scores entered 'delclare variables Dim score As String Dim scoreCount As Integer &n ...Show All
Visual Studio Express Editions Problem with programming... can't access design view/code
Quick question or two, I have used v2002 90-day trial in past, currently have 2003... and I'm looking at installing 2005 ASAP. In the past, I installed beta 2 of the Express ver, and I have confirmed it is gone, so that old problem is solved... I have one program created in Express (the Sudoku example code) that I want to compare to my own pseudocode I wrote up and try running it as well in a different language...etc...normal coding. Here's the question(s).... 1) Does the Standard version of MS Visual Studio .net 2005 contain all that is needed to run programs already created in the Express version.... ( y / n ) In other words, is MS V ...Show All
Software Development for Windows Vista Needed help with Drop Down Box
Hi Everyone, Needed help in cracking this: I have a Drop Down Box List on an IE page, which has a list of values. Now I have an Excel Sheet which has values that match the values on the Drop Down List. I need to pass the values from the Excel Sheet to the Drop Down List on IE page. I tried sending Keystrokes to get the value on Drop Down Lost selected, but it becomes very hectic because that needs to be done for each and every case on the Drop Down List Box. Is there a possible way where the value from Excel Sheet can be passed on the Drop Down List on IE page, so that the proper selection can be made directly Regards, Krisn ...Show All
Visual Studio Team System Ghost projects
2 weeks ago I had some problems creating projects from a remote location. The problem never really got solved but I can live with that for now. The problem is that the few times that I tried creating a project, the process halted with an error saying that it might not have been able to roll back all changes. Now my question is. The projects that I created doens't show up in the Team explorer but Source Control has entries for the projects and I'm not able to remove them. Likewise if I look in security settings new users was created for the projects. As with the Source control project I'm not able to delete them as well. Does anyone hav ...Show All
Visual Studio 2008 (Pre-release) Error in DLinq when using Entity associations
When trying to execute the following block: ServiceReceived sr = new ServiceReceived(); sr.ServiceEntity = this.serv; sr.StayEntity = this.stay; sr.ColServiceDate = ctrlServiceDate.Value; sr.ColServiceCount = Convert.ToInt32(cmbServiceCount.SelectedItem); DLINQ makes a mistake by inserting a new Service record and a new Stay record in the database and then associates those newly inserted records with the ServiceReceived record, instead of using the existing ones assigned in the bold sections above. However, if I instead use the primitive id values: (); sr.ColServiceId = this.serv.ColStayId; sr.ColStayId = this.stay.ColStayId; ...Show All
Visual C++ Frequent IDE freezing
When working on a large C++ project the IDE frequently (approx once every half hour) freezes. It's been doing it since I started working on it when it was released, but I was never able to find a specific cause that triggers the problem but it seems to be related to browse information and/or intellisense. It happens more frequently when editing .h files that are #included by a large number of source files. The IDE freezes, the cpu stays at 100% (50% on an hyperthreading cpu). After a few minutes I usually kill the process. I've tried disabling the 2 Statement completion options in the Options/Text Editor/C++ dialog box but it ...Show All
Visual Basic Need help with answers
I am making a program that is like a mathmatics quiz with simple questions, I was able to make the program so that you press on a command button and it asks u a question, i then have four check boxes, and i dont know the code to let the computer know which answer is the right answer and tell it to say correct or incorrect in the picture box. Lets just say checkbox1 is right.. i wrote Command1 __ click picture2.print "2x2" picture1.cls If checkbox1.value then picture1.print "correct" else if checkbox2.value then picture1.print "incorrect" end if end sub it keeps telling me something is wrong or it just writes correct in the picture ...Show All
Visual Studio 2008 (Pre-release) An Existing Connection Was Forceably Closed by the Remote Host
I've just gotten WCF to begin working. I have about 15-20 different services - all of these were previously running as web services without a problem and I've just finished converting them all to run under WCF. All of the services except one are running fine under WCF. The one that is not running is giving me an error that says: System.ServiceModel.Communications Exception: An error occurred while receiving the HTTP response to 'http://....' Unable to read data from the transport connection. An existing connection was forceably closed by the remote host. All of the other 15-20 services are working without error and all use e ...Show All
