Michael Hansen's Q&A profile
Windows Live Developer Forums GetMapView() TopLeftLatLong/BottomRightLatLong oddity
Im using GetMapView () with TopLeftLatLong and BottomRightLatLong to display a set of pushpins in the visible area of the map and i am seeing some weirdness with the values being returned for BottomRightLatLong. On page load i obtain the values i need using var v = map.GetMapView(); alert( "Vis cTOP LEFT" + v.TopLeftLatLong); alert( "Vis cBOTTOM RIGHT" + v.BottomRightLatLong); The values returned by BottomRightLatLong show as: 42.488966 -83.102903 I also have an event attached to a mouse click which uses the same exact code: var v = map.GetMapView(); alert( "Click cTOP LEFT" + v.TopLeftLatLong); alert( "Click cBOTTOM RIGHT" + v.BottomRightLatLong); The values returned by BottomRightLatLong for the click function show as: ...Show All
Visual Studio 2008 (Pre-release) Binding Expression path error
i have an application that uses quite alot of binding, and it is working fine however when i fire certain events (by clicking buttons etc) i keep getting this error: BindingExpression path error: 'pointY' property not found on 'object' ''null''. BindingExpression:Path='pointY'; DataItem=''null''; target element is 'TextBox (Name='')'; target property is 'Text' (type 'String'); this is confusing because the bindings are still working and still present ! ! am i doing something wrong or any help is appreciated :-) thanks PS if you need to see any code just let me know yeh sure void deleteLine(object sender, RoutedEventArgs e) { try { IndividualLine l = (IndividualLine)lineList.Items.CurrentItem; ...Show All
Visual Basic Moving between panes of a Split Window
I frequently need to split my editing window so that I can simultaneously view different sections of my code. Is there a keystroke shortcut to switch from one pane to the other, or some other way that's faster than having to grab the mouse and click in the other pane Thanks. Hi, What part of my response did you not understand Pressing the F6 key will probably move you between split windows. To change your keyboard shortcuts, open the Tools menu and click Options . Expand the Environment node. Navigate to the Keyboard node. In the list box, scroll down until you see Window.NextSplitPane . If there are any short cuts defined for that task, they will show up in the Shortcuts for selected command comb ...Show All
SQL Server FTP Task for SSIS missing
Hi Everyone, When I first installed BI Studio everything was working fine, but I went into it today and I noticed that the FTP task seems to be missing, I can't see it in the toolbox, everything else appears to be their but not that. Any idea how I can get this back, I really don't wont to uninstall and reinstall at the moment, and I'm not even sure if that would work. Thanks ...Show All
.NET Development Reverting to appDomain user after remoted users flowed identity is checked.
The following code reads the user Identity flowed over TCP to the server where I check for membership. With a minor inconvenience this works fine. The problem I was concerned about is if the thread is now identified as having the remote user's identity then the server may not have all the authority it needs to do things like log errors. We don't want to give each user the authority so we woud like to revert to the Identity of the user/account that launched the server. Unlike impersonating a user, the flowing the user via remoting doesn't appear to have a WindowsImpersonationContext that we can simply call Undo(). Fortunately I discovered that the appDomain identity is still available and using the following code I think I was able t ...Show All
Visual Basic Visual Studio Is Busy?
Pentium IV - Northwood 3.5 Ghz - I Gb of Ram. XP SP2 .. all current patches applied. VS2005 RTM Team Suite On occasion while debugging the IDE becomes nonresponsive and I receive a Bubble message informing me that "Visual Studio is busy waiting for an internal operation to complete - If you receive this message often, please inform Micorosoft" After I receive this message the IDE never recovers. All I can do is to delete the process and restart it. Any idea what's occurring Hmm, sounds like a deadlock somewhere. My apologies for the nuisance! I'd like to get to the bottom of this. When you kill the process, is a report being sent to Microsoft If so, chances are it will land on our plate fairly soon in ...Show All
SQL Server SQL Server Management Studio Express setup
I'm trying to install the SSMSE vor SQLEXPRESS, but I get the message Setup has dedected a version of SQL Server Management Studio on this machine.... etc. I have removed the SQL 2000 Enterprise manager , but the message still pops up. Looking for a good soul now for helping me out Thanks Have you installed Management Studio of a lower version Would you check Control Panel --> Add/Remove program, Click "change" on SQL Server 2005 and see the report. Then you can make sure whether SQL Server Management Studio is still existing. Or you can check Start --> All Programs --> SQL Server 2005 to make sure whether the menu item still exists. ...Show All
SQL Server CSV file as a data source
Hi, Can a CSV file be used as a data source for Microsoft Analysis Services 2005 Rgds hari I tried it, i couldn't get it to work. I even tried being sneaky and linking the csv in an access mdb then using the jet provider, but it didn't seem to like that either.. C ...Show All
Visual Studio Tools for Office Problem finding comments in a Word bookmark range
I am adding bookmarks and a comments to the same range, like this: object text = "foo"; object range = this.Application.Selection.Range; Word.Bookmark bookmark = this.Bookmarks.Add("_" + text, ref range); Word.Comment comment = this.Comments.Add(bookmark.Range, ref text); But, the following code yields zero comments: object id = "_foo"; Word.Bookmark bookmark = this.Bookmarks.get_Item(ref id); Word.Comments comments = bookmark.Range.Comments; However, if I increment the End property of the bookmark's Range: object id = "_foo"; Word.Bookmark bookmark = this.Bookmarks.get_Item(ref id); Word.Range range = bookmark.Range; range.End = range.End + 1; Word.Comments comments = range.Comments; ...Show All
Gadgets Want to start a beta/debug group?
Hello, Would anyone be interested in starting a group to help each other with beta testing I have a bunch of users who help me with new versions, but I don't like to get too technical with them. I'd love to have access to other developers who can give me debug ouput and insight. Anyone interested Ty Hey, I'd be very interested in this, i have a few people on my contact list who help me out but they don't have much technical knowledge so it can be difficult working out why something doesn't work for them. If you add me on msn messenger: ljames28 [a t] hotmail .com i'd be happy to help out. Law ...Show All
Windows Forms Conditionally adding a button to a form
I am new to VB and I can't seem to find an answer to this questions. I want to check the OS Version when the form launches and conditionally add a button depending on what OS is found. I have created a simple form below that has two buttons on it. When clicked the button launches a setup.exe in a directory relitive to the forms EXE. The form below works just fine, but what I want to do is if the OS is Vista, then Button1 should be hidden so that the user can not click on this button and only Button2 is visible on the form. Any suggestions on how to best handle this Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Close() Dim a As ...Show All
Visual Studio Team System Merge / commit not committing all pending changes
Has anybody seen this happen. You merge a branch (forward integrate in this case), you fix all the conflicts and you check in *everything* from the VS PendingChanges tool window. The operation completes and you do a refresh in the PendingChanges tool window and there's another item that needs to be checked in. WTF In this particular case it was a directory that was renamed that also had files in it with edits. The file edits were successfully committed but apparently not the directory rename. Are there any known cases where a merge can't be completed in a single commit I'll keep an eye on this since this has happened about 3 times now. After the last merge where this happened the TF server crashed (the m ...Show All
Visual C++ Which way should I go? C++ or C#
I'm about to start developing a windows application which is currently in VB6 using an Access database. Which route should I take language wise, c++ or c# and what's the difference There are no substantial performance differences between VB.NET, C#, and C++/CLI. If you're comfortable with VB, just upgrade to VB.NET. If you have a C++ background, you might want to check out C++/CLI - it's a nice language and if you stick to managed code it's nearly as simple as C#. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter, VB to C++ converter Instant Python: VB to Python converter ...Show All
Visual Studio Express Editions Error : when starting the sqlserver(SQL EXPRESS) service from sql management, .....plz help
Error : the request failed or the service did not respond in a timely fashion. Consult the event log or other applicable logs for details. reinstalled sqlexpress, tried configuration tools and windows firewall exception. i am running sql on local host. it was working well but now when i try starting server services i get this error. plz help. TITLE: Connect to Server ------------------------------ ----------------------------- ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Netw ...Show All
SQL Server Package wont run in a scheduled job
Hello, I have put together a simple SSIS package that runs fine both via BIDS and via Mgt Studio. The problem I have is that I can't get a scheduled job to run it. My scheduled job has only 1 step - and that step runs the package. When I right click in Mgt Studio (SQL Agent) and choose "Start Job" I get this error : ------------------------------------------------------------------------------------------ Executed as user: NMR044BRASQL886\SYSTEM. ....3033.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 14:10:56 Error: 2007-01-09 14:10:56.50 Code: 0xC0016016 Source: Description: Failed to decrypt protected XML node "DTS:Property" with error 0x8009000B "Key not valid for us ...Show All
