jvshore's Q&A profile
Visual Studio Team System Changing the logged in user
Hi, I am using team foundation server for workgoups. The server is windows 2003 in a workgroup, we are not using active directories. The initial login to TFS was with the admin account to set up the users. I added all the users but cannot get a login screen. TFS always logs me in as admin. If I change the admin password on the server it gave me a login screen, but when I reset the admin password back to the original, TFS stopped asking for username/password and started logining me in as admin again. Is there any way to get the login screen to reappear short of changing my server admin password Thanks Rebecca ...Show All
SQL Server Scripting in C#?
Is it possible to script a script component in a dataflow task using C# or is only VB.NET supported If so, will support for C# be added in the future Regards, Henk Allow me to clarify. Scripting in C# will not be available in the SQL Server 2005 timeframe. We hope that new developments will make this possible in the next version of SQL Server. -Doug ...Show All
Windows Forms Capture Property not working as expected
I have created a class that acts as an in-place editor. It is basically a form that contains a textbox. The user passes in the size and then calls ShowDialog. What I want to do is capture all mouse input once the Editor has been displayed so that if the user clicks anywhere outside the textbox the editor will close. To do this I have tried overriding the OnControlCreate method, as well as handling the VisibleChanged event, and setting the Capture Property on both the Form and the Textbox to true. Nothing I have tried delivers the desired effect that the MouseDown event is triggered for the textbox (of form) when clicked outside the ...Show All
Visual Studio Problems loading package
While probing the DSL tools and figuring out how to use them I came accross an issue that I need to get resolved. The issue has to do with loading the package (and is something I most likely caused by using the same combination of CompanyName.ProjectName on all my samples). Problem is that when I try to debug my DSL the debugger prompts me with the message 'Package Load Failure'. Inside the message are some details regarding my packagename (CompanyName.ProjectName.Designer.MyPackage, CompanyName.ProjectName.Designer) and the GUID. The package names with different GUIDS pop up (as stated I used the same combination on multiple sample proje ...Show All
.NET Development Slow load of projects in VS.net and how to make StringBuilder analog for arrays marshalling
1.I want to make a faster load of projects in VS.net. I do remember that this question was discussed on dev forums years ago, but forget solution and can't fonf anything in KB.Though this problem is not critical(it's taking around half a min),but annoing. 2.I am using a 3 party OLE Automation object API2 and using this object in a C# windows form. Some of the functions of this object have output parameters of type out float[] or out int[]. When I am calling those functions those objects marshalled in a standard wrapper with new arrays on every call,so on every call so they discarded on every call and allocated a new. I want to create i ...Show All
Visual Basic Program Run on Windows Startup
Is there an easy (well I guess it doesn't even have to be easy) way to allow your program to run on system startup I realize that this can be accomplished by dropping a shortcut into the Startup folder, but are there other ways to do this I want the user to have the option of allowing the program to run at startup so this method of doing this would have to be one that can constantly be changed. Thanks! You'll need to modify some registry entries: Look under HKLM\Software\Microsoft\Windows\CurrentVersion\Run ...Show All
Visual Studio Can't uninstall MSDN Library for Visual Studio 2005 Beta
A while back I installed Visual Studio 2005 Team Suite Beta 2 Version on my laptop and used it. I now have the latest Visual Studio 2005 Professional and I want to install it but I can't. MSDN Library for Visual Studio 2005 Beta will not uninstall. I've tried just about everything but everytime it goes through the uninstall process at the last possible moment it "rolls-back" and dosn't perform the uninstall. I'm stuck. I read through most of the messages here to try to find a clue and I've tried several many good suggestions but still with no success. Any ideas would be greatly appreciated. Thanks. ...Show All
Visual C# How can I prevent an event's parent version to be processed?
I have a function -with a common name- both in the child and in the parent form. And I do NOT want the event (in the parent form) to be processed while the event in the child prossesing... (hint : In VFP the equivalent phrase is 'NoDefault') Thanks in advance. Very thanks Blair. I know this thank is very late, but I was away for a long time from programming. ...Show All
Windows Forms Single Instance app, Activate
Using this in Main to enforce a single instance of the app: Dim firstInstance As Boolean Dim safeName As String = Application.UserAppDataPath.Replace("\", "_") Dim mtx As Mutex = New Mutex(True, safeName, firstInstance) If Not firstInstance Then Return End If Application.Run(New Form1) ... But instead of just returning if its not the first instance, I would like to Activate the existing instance's window. I guess the question is how can I get a reference to the form in the instance already running maybe you want to look here http://www.codeproject.com/dotnet/VB6andVBNETWindowMessages.asp i think if you sen ...Show All
Visual Studio Express Editions How to Create a New Data File?
I have an application that uses an Access database to store program data. If I want the user to be able to create a new data file, how would I implement this If I deploy a blank database with the app, is there some way to allow the user to create a named copy of it in any location he chooses Would this situation be better served if I stored the data in an XML file Thanks in advance. Hi, Yes you could include a blank database. You can let the user specify the location, then use the basic file functions to copy the file to a specified location. Then you could connect ther by your OleDbConnection.... &nbs ...Show All
SQL Server Avoiding deadlock
I have a stored procedure spUpdateClient, which takes as params a number of properties of a client application that wants to register its existence with the database. The sp just needs to add a new row or update an existing row with this data. I tried to accomplish this with code somethign like this. (The table I'm updating is called Client, and its primary key is ClientId, which is a value passed into the sp from the client.) IF (SELECT COUNT(ClientId) FROM Clients WHERE ClientId=@ClientId ) = 0 BEGIN -- client not found, create it INSERT INTO Clients (ClientId, Hostname, Etc) VALUES (@ClientId, @Hostname, @Etc) END ELSE ...Show All
Visual Basic How can I change the language or design of default download form !!
I'm using clickonce technology, about the download form ... (the form which comes if there is a new version) how Can I change the culture or the design at all my defualt language is Arabic .. and it is english !! how Can I change it to Arabic You can check the Arabic langpack 2.0 on http://www.microsoft.com/downloads/details.aspx familyid=39C8B63B-F64B-4B68-A774-B64ED0C32AE7&displaylang=en . Select Arabic from the list of languages. This provides the language dependant resources in your lang. However, you should be using Arabic localized OS, for example Arabic Win XP. ...Show All
.NET Development Marshal class in Interop is catching memory errors better
Since Beta2 came out, I have been trying to do my new development there to test the C# IDE, but not using any 2.0 features so I can still compile on another PC using VS .NET 2003 for production. I was recently testing some interop code that uses P/Invoke calls. I was allocating a block of memory to represent an array of handles. I erroneously specified the size of this block as "IntPtr.Size" instead of "nRows * IntPtr.Size". Running the program under .NET 2.0 caused it to fail on a call to Marshal.FreeHGlobal with the pointer every time, as opposed to compiling and running it under .NET 1.1, where it only failed sporadical ...Show All
SQL Server error 18452, Login failed for user Reason: Not associated with a trusted SQL Server connection.
Hi all, I have two servers running windows 2003 and both having sql server 2000. I want to establish a linked server between all of them. i created them . but now when accessing the data from those server the following error is being displayed Server: Msg 18452, Level 14, State 1, Line 1 Login failed for user 'manoj'. Reason: Not associated with a trusted SQL Server connection. i have enabled mixed mode authentication.even then its not displaying the intended result. please respond is urgent. thanks. 1> Goto SQL Server Manger 2> Select the DB Server (Eg : Local) -> Management->Right click a ...Show All
Visual C++ Is is possible to consume a generic class from a managed C++ project compiled with /clr:oldSyntax
Is it possible to pass a C++ __gc class as a T parameter for a generic class when using the /clr:oldSyntax switch I have a managed C++ project that links in a .netmodule that was created with C#. The C# project contains a generic class that I'd like to use in the managed C++ project. I'm gettting the following compiler error: myheader.h(53) : error C3225: generic type argument for 'T' cannot be 'MyManagedCppClass', it must be a value type or a handle to a reference type. MyManagedCppClass is declared using the old syntax as follows... public __gc class MyManagedCppClass { ...etc. } The usage looks something like this: ...Show All
