bhv's Q&A profile
Visual Studio 2008 (Pre-release) Raising an event when a Storyboard hits a certain time value
Hello- I have declared a Storyboard in XAML and would like to fire an event when the Clock hits a certain time value. For example, to use a sample from the Microsoft documentation, this animates a Rectangle across the screen: < Rectangle Width = " 50 " Height = " 50 " Fill = " Blue " Name = " myRect " > < Rectangle.RenderTransform > < TranslateTransform x:Name = " TranslateTransform01 " X = " 10 " Y = " 30 " /> </ Rectangle.RenderTransform > < Rectangle.Triggers > < EventTrigger RoutedEvent = " Rectangle.Loaded " > < BeginStoryboard > < Storyboard Na ...Show All
SQL Server convert varchar to numeric(4,2)
Hi, I have two databases SQL Server. I’m migrating tables from one database to other, but some columns are diferent data types. Is there a way to convert varchar to numeric(4,2) like follows: select convert(numeric(4,2), discounting) from database1.dbo.table1 the following error occurs: Msg 8114, Level 16, State 5, Line 1 Error converting data type varchar to numeric. How can I do this thanks!!!! The error message indicates that you have values in the column that cannot be converted to numeric successfully. You could use ISNUMERIC to check for such values and filter them but it may not be entirely accurate (since ISNUMERIC checks for several numeric type conversions, money and integer conversions). In the simple case, yo ...Show All
.NET Development how to download site in a temp folder
how can I download some ages of a site or the site itself -if avilable - in a temp folder or in a database , using C# MSDN Sample Code: // Create a request for the URL. WebRequest request = WebRequest.Create ( "http://www.contoso.com/default.html"); // If required by the server, set the credentials. request.Credentials = CredentialCache.DefaultCredentials; // Get the response. WebResponse response = request.GetResponse (); // Display the status. Console.WriteLine (((HttpWebResponse)response).StatusDescription); // Get the stream containing content returned by the server. Stream dataStream = response.GetResponseStream (); // Open the stream using a Strea ...Show All
Visual Basic Using Colormap values in an array to pass to SetRemapTable
I'm having difficulty doing it. When I declare an array as new object and load it up with ColorMap.NewColor and ColorMap.OldColor, I get a runtime error which is essentially a type mismatch error. When I attempt to declare an array as new ColorMap, I'm told you can't declare an array as new. Can someone tell me what I need to do Or, if I'm on the wrong track for my purpose, which is simply to swap one color for another in a bitmap, perhaps someone could tell me how to do it. I'm using Visual Basic Express. Thanks. It's not fast but it works: Dim bmp As Bitmap = CType(Bitmap.FromFile("c:\temp\test.bmp"), Bitmap) For x As Integer = 0 To bmp.Width - 1 For y As Integer = 0 To bmp.He ...Show All
SQL Server Hide dimension members which have no rows in fact table
When a cube is presented to the end user (thru Excel or Reporting services), I would like to limit the available dimension members to only those which have at least one row in fact table. This is to simplify what user sees as a list of choices under a dimension attribute/hierarchy and not be overwhelmed with all the dimension members for which no data may exist in reality in the fact table. Does Analysis Services 2005 have any easy way to accomplish this as part of UDM/Cube design Let me give you an example. Take "Locations" role playing dimension. In ocean transportation business, "Locations" are of different types such as Port of Load (sea-port), Port of Discharge (sea-port), Inland Point of origin, Inland Point ...Show All
Visual Studio Team System Upgrading from 180-day trial version to full RTM version (volume license)
I just upgraded our trial version of TFS to the full version and wanted to pass on some notes about the exercise. Upgrading is pretty simple: Click Change/Remove on the entry for TFS in Add/Remove Programs on the TFS server, then enter the permanent license key in the dialog box that appears. Our TFS license was purchased through a volume license agreement, so we had no nice box with the 25-character license key on it. Instead, per the instructions elsewhere on the MSDN site, I called Microsoft Customer Support to obtain a key. The MS support rep needed the TFS Product ID in order to generate a license key. Unfortunately, neither of us could find the darn thing; after 5 minutes of searching every Help | About box we could think o ...Show All
SQL Server Local Report (RDLC) Formatting
I cannot find anything that would suggest it is possible to use a cascading style sheet when formatting data elements within a local report (RDLC). We created an HTML report using CSS and now want to generate the same report using the Report Viewer control along with our defined styles. Any ideas thank you ...Show All
Visual C# datagridview: autosize column to max content size
I have a datagridview bound to my datasource. I would like column1 to autosize itself based on the max len of data stored in that database field. Alternatively I have already set the max text field size on my datasource, say 40 chars. Can I get only column1 to autosize to 40. All the other columns can be user-resizable. Thanks for any help. ...Show All
Visual Studio Team System Deploy windows users to different servers
Hi All, I have an issue with deploying a SQL 2000 database project to different servers, each using windows authentication. I have a user against in the database project called "User1". This has to be tied into the login "COMPUTER\User1", where computer will be the name of the server I am deploying the project to. The problem is that creating a user using sp_grantdbaccess requires a login name, but the login name can't be determined till deployment time because the login name will change based on the server name. So I keep getting the error 'User1' is not a valid login or you do not have permission" . Does anyone have a work around for this Other then blogs and this forum are there any good online resources for D ...Show All
SQL Server Tutorial Lesson 7 Status and Trend Indicators wrong
I am in lesson 7 (KPIs) and I did the Reseller Revenue KPI. All code was copy/pasted from the tutorial. I get the correct amount results, but my status and trend (gauge/arrow) indicators do NOT agree with the tutorial: My results : Reseller Revenue $80,450,596.98 $109,226,500.00 (with the gauge at empty and the trend pointing to the right) Tutorial says: Same amounts, but the gauge is at 1/4 full and the trend is UP Please note that the result of KpiValue ( "Reseller Revenue" )/ KpiGoal ( "Reseller Revenue" ) = .737, which, if I understand the MDX in the status code, supports the gauge result that I got, NOT the result that is shown in tutorial. ...Show All
Visual Basic Executables as Project References.
I have inherited a distributed application that has 4 servers and one client. 3 of the servers are also clients to one of the servers. The clients have the Server Executables added in the client's "Project Referrence". In particular, the client app has added a Reference to the executable of one the servers. The client app makes use of one of the classes declared in the Server's project. Moreover, this class has a method to add messages to a collection running on the server. Everytime I call this method from the client app a message is added to the collection that runs in the server. I don't understand why this is happening. Question: By using this Server's Class, does it mean that the client app is communicating to the ...Show All
Customer Care Framework MS Customer Care Framework
Hi, I have a MSDN CD released on May 2006 which has below mentioned softwares Biztalk Server 2004 ISA Server 2004 Exchange Server 2003 ISA 2004 SP4 Customer Care Framework Connected Services Framework 2.5 Host Integration Server 2004 Identity Integration Server 2003 with SP1 Office Live Communications Server 2005 SP1 Office Sharepoint Portal Server 2003 MOM 2005 with SP1 Speech Server 2004 R2 SMS 2003 with SP1 System Center Data Protection Manager 2006 Out othese i am trying to install Customer Care Framework and evaluate it. But in the CD i can find only installables for CCF app demos. I am not able to find any installables for CCF in the CD. But i can see developer edition for Biztalk server, CMS etc. Can anyone provide me ho ...Show All
Visual C++ Runtime Error
When i try to play this game called SilkRoad i always get a runtime error message is there any way to fix this problem Sounds like a bug in the game SilkRoad. Ask the game developers if fixes are available. Chances are pritty low that this forum might be of any help for you. It is a developer forum. You might be lucky that a dev of SilkRoad reads this... -- SvenC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Collision detection - Howto
Hi all, I'm trying to make two objects collide in GSE, actually in a Pong game - between the bat and the ball. I have motion for both, but no collision, the ball just leaves the stage so to speak. Any help would be appreciated. I have looked in the Help, but to no avail. so the question remains if you have a sprite on the screen how do you assign the Bounding Box do it Do you need to do a vector that moves with the sprite LIke masked over it in a sense ...Show All
Windows Live Developer Forums Move pushpin
Hello, In the past, I removed and add a new pushpin to just move it. But that's quite slow. Is there another way of doing this I've tried to set the new coordinate to the LatLong property of the VEPushpin object. Like this: myVEPushpin.LatLong = new VELatLong(lat, long); But the pin doesn't move. Is this supposed to work Greetings, Maarten Hi Maarten, I too am wondering the same thing. The virtual earth api seems to suggest that you can move the pushpin but I'm really quite fuzzy on how to implement this. I tried the same code you did also with no success. I am already using google maps but would like to use virtual earth as an alternative but need to be able to move the pushpins and do not wa ...Show All
