Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
AnswerRe: Keystroke events on a Form? Pin
Luc Pattyn14-Jul-07 2:32
sitebuilderLuc Pattyn14-Jul-07 2:32 
Questionkey sensitive Problem Pin
ytubis14-Jul-07 0:40
ytubis14-Jul-07 0:40 
AnswerRe: key sensitive Problem Pin
kubben14-Jul-07 1:17
kubben14-Jul-07 1:17 
AnswerRe: key sensitive Problem Pin
Luc Pattyn14-Jul-07 2:35
sitebuilderLuc Pattyn14-Jul-07 2:35 
QuestionC# Transelation :blush: Pin
Muammar©13-Jul-07 23:38
Muammar©13-Jul-07 23:38 
AnswerRe: C# Transelation :blush: Pin
Guffa13-Jul-07 23:57
Guffa13-Jul-07 23:57 
GeneralRe: C# Transelation :blush: Pin
Muammar©14-Jul-07 0:25
Muammar©14-Jul-07 0:25 
GeneralRe: C# Transelation :blush: [modified] Pin
Luc Pattyn14-Jul-07 2:46
sitebuilderLuc Pattyn14-Jul-07 2:46 
Hi,

all this inside a Form:

declare class members "float angle=0.0f", "int w=300" and "int h=300";
put a Control (say Panel) with size=new Size(2*w, 2*h);
wire a Paint handler for it, which includes:
Graphics g=e.Graphics;
g.TranslateTransform(w,h);
g.RotateTransform(angle);
... now draw whatever you like in the x-range (-w,+w) and y-range (-h,+h)


now add a Forms.Timer that takes care of animantion; in its Tick handler vary angle,
e.g. angle+=10.0f; // add 10 degrees
[Edit: dont forget to also invalidate the panel]


That's all.

Smile | :)

-- modified at 5:57 Wednesday 18th July, 2007


GeneralRe: C# Transelation :blush: Pin
Muammar©17-Jul-07 23:41
Muammar©17-Jul-07 23:41 
QuestionCompiling C# application using another C# code Pin
satsumatable13-Jul-07 22:12
satsumatable13-Jul-07 22:12 
QuestionC# COM entry point function Pin
George_George13-Jul-07 21:56
George_George13-Jul-07 21:56 
AnswerRe: C# COM entry point function Pin
Mike Dimmick14-Jul-07 7:52
Mike Dimmick14-Jul-07 7:52 
GeneralRe: C# COM entry point function Pin
George_George15-Jul-07 2:56
George_George15-Jul-07 2:56 
QuestionFree Audio/Video Library for C# Pin
Sukhjinder_K13-Jul-07 21:42
Sukhjinder_K13-Jul-07 21:42 
AnswerRe: Free Audio/Video Library for C# Pin
Thomas Stockwell14-Jul-07 7:39
professionalThomas Stockwell14-Jul-07 7:39 
QuestionHow to check if RPC Server is available [modified] Pin
beatles169213-Jul-07 21:41
beatles169213-Jul-07 21:41 
AnswerRe: How to check if RPC Server is available Pin
Mike Dimmick14-Jul-07 8:09
Mike Dimmick14-Jul-07 8:09 
GeneralRe: How to check if RPC Server is available Pin
beatles169214-Jul-07 22:39
beatles169214-Jul-07 22:39 
Questionmouse enter event [modified] Pin
treah13-Jul-07 20:49
treah13-Jul-07 20:49 
AnswerRe: mouse enter event Pin
satsumatable13-Jul-07 22:08
satsumatable13-Jul-07 22:08 
GeneralRe: mouse enter event Pin
treah14-Jul-07 0:23
treah14-Jul-07 0:23 
GeneralRe: mouse enter event Pin
Luc Pattyn14-Jul-07 2:54
sitebuilderLuc Pattyn14-Jul-07 2:54 
QuestionC# Layout Pin
satsumatable13-Jul-07 20:03
satsumatable13-Jul-07 20:03 
AnswerRe: C# Layout Pin
Michael Sync13-Jul-07 20:10
Michael Sync13-Jul-07 20:10 
GeneralRe: C# Layout Pin
satsumatable13-Jul-07 20:13
satsumatable13-Jul-07 20:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.