Click here to Skip to main content
16,004,969 members
Home / Discussions / C#
   

C#

 
QuestionRe: Do you know any API that can get the name of DVD movie? Pin
Khoramdin11-Mar-07 9:31
Khoramdin11-Mar-07 9:31 
QuestionNeed help creating thumbnails Pin
Mark F.10-Mar-07 4:15
Mark F.10-Mar-07 4:15 
AnswerRe: Need help creating thumbnails Pin
Christian Graus10-Mar-07 5:17
protectorChristian Graus10-Mar-07 5:17 
GeneralRe: Need help creating thumbnails [modified] Pin
Mark F.10-Mar-07 6:07
Mark F.10-Mar-07 6:07 
QuestionTrail of Tears... (i.e. Control Locations) [modified] Pin
new_phoenix10-Mar-07 2:47
new_phoenix10-Mar-07 2:47 
AnswerRe: Trail of Tears... (i.e. Control Locations) Pin
Guffa10-Mar-07 4:35
Guffa10-Mar-07 4:35 
GeneralRe: Trail of Tears... (i.e. Control Locations) [modified] Pin
new_phoenix10-Mar-07 7:05
new_phoenix10-Mar-07 7:05 
GeneralRe: Trail of Tears... (i.e. Control Locations) Pin
Guffa10-Mar-07 8:45
Guffa10-Mar-07 8:45 
We start with this:

new_phoenix wrote:
and how would a timer be used to get the form to redraw itself?


If you use a timer to trigger the movement of the control, the main message pump would handle messages in between the timer events. If you just change the location of the control, both the control and the previous area of the control will be invalidated. This creates messages that will be handled by the message pump. The message pump will call the Paint event of the control and the form, which will repaint the control and the part of the form that was invalidated.

new_phoenix wrote:
How could it be done in a loop


The x position of a point on the line can be interpolated like this:

x = startX + (endX - startX) * index / 64

where index is the index of the point from 0 to 64.

The y position can be calculated in the same way.

You don't even have to create an array of points, you can just calculate the position directly in the timer event.


---
single minded; short sighted; long gone;

GeneralRe: Trail of Tears... (i.e. Control Locations) Pin
new_phoenix10-Mar-07 8:56
new_phoenix10-Mar-07 8:56 
AnswerRe: Trail of Tears... (i.e. Control Locations) Pin
Guffa10-Mar-07 13:31
Guffa10-Mar-07 13:31 
GeneralRe: Trail of Tears... (i.e. Control Locations) Pin
new_phoenix18-Mar-07 4:55
new_phoenix18-Mar-07 4:55 
GeneralRe: Trail of Tears... (i.e. Control Locations) Pin
Guffa18-Mar-07 6:20
Guffa18-Mar-07 6:20 
QuestionClass Pin
shamsteady10-Mar-07 2:47
shamsteady10-Mar-07 2:47 
AnswerRe: Class Pin
Guffa10-Mar-07 3:41
Guffa10-Mar-07 3:41 
AnswerRe: Class Pin
Mike Hankey10-Mar-07 3:41
mveMike Hankey10-Mar-07 3:41 
GeneralRe: Class Pin
shamsteady10-Mar-07 3:43
shamsteady10-Mar-07 3:43 
GeneralRe: Class Pin
shamsteady10-Mar-07 4:14
shamsteady10-Mar-07 4:14 
GeneralRe: Class Pin
Colin Angus Mackay10-Mar-07 7:43
Colin Angus Mackay10-Mar-07 7:43 
GeneralRe: Class Pin
Mike Hankey10-Mar-07 9:13
mveMike Hankey10-Mar-07 9:13 
GeneralRe: Class Pin
shamsteady10-Mar-07 9:15
shamsteady10-Mar-07 9:15 
Questionws security Pin
George-Lucian10-Mar-07 2:29
George-Lucian10-Mar-07 2:29 
QuestionConverting Time string into DateTime Object Pin
Iman Daoodian10-Mar-07 2:10
Iman Daoodian10-Mar-07 2:10 
AnswerRe: Converting Time string into DateTime Object Pin
Stefan Troschuetz10-Mar-07 2:30
Stefan Troschuetz10-Mar-07 2:30 
Questionhow to use Crystal Report in my VC#2005 Professionally? Pin
hdv21210-Mar-07 0:29
hdv21210-Mar-07 0:29 
AnswerRe: how to use Crystal Report in my VC#2005 Professionally? Pin
waleed9910-Mar-07 5:36
waleed9910-Mar-07 5:36 

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.