John Hutchison's Q&A profile
Visual Basic ToolStripMenuItem - Checked/CheckState differences
All is in the title ! I understand that Checked is a boolean, which is not the case of CheckState. I understand that CheckState also have a undeterminate possible value. But I don't understand why we have them both. I think that CheckState would be sufficient. What is the need for Checked Thanks for your help Patrick Well, the undeterminate CheckState property state would tell me that the user skipped the question. I do not need the checked property. I understand what you say, but you are trying to convince me about the CheckState property. I agree with that, what I say is : we do not need the **checked** p ...Show All
Visual C# call constructor of base class
hi! What's the correct syntax to call the constructor of the base class of a class Take a look at the following example. I want myClass1 to have a parameter-less contstructor which will call the constructor of myClass2 passing a hard-coded parameter value. What should I write in place of the question marks public class myClass1: myClass2 { public myClass1 { } } public class myClass2 P { public myClass2 ( int myParam) { } } Giving it some thought, there is a workarou ...Show All
Visual FoxPro How to copy files from a local hard drive to ftp server?
Hi! How will i copy files from a local hard drive to a certain ftp server and vice versa using VFP Do you know of a commands that will make this situation possible Any help would be greatly appreciated! Thank you! Regards, Alfred N. Roa check this FTP class written in VFP: ftp://mosvath.gotdns.com/bin/ftpclass.zip However I use FTPx from Mabry. I'm very statisfied with it. ...Show All
.NET Development The behavior of Enum.ToString()
I wrote this code. enum MyEnum { One, Two, Three, Four, Five, Six, [ System.Obsolete ] xTwo = Two, [ System.Obsolete ] xThree = Three, [ System.Obsolete ] xSix = Six, } MyEnum e2 = MyEnum.Two; string s2 = e2.ToString(); MyEnum e3 = MyEnum.Three; string s3 = e3.ToString(); As a result, s2 is "Two" and s3 is "xThree". Why s3 is not "Three" When you have multiple members with the same value it's unpredictable which one name will be returned by ToString. Changing the order of the members may help but it's still implementation dependent which string you get back. ...Show All
Visual Studio Team System tired about TFS ctp december 2005 and sharepoint services 2.0 with SP2
I'm tired from installing and reinstalling and reimaging and retrying of different setup scenarios. Fact is: I've tried over 3 full days and I did not suceed :-((( My configuration corresponds to the given checklists. I have installed a virgin machine with all required software packages including sharepoint services 2.0 SP2. The only maybe special thing is that I do not want to use Active directory because this is a test and evaluation machine only. First I got the Error 32000: from "...Microsoft Visual Studio 2005 Team Foundation Server\Tools\createds.exe" because I have forgotten to install Report Server while installing S ...Show All
Visual C# Looking for Book Recommendations for C# (was: hello)
hello i am interested in c#,but i known nothing about it. i want to read some book ,can you tell me what book is i need thanks TAG wrote: itisapple wrote: hello i am interested in c#,but i known nothing about it. i want to read some book ,can you tell me what book is i need thanks Nothing can be better then language specification: For C#1.0 = http://msdn.microsoft.com/net/ecma/ For C#2.0 (latest draft from April 2005) = http://www.dina.kvl.dk/~sestoft/ecma/ All books will be based on thouse documents and will only add huge useless screenshots and buggy examples. y ...Show All
Visual Studio access project files through automation
I have a custom macro that reads a file using the code Dim file As ProjectItem file = DTE.Solution.FindProjectItem( "myfile" ) file.Open() If file.IsOpen Then This works fine when there is only one "myfile" in a solution. What I am really looking for is to open the current "myfile" in the currently selected project. The documentation has me going around in circles. Can anyone point me in the right direection The Dte has an ActiveSolutionProjects property where you can get the list of active (selected projects). For each project, you can check ...Show All
.NET Development Jet 4.0 OLEDB connection to Access 2003 DB using .NET2003
I Hope somebody can help! We have a basic application written in .net 2003 and all it does is list table records from an access 2003 dbase. The issue that we are having is that when it is installed on a client workstation the records are not listed. We can see that the application is accessing the database as it is locking it, however it doesn't matter if you have admin rights it still doesn't work, therefore we don't think it is a rights issue. There are no passwords on the dbase and everyone has "write + read" access. Thanks in advance Wayne Peterson Sentry Networks Hi Wayne, ...Show All
.NET Development Capture Mouse
!Hello! I have a Windows Service and i would like to know how can i capture mouse movements in the screen, without a form or process launched. I readed that Framework not allow to capture this... i tried with windowshoooks and dont get nothing How can i solve this problem Thks Pavleras I believe you cannot do this but hear me out... Windows Service has nothing to do with the visual effects of the environment, a Windows Service is a process in the background that runs to do "technical" stuff that users should really not know about, such as logging events to the event log, or doing some other pr ...Show All
Visual Studio Team System Creation of query with required value of some parameter
How to create a query which before perfofming will ask the value of some parameter. For example, in query of select all defects of the developer. Before this query will perfom a user should to define a name of developer. Any body can help Thank you. That's correct. This feature has been requested many times so I expect it's something we'll look at in the future. Brian ...Show All
Visual Studio Controls ToolBox not showing in Visual Studio 2005
Hi, I've been using RS for some time in VS2003 and have had no problems. I tried installing RS2005 tools to VS2005 (release version). I can create a BI project, create a dataset and drag fields onto the Design Body. My problem is that I don't see the ReportingServices items in the Toolbox so I can't create a table, cross tab etc. Am I missing an install step Thanks for any help... Try rebuilding your toolbox items. Locate the directory %USERPROFILE%\Local Settings\Application Data\Microsoft\VisualStudio\8.0 and delete the four (hidden) files: toolbox.tbd, toolbox_reset.tbd, toolboxIndex.tb ...Show All
.NET Development Unloading a form
Hi, What is the syntax to unload a form in c++ .net I have login.h and mainProg.h, i want to unload login.h when mainProg.h is loaded. Thanks in advance! Hi! What do you mean "unload" If you want to free memory - it's not your task in .NET, it's GC work. If you want to close/hide form - call Close(). If you want real unload - you must create app domain and unload it, but I don't think this is what you need. For typical Login form - it's a dialog. When you validate user - set DialogResult = DialogResult.OK and form will close automatically. Call this form like this: if(new Log ...Show All
Windows Forms Stop Multiple Instances of Child Form
Hi, i want to stop multiple instances of child forms in a MDI application, can anyone suggest what can i do my code is like this. Private Sub MenuItem5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem5.Click Dim b As Form3 b = New Form3 b.Show() & ...Show All
Visual Studio Team System Password for the Team Suite eval?
I've installed the Team Suite evaluation from MSDN downloads (the 10+ GB VPC image of server 2003 with TS) - but the password " pass@word1 " in the readme.txt file seems to be wrong. Anybody knows the correct password Regards, Pavel Thanks! why I haven't try the obvious variants :-( -- Pavel ...Show All
Visual Studio Team System MS Project/TFS work items won't move when linked
Hi, I am using project 2003 linked to a TFServer to create a project schedule. For some reason, newly added tasks will not link with a Finish-to-start date. That is, new tasks, which have no constraints will not have their start date moved. It is notable that this is the first project I've setup using TFS/Project2k3. I've used Project 2000 for about 5 years, but I'm stumped. Is this a TFS bug Thanks, Jon Jon: TFS has no scheduling engine. All items related to scheduling (start date, end date, task dependencies) only exist in Project. I hope this helps. ...Show All
