Alastair Q's Q&A profile
Visual Studio Team System TFS Fills up disk?
Not sure if anyone else has seen this issue. Didn't have a chance to reproduct, but I think TFS source control will dump at certain intervals if you have a deleted SID in one of your security groups that could be used. Our disk/temp directory kept getting filled, the event log mentioned something about an invalid id, I had to search through all the groups to find it and remove it. Anyone else seen this Seems like this is something where it should not dump just because of an old deleted SID. Hi: We apologize for any inconvenience this problem caused your team. With regards to our reporting of the SID problem we are looking at ways to consolidate the way we report and display inform ...Show All
SQL Server Adding Row Numbers to Flat File Source
Hi, I was wondering if it was possible to add an identity column to a flat file data source as it is being processed in a data flow. I need to know the record number of each row in the file. Can this be done with the derived column task or is it possible to return the value of row count on each row of the data Any help on this is greatly recieved. Cheers, Grant Generating Surrogate Keys ( http://www.sqlis.com/default.aspx 37 ) -Jamie ...Show All
SQL Server Index usage statistics report
Has any body else had this problem. In SQL Server Management Studio in the report tab when I choose Index Usage Statistics all I get is just these messages and no info at all. Is this a bug. It does tell me the name of the database. Index Usage Statistics Shows how the users and system use the indexes. Index Operational Statistics shows details of the no. of operations performed on the indexes The release version of SP2 contains the fix for this issue. You can download the SP2 from: http://www.microsoft.com/sql/sp2.mspx ...Show All
Windows Forms Easy way to retrieve any line of text from a file using an array.
I have been reading around and coding here and there in my spare time away from my main project to find an easier method to work with lines of a text file without having to use the traditional for loop. Here it is... Code ...Show All
.NET Development The MSDN search is broken (today) for WPF library class !
I have been using MSDN site: http://msdn2.microsoft.com/en-us/library/yxcx7skw.aspx to search Windows Presentation Foundation class library. It is now broken: it will return class of 2.0 .net framework, not 3.0. For example, try search on "button". You will get "button" info on "Form", not "System.windows.control", which is the right path for 3.0 Framework's button. Every (ALL) WPF search return 2.0 result. Does anyone know what happened Did MSDN has a new place to put WPF class library search Please help ! Urgent !!!!!! :( ...Show All
Visual Studio Express Editions is not a valid Win32 application
I'm building a .NET application using VC++8.0 express edition. The program runs fine in Debug mode and in Release too. When moving to other PCs the .exe files (no DLLs or static libs or whatever) I get the followin message ..is not a valid Win32 application. This does not occurs on pcs with VC++8.0 installed. I installed the redistr. .NET2.0 packages on all the PCs. The pc that builds the application has VS6.0, VC++ .NET 2003 and VC++8.0 Express installed. You also need to install the C and C++ runtime - see this thread and many others in these forums. ...Show All
Visual C# Class accessibility?
Ok, lets say I make a new project in VS05. I create a button named button1 on a form named form1. Now I create another file and another class (Right Click, Add, Item... C# class). Now I am in another class in another file, but if I do "form1.BackColor" it doesnt work. I cant access the button either. I can also make a variable public int test = 34; Cant access it outside the form1 class either. I tried a lot of things (yes, including putting "public" keywords everywhere) but it wont work. Any ideas Thanks === Edited by AlexTurp @ 12 Feb 2007 11:26 PM UTC=== Both classes are in the same namespace of course. The "typical" workflow is to let Dev Studio do this work for you. There are two popular choices that I use: First, ...Show All
Windows Forms interacting text boxes & events question
hello: I have a user form in vb.net 2.0. When a user enters a price in one of 10 price fields, their corresponding percent fields and dollar fields(which are read only fields) are computed based upon the change in price. These computations involve a cost and a quantity field also on the form. In addition when either the cost or quantity fields are changed, all read only fields of the 10 price fields must change since these computed fields involve cost and quantity. So I have an event each time a price is changed to compute that price's read only fields, and I have an event to change the read only fields of ALL the prices if the cost or quantity fields are changed. I was thinking of putting these in the validating event routines ...Show All
.NET Development Why the difference between Access Query Configuration and Tableadapter Query Configuration Wizard
I have found that I can run a query using Access query builder works fine but the same query does not work in the "TableAdapter Query Configuration Wizard". Why is this Example: SELECT * from Rental_Agreement WHERE DateSerial(year(end_date), month(end_date) , day(end_date) - 5) = Date() This works in Acess 2003 but not in the "TableAdapter Query Configuration Wizard". I have a value of 3. Below is doumentation for the problem....... I enter : SELECT * from Rental_Agreement WHERE DateSerial(year(end_date), month(end_date) , day(end_date) - 5) = Date() And receive error message : Error in list of function arguments: ')' not recognized. Unable to parse query t ...Show All
.NET Development Urgent Problem - Receiving 0 bytes when sending bytes to remote socket
Hi, I'm having a real urgent problem that only started to show in production. We're using async SSL sockets broadcasting packets to several clients. However, some clients reply with 0 bytes when the packets are sent to them, whereas this problem never showed on our internal network. This only happens for clients connected via the internet. Any idea what could be going on here Tom A received byte count of 0 indicates that the connection has been closed by the other end in some of .NET's networking APIs. What API are you using What's the method you are calling that's telling you you got a reply with 0 bytes ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Screen Flicker, Frame Rate to high
hey all i'm having a problem with setting my app to full screen, there is a white screen flicker, having reading previous posts on this subject, i have checked for duplicated spritebatch, set Vsync on and checked for perferedMultiSampling, however i have noticed that the frame rate is running higher than it should, (75 frames per second instead of 60), even stranger is when running an FRAPS (frame rate reader), the app works fine with not flicker (although still running at 75 frames).. game works fine in windowed mode, at 60 frames a second, i reckon that the extra 15 frames are being rendered as white, (screen res 1024x768) (monitor refresh rate 60) (graphic card geforce 6800, drivers up-to-date) Any id ...Show All
Windows Forms non-bound grid control in .NET? (like MSHFlexGrid)
I'm halfway through writing a mini spreadsheet-like application in VB6 where the user can freely enter text into a table of cells, format them, get results from simple maths, etc. I would now like to rewrite in VB 2005 Express but can't find a suitable unbound grid control to replace MSHFlexGrid in .NET. I would prefer not to use a COM component if possible (and have seen quite a few worrying notes in the forums on MSHFlexGrid behaving badly in .NET). Is there a .NET based control I could use DataGridView seems to insist on being bound to data so isn't suitable (unless there's a property I can set to unbind it ). My application won't be bound to data, but lets the user type whatever data they want into the cells. ...Show All
SQL Server Database save and restore
Hello, A database EntryForm has a MenuStrip. How could the Menustrip implemented that it would have a Save and Restore data to the database for backup purposes What is the Menustrip for None of the standard Items seems to work. What can be printed or previewed This question is NOT about how to save the data into the database from the EntryForm. Thanks for any answer, Hi, If i understood correctly you are asking about backup of Database(is this what you mean by save data / .mdf & .ldf files) you may take a look at SQL DMO sample code, backup of SQL Database contains .mdf/.ldf files , and if you wish you can use sp_attach_db and sp_detach_db, but this will work after you are disconnected from Database. SQL DMO sa ...Show All
Visual Studio Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
I'm new to this forum. I hope you can help me. I'm using the Enterprise edition of VS 2005. When I debug my project an exception is raised - 'Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack'. I can't find anything about this on-line. I suspect this message is hiding the true exception. Does anyone know what this message means Regards, Andy Ham Func-eval (property evaluation) is evil. What the error means is that the thread is currently stopped in either (a) optimized code or (b) in native code (really, anywhere outside of code that was not directly generated from IL ). For a) switching to debug-mode will help. However, if you've ...Show All
Visual Basic Nooby here again...
Eh i cant believe i forgot this lol... How do you make a PictureBox move with Arrow Keys I keep trying this ... But, it doesn,t seem to work :( Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyUp: Picture1.Top = Picture1.Top - 50 Case vbKeyDown: Picture1.Top = Picture1.Top + 50 Case vbKeyLeft: Picture1.Left = Picture1.Left - 50 Case vbKeyRight: Picture1.Left = Picture1.Left + 50 End Select End Sub Thank you, Moveit Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown Select Case e.KeyCode Case Keys.Up Picture1.Top = Picture1.Top - 50 Case Keys.Down Picture1.Top ...Show All
