The key mappings are fine. Again, the application runs with a CTRL + F5 - it just doesn't work unless I've already run it with a simple F5. I wondering if it's a VS bug? I'm running it in a VM on a 64 bit test environment...
Edmundisme
Posts
-
Um... it works when I F5 but not when I CTRL - F5...? -
Um... it works when I F5 but not when I CTRL - F5...?Hi, I have a simple solution with a windows client and a website. The website exposes a web service that the windows client consumes. So far so good. Here's the weird part. When running my solution in VS, the call to the web service doesn't work when I hit CTRL + F5 unless I run it with a simple F5 first. So each time I open the solution in a new VS session, I have to run it in debug (F5) at least once before it works without debugging (CTRL + F5). This makes no sense to me. Has anyone else run into an issue like this? Any ideas would be greatly appreciated! Thanks! Ian
-
WCF - How to generate a proxy class from a WSDL...Once I installed the VS 2005 enhancements for .Net 3.0 (WPF,WCF) I had the "Add Service Reference" options. Thanks for your help, Jammer, as it pointed me in the right direction. Ian
-
WCF - How to generate a proxy class from a WSDL...Is this available in VS 2005? I couldn't find an options for adding a service reference. There were two options: Add Reference, and Add Web Reference. Any ideas? Thanks! Ian
-
WCF - How to generate a proxy class from a WSDL...Hello, I'm writing a windows application that uses the Amazon FPS web service. I would like to use WCF, though I don't have much experience with it yet. I thought that by adding a web reference to the service WSDL, that a proxy class would be created for me. The web reference was added, and I can browse the types defined in the WSDL in the object browser, but Visual Studio did not generate a proxy class. What's the best way to proceed? Do I have to use svcutil to generate the proxy code? Thanks! Ian
-
How to determine the next x,y coordinate for a tank in a 2-D game...Thanks!
-
How to determine the next x,y coordinate for a tank in a 2-D game...Thanks, I appreciate it!
-
How to determine the next x,y coordinate for a tank in a 2-D game...Hello, I'm putting together a Silverlight 2 demo application. It is going to be a simple 2-D tank game where you can use the arrow keys to rotate and move the tank. The tank can point in any direction (360 possible directions, right?). I've written the code to rotate the tank, but I'm not sure where to begin regarding moving the tank. How can I take the angle of the tank (say, 156 degrees for example) and use that to determine the next x,y position of the tank when it moves forward? I'm sure there must be a simple equation for this, but I don't know what it would be called or even how to google this problem. Any ideas? Thanks, Ian
-
How to create an undo function in a picturebox?(Console Application,using windows form) [modified]To support undo/redo operations, you'll want to read up on the "Command" design pattern. Google "Command Design Pattern" and you'll get a myriad of explanations.
-
acessing an id from object senderCast the sender object to a Button:
Button myButton = sender as Button;
if(myButton != null)
{
string name = myButton.Name;
} -
Unsubscribing from the MouseMove event <i>from inside the handler...</i>But the handler is called in response to the move, which took place after I unsubscribed, and before I re-subscribed.
-
Unsubscribing from the MouseMove event <i>from inside the handler...</i>What's the explanation for why this doesn't work? What I'm after is a MouseMove handler that does not get called as a result of my programmatic mouse moves. (I know there aren't a lot of good reasons to move the cursor programmatically. This is just an example. I'm after the theory here). The result of this code is that the MouseMove handler is continuously called (as a result of the code that moves the mouse in the MouseMove handler). But why doesn't unsubscribing from the event prior to moving the mouse keep the handler from being called?
private void OnMouseMove(object sender, MouseEventArgs e)
{
// Unsubscribe from the MouseMove event because we don't want to respond to our programmatic mouse move.
this.MouseMove -= OnMouseMove;
// Move the mouse one pixel to the right just for kicks...
Cursor.Position = new Point(Cursor.Position.X + 1, Cursor.Position.Y);
// OK, hook it back up.
this.MouseMove += OnMouseMove;
}My best guess is that this is a threading issue. If that's the case, any ideas on how to fix it? Any ideas? Thanks! Ian
-
Media Element on a Transparent Window...Brand new Dell Precision m6300 laptop. Maybe I'm just trying to do something that my system can't handle. But if this system can't handle it, I don't want to do it anyway. Thanks for your help. Ian
-
Media Element on a Transparent Window...I think the difference is that your media element is larger than your window. I was trying to have a smaller video move around inside a larger, invisible window. (BTW, thanks for your efforts with this problem.) Ian
-
Media Element on a Transparent Window...Title="Window1" Height="768" Width="1024" Background="Transparent" AllowsTransparency="False" WindowStyle="None" ResizeMode="NoResize" Opacity="1" Visibility="Collapsed"> <Grid Background="Transparent"> <MediaElement Canvas.Left="96" Canvas.Top="38" Height="262" Name="mediaElement1" Source="C:\Windows\Web\Windows DreamScene\vid8899.mpg" Width="560" /> </Grid> </Window>
-
Media Element on a Transparent Window...Thanks for the reply. I don't know what you mean by: Make the Window Transparent Paint the background black. If I set the background as black, how can I make the window transparent? (BTW, when I set the opacity of the window to 0, the media element is no longer visible.)
-
Media Element on a Transparent Window...Hello, I have a media element playing a video. When I try to make the window transparent (by setting the AllowsTransparency property of the System.Windows.Window class to 'true') the application begins to run very slowly and the media element no longer plays the video correctly (the media element looks like a flickery green rectangle). I imagine what I want to do is possible, but I'm going about it the wrong way. For reasons that are unimportant to this post, I want the media element to look like it is free-floating and moving about the screen (when in actuality it would be moving about a transparent containing window). How do I create a completely transparent window that contains a media element (where the media element is playing a video)? Again, I want it to look to the user as though the video is not in a window, but right on the desktop. Thanks! Ian
-
Get mouse coordinates relative to control in separate application...Yeah, I guess my question is really how to get the position of a child window that generated the event (where the child window is running in a separate application from the code that is interested in its position). I see that Spy++ is able to identify the positions of child windows, I just don't know what APIs are being used.
-
Get mouse coordinates relative to control in separate application...Hello, I'm wondering how to go about getting the mouse cursor position relative to a child window in a given windows application. I'm writing an application that is interested in this data. Example: The user clicks a button in some winforms app, and my application uses low level hooks (or some other strategy) to determine the mouse coordinates relative to the clicked button in the other application. Any thoughts on how to proceed? I'm hooking the mouse so I get the screen coordinates when the mouse is clicked, but I'm not sure how to get position (relative or absolute) of the control that generated the "click" event. Thanks!
-
TargetInvocationException [modified]Hi. The DIGG service is not returning search results (which is why you can't just send it any ol' string). Rather, it's returning items that belong to a defined topic. If you go to Digg.com, you'll see the topics divided into categories along a bar at the top of the page. You have to supply one of the sub-topic strings to get a valid response. This is why you can use "baseball" but not "cars". There's a "baseball" topic at DIGG.com but there isn't a topic called "cars". -Ian