Sam_res03's Q&A profile
Visual Basic StatusStrip usage
Hi, Have a little usage issue and yes I'm new to VB..Simple little program that will update the text of statusstrip. Works with If Then or Select Case but NOT For next The following code wil not show 1,2,3,4,etc only 10 is shown.... Private Sub Button3_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim i For i = 0 To 10 ToolStripStatusLabel1.Text = "SuperTest: " & i Sleep(500) Next End Sub problem fixed... Just a bit more searching and I found my answer... Application.DoEvents() Application.doevents is definately preferable over a sleep which will suspen ...Show All
.NET Development Question about COM-Interop.
Hi, I have written a COM-Server (InProcServer32, Dll) that I'd like to use with .NET (The server contains some API-wrappers, that cannot be easily accessed via P/Invoke). To test my server, I have created a C#-Project and included a reference to my server. VS2005 has correctly created a Wrapper-Dll from the type-library. But when I try to create an instance of the CoClass in question, I receive a COMException with a HRESULT of 0x80040154 REGDB_E_CLASSNOTREG, means that the class is not properly registered! But the class IS registered! I have checked the registry and have also tested the server with an "unmanaged" C++-Client before! Anyone out there who can help me Thanks in advance Reiner ...Show All
Windows Forms ClickOnce incorrectly tries to download from MS
Hello, I've got a clickonce application that I am publishing to our local intranet and will eventually be publishing to our customer's intranets. I ideally want it to download the .NET framework from the intranet aswell, rather than from microsoft's website, as using the internet would take longer. I am using VB express 2005, and no matter whether I select 'download prerequisites from same location as my application' or 'download prerequisites from this location' it still chooses to try to download WinFX 3.0 beta 2 from Microsoft. I don't really want customers using Beta software either, and they only need .NET 2.0 which is a smaller download anyway than WinFX 3.0 Beta 2. I've followed the guidelines in http://blogs.msdn.com/click ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting a 360 for contest... wait for Zephyr?
Should I wait for the next rev before getting a 360 and a Creator's Club subscription Are there any plans to offer rebates or trade-ins I don't need 1080p or a 120GB disk... are those the only alleged upgrades (aside from the cooler cpu) XNA Rockstar wrote: maybe that's what Dave was hinting at for March 5th Creators Club " gravy " Somehow I doubt it. ...Show All
Visual C# Making a Send To Shortcut
I have an c# VS 2005 winform that takes file list variables via Environment.CommandLine passed from a Send To link to my application. So I need to create a shortcut to my application in the user's Send To folder. I am able to build a MSI to install my application and create the shortcut in the User's Send To Menu location but when I right click from windows explorer I do not see the short cut as a Send To target. If I simply copy the shortcut to some other location such as User's Program Menu I see the shortcut as expected in Programs start menu location, which launches my application. How can I get my Send To shortcut to show up in windows explorer right click context menu I have other questions about the nature of the shortcut and why ...Show All
Visual Studio Express Editions Weird behaviour of the 'is' operator. Is this a bug?
I've noticed some strange behaviour when using the C#'s 'is' operator. As stated in http://msdn.microsoft.com/library/default.asp url=/library/en-us/csref/html/vclrfispg.asp : An is expression evaluates to true if both of the following conditions are met: expression is not null . expression can be cast to type . That is, a cast expression of the form (type)(expression) will complete without throwing an exception. For more information, see 7.6.6 Cast expressions . The following expression, however, returns 'false': 0 is byte Since 0 is not null, and (byte)0 casts successfully without any kind of exception, shouldn't it return true Just for your consideration. By the way, the expression '(byte)0 is byte' returns ...Show All
Software Development for Windows Vista Vista Symlink not accessible from 2K and XP Machines
I have created a "MyFolder" under the C Drive. Then I created a symlink "LinkToPF" under "MyFolder" to "C:\Program Files". The structure is like "C:\MyFolder\LinkToPF". Directory of C:\MyFolder 06-10-2006 03:31 <DIR> . 06-10-2006 03:31 <DIR> .. 06-10-2006 03:31 <SYMLINKD> LinkToPF [C:\Program Files] 0 File(s) 0 bytes 3 Dir(s) 8,575,188,992 bytes free The problem is when I use the ::FindFirstFile from a remote computer ( 2k or XP machine ) to iterate under this path (C:\MyFolder\LinkToPF) it fails. But there should be APIs so as to parse Symlinks, else all the existing Applications on other OS will ...Show All
Visual Studio Team System Visual studio Team Server Version control backed by sql 2000?
I was wondering if sql 2000 would work for the new version control piece of the team server If not will the developer edition of sql 2005 work Hi, No, sql 2000 will not work. The developer version is not supported because of license issues. Only Sql Server 2005 is supported and a license to use Standard edition is included with TFS. Thanks, Brad ...Show All
SQL Server Working with multi-valued, query based parameters
I am currently working with 3 multi-valued parameters whose data sources are queries. The first 2 are required to have entries, 100% of the time, but the third one may or may not require selecting a value. Parm3's data source is filtered by the selections of Parm1 & Parm2. The data source for my report references Parm3 in a derived table that is then LEFT OUTER JOINed. In the cases where the report does not require any selection from Parm3 I am still required to pick at least 1 entry. Can anyone shed some light on this, or provide a solution so I am not forced to pick any if I don't want Thanks in advance, Michael Yes I have those set just as you describe. Actually, because its a multi-value query I cannot ...Show All
Visual Studio 2008 (Pre-release) Appearance of buttons
Ok, this may sound crazy, but does anyone else have an effect on XP SP2 whereby the right-edge of the button is ever-so-slightly aligned too far to the left E.g. the right-edge is slightly inset into the button (although the top/bottom go to the correct place). I get this on all buttons (including the "x" in the top-right). I've tried various settings to do with ClearType, thinking that the font may be an issue. Everything looks fine when I run it on my Vista installation but ANY WPF xaml looks wrong on my XP boxes (e.g. all three I've tried so far). This is starting to bug me, as the visual effect may, unless it is known will-be/is fixed, may prevent me from being able to use WPF on a project as the target platfor ...Show All
Visual Studio Team System Publishing errors when updating frozen fields from MS Excel
Why do I get "publishing errors" in the following scenario: - open a set of workitems in MS Excel - clear the contents of a field that has a frozen rule (for all rows) - publish the changes - select a new valid value for the field that was cleared (for all rows) - publish the changes --> conflicting field errors occurs You have to select either the "Local version" value or the "Server version" value. What's the difference with the first change (from old value to empty value) Refreshing the list does not change this behavior. We use this functionality a lot and our project managers are complaining about this behavior. Any idea if this is fixed in SP1 or if a possible ...Show All
Visual Studio Team System TFS Project & Report Server ERrors
When I create a new TFS Project, the Reporting Services component that retrieves "Remaining Work" and "Bug RAtes", etc errors with a message The path of the item "//Sites/MyTracker/Remaining Work" is not valid. The path must be less than 260 characters long and must start with slash. Other restrictions apply. (rsInvalidItemPath) The path of the item "//Sites/MyTracker/Bug Rates" is not valid. The path must be less than 260 characters long and must start with slash. Other restrictions apply. (rsInvalidItemPath) What can I do to fix this After help from Microsoft Support, we were able to identify that http://xxxxx/Sites/ProjectName/Remaining Work ...Show All
SQL Server Time Series only predicts one step
I have a relational table with daily sales for 364 days (52 week span) for 60 stores. I have created a Microsoft Time Series model using store as the case and the historical/actual line charts appear in the Charts viewer for each store. But only one prediction step is shown no matter how many prediction steps I select. I have tried this with an OLAP-based model and also tried a simple DMX query, all with the same result. Thank you in advance for any help with this. P Taylor Can you provide more information on your scenario 1. The schema for your relational table. 2. The schema for the mining structure, including columns marked as key and key time Thanks Shuvro ...Show All
Visual Studio Express Editions Is the Autos Window in Visual Basic Express
I see the Autos Window discussed in the Microsoft Visual Basic 2005 book, but I don't see it in the Debug Windows. Was this left out of Visual Basic Express Not quite left out, but fairly well hidden... If you are in break mode in the debugger, you can get to it by pressing Ctrl-Alt-V, A Best regards, Johan Stenberg ...Show All
SQL Server Process won't die
While troubleshooting a problem with a web app having intermittent problems, I'm looking at the database as the cause. I made a backup of the database. Afterward I noticed a process in Activity Monitor using that database with 2 open transactions and a green check icon that won't kill (it says "Cannot use KILL to kill your own process. error 6104"); this process was not present prior to the backup. The process User shows my login (using Windows authentication and my domain account or while logged in as SA) and the Application is SQL Server Mgmt Studio. The host is the server name. Status is runnable. I stopped and restarted SQL Server and SQL Server Agent using the Windows Services Console, not the SAC ...Show All
