Loading Circle in Visual C# 2010? - visual-studio-2010

Instead of a regular progress bar, how can I make a circle with spokes that rotate telling the user that that my program is loading?
EDIT: I want it in Windows Forms
Ok thanks Tim, your solution works. I had to set the image by code since importing it in the designer froze it up.

I normally go to http://ajaxload.info/ and put one of their animated GIFs in a PictureBox.

This is the one I actually used in one of my apps
Circular Progress indicator.This second one is for WPF apps.

Related

A simple Transition Animation

Trying to create a simple Card Game, I want to make a Transition Animation which moves an Image from a Canvas point to another. How can I do this?
I wonder if such animations are available out of the box.
you can just use a storyboard and provide start / end positions.
I show / hide text etc, change opacity etc no problems. infact all animations i used were direct port from WPDev and they work just fine.
More on them here
http://msdn.microsoft.com/en-us/magazine/cc721608.aspx
I recommend a Microsoft website named .toolbox which contains lots of video tutorial and sample code teaching you how to create animation by Blend and visual studio 2010.
Those code samples mostly are written by Silverlight in vs 2010. I tried to compile them under vs 2012, but it failed.

Is there a way to display HTML in an XNA game on WP7

Is there a way to display a browser control over the top of an XNA game on Windows Phone 7?
Basically I need to display some HTML, and then allow the user to return to the game.
So it can be full-screen if need be. It could even involve switching to Internet Explorer, if there's a way to return to the game from IE?
Is this possible?
It was announced that XNA and Silverlight would be available together in the same app starting with Mango update.
That might allow you to get what you're after.
I am not certain It would be nice if we could pop an html screen like we do on the iPhone. I know if you embed an url you can open ie. but as far as I know you can only get back to your game via the hardware back button.
You are not able to directly display HTML content in your XNA application due to the differences in the UI core. You are able, however, to invoke the WebBrowserTask. All you need to do is add a reference to Microsoft.Phone and then add a using statement for Microsoft.Phone.Tasks.

Moving graphical components with the mouse in Visual Studio

I have just installed Visual Studio.NET. In the Design area I have added some graphical components (button, textbox) but I can't move these within the specified area, as their position remains unchanged. I would like to move these graphical components with the mouse cursor, I know it's possible, does anyone know how?
It sounds like you have created a WPF project. WPF works a lot differently than WinForms which you are probably used to. So try creating a WinForms project, or get yourself acquainted with WPF.
I came here looking for the answer to the same question. OP is probably no longer interested and it was quite easy to Google it up, but in case somebody comes here as I did, here is the solution:
In WPF, place a Grid component on your form (or in your container, like Tab), and reset it (set both Height and Width to auto). Then you can place other controls and position them with your mouse normally.

Expression blend slideshow?

I'm specificaally a photoshop web designer and have a limited knowledge of xaml.
I'm trying to create a slideshow effect with images an text within it, similar to http://www.silverlightshow.net/items/Image-slider-control-in-Silverlight-1.1.aspx
Does anyone know how I would create this by just using Expression Blend. I would prefer not to dip into any code! Would be great if there is some sort of behavior for this?
I'm currently using the states and storyboard. The animation works in sketch preview, but I can't get the buttons to work for the behavior gotonextstate.
Any ideas?
Thanks Judi
I did it for you but don't know how to attache file here so send me your mail to send it to you.
be sure to have the default windows 7 (vista) images fileder to let the sample run fine.
Take care,

Is there an easy way to recreate the WinForms layout experience at runtime for user positioning of controls

When laying out a WinForm in Visual Studio you get the ability to resize and align your controls very easily with drag handles and border alignment hints.
I'd like to do the same with a runtime control to enable the user to position an image on a page.
For example, if the user has a photo and they want to place it as a background on the desktop I'd like the control to help them move and size the photo thumbnail in a mini desktop visual.
I can do all of this, but my real question is, does anyone know of a way to inherit from the standard WinForms layout editor so that I can choose to use the nice docking, alignment hints and control resizing without coding it all again?
Thanks in advance
Ryan
I don't know about easy, but you can host the actual winforms designer in your own applications without too many problems.. See here.

Resources