JustJF's Q&A profile
.NET Development TimeSpan or Stopwatch not as accurate as Environment.TickCount
Can someone, maybe preferably from Microsoft, confirm a behavior that I'm noticing concerning the lesser accuracy of using TimeSpan and the Stopwatch object to time something in milliseconds versus using Environment.TickCount. Specifically, I'm noticing that in my Ping class that when I use Environment.TickCount to measure how long a host responds to my message, the result in milliseconds is accurate compared to the results when I use ...Show All
SQL Server AS/400 to SQL Server 2000 Replication
Any suggestions on how to replicate from AS/400 to SQL Server 2000 Data is stored on a AS/400, but applications use a SQL Server 2000 DB. Currently, DTS packages drop the SQL DB, rebuild the tables from a script, copy the data, and then rebuild the indexes as a nightly batch job. Is there a better way to do this Also is there a clean way to replicate daily transactions as well Hi Replicating from AS400 ...Show All
Visual Basic Index was out of range
I wrote the following code and it works when there are only 5 items but im doing this on a selection of 233 or more and i get the error same as title The full error message is: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Dim redv As New DataView(Items1.Alchemy) DataGridView1.DataSource = redv Dim y As Integer = 0 Dim rowcount As Integer = ((Da ...Show All
Visual Studio Team System What changes in the RC
Hi, I was just wondering if someone could do a quick summary of the changed/improved/altered testing features in the Sep 14 RC. I have previously been using Beta 2, but even a general description of what is different would be appreciated. Thanks in advance Thanks guys - That should make convincing the boss to move to the RC a cinch! Much obliged. ...Show All
.NET Development Threading Confusion
Hi all, As a home project, I'm currently working on building an Soccer agent for Robocup with their server version 5.24 (Compiled for windows). My work goes like this : PSEUDOCODE : main parse command-line and init inet connection init, parseInitCommand - handshake w/server start thinking thread start sensing thread ...Show All
SQL Server Pause/Continue distribution, content formatting or delivering.
Notification Services get an event and create notification batch. Can I pause or stop process of notification delivery with (or without ) ability to continue I haven't tried it myself, but I can't see any reason why the standard retry logic wouldn't work. Just be mindful of the ExpirationAge, RetrySchedule, and RetryDelay elements. Of course you'll also need to consider those times when you need to turn delivery again before the expiratio ...Show All
Windows Forms DataGridView: disabled Textbox column
How can I disable all cells of a TextBox column, so that these cells are not selectable and tab doesn't stop there. The DataGridView does not have any support for disabled cell/columns or rows, so you would have to program this all on your own. I'd just use the ReadOnly feature for the column. -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Game Technologies: DirectX, XNA, XACT, etc. rear view mirror using stencil buffer
hi all, iam displaying a vehicle rear view mirror using stencil buffer. my problem is when iam displaying this its only showing the objects which are rendered lastly. can anyone help me . or am i using wrong principle by using stencil buffer ,because iam 30 days buddy for direct3d programming. any other solutions are also welcome bye have a bug fr ...Show All
Windows Forms Can't close a WinForm app
I have a WinForm application. When I click the X button at the top right cornor of the MainWindow, it could not be closed and there is no exception. Could anyone explain why Thanks! Hi, I am thinking of a different approach to troubleshoot now. Add the Event Handler for FormClosing in your Form and register the event. private void Form1_FormClosing( object sender, FormClosingEventArgs e) { e.Cancel = false ; MessageBox. ...Show All
SQL Server Number of concurrent users
Hello, There was a 5 concurrent user limitation in MSDE (the version prior to SQL Express). Does that same limitation exist with SQL Express 2005 Thanks. Hi Val, First off, there was not actually a 5 concurrent user limitation in MSDE, this was a myth. Check out Euan Garden's blog describing the true functionality of the MSDE workload governer if you're interested in the history of all this: http://blogs.msdn.com/euanga/archive/20 ...Show All
Visual FoxPro report temp file not found
I need to create a simple report, nothing fancy. Just to preview some memo fields. This is the code I use. lcFile = "C:\VFP_Projects\Reports\MyReport.FRX" SET DIRECTORY TO "C:\VFP_Projects\TEMPORARYFILES\" CREATE REPORT (lcFile) FROM (ALIAS()) FIELDS memo1 The second line (set directory to) should be explained. I get an error that a temp file c:\\VFP_Projects\Data\...\000035e10062.tmp no found. Options are "Loca ...Show All
Visual Studio Tools for Office Excel ScreenUpdating in VSTO
Hi group, I am having difficulty in getting the ScreenUpdating property to work correctly. I have opened an existing Excel spreadsheet in VSTO and in the process of adding some additional functionality. The code essence: For i = 1 to 10 'There are 10 sets of ranges Range("MyRange" & i).Rows.Hidden = True Next i This produces screen flicker. I wrote this same code within VBA and it works well. Excel VBA syntax: ...Show All
Visual Studio Express Editions re use datagridview
Hi, I've build a datagridview with a particular style - docking, padding, row color ... I'd like to re use this grid in another form. No drang and Drop possible or cut and paste because I'd like to build the grid programmaticaly... Can I use something like a sub, structure, class pseudo code : Me .TabControl.TabPages.Item(0).Controls.Add(myGrid( my BindingSource)) I don't know exactly --- sorry for this newby question :-) C ...Show All
Windows Forms Reference to System.Data created for every new form
Every time I create a new form it creates a reference to System.Data and puts the 'using' statement at the top of the code file. But if I delete this line of code and delete the reference, it still compiles fine. Is this just a redundancy overlooked ...Show All
Smart Device Development What happens when you hit the 32 Process Limit
Does a message come up, does the device explode ;) Thanks! ...Show All
