Click here to Skip to main content
15,901,680 members
Home / Discussions / C#
   

C#

 
QuestionIssue Deserializing Json in C# SSIS Script Pin
rhutchins12346-Apr-18 14:27
rhutchins12346-Apr-18 14:27 
AnswerRe: Issue Deserializing Json in C# SSIS Script Pin
OriginalGriff6-Apr-18 21:09
mveOriginalGriff6-Apr-18 21:09 
GeneralRe: Issue Deserializing Json in C# SSIS Script Pin
rhutchins12347-Apr-18 3:01
rhutchins12347-Apr-18 3:01 
AnswerRe: Issue Deserializing Json in C# SSIS Script Pin
Gerry Schmitz7-Apr-18 6:51
mveGerry Schmitz7-Apr-18 6:51 
GeneralRe: Issue Deserializing Json in C# SSIS Script Pin
rhutchins12347-Apr-18 16:37
rhutchins12347-Apr-18 16:37 
GeneralRe: Issue Deserializing Json in C# SSIS Script Pin
Gerry Schmitz8-Apr-18 6:06
mveGerry Schmitz8-Apr-18 6:06 
GeneralRe: Issue Deserializing Json in C# SSIS Script Pin
rhutchins123414-Apr-18 11:05
rhutchins123414-Apr-18 11:05 
QuestionButton hover problem C# Visual Studio UWP Pin
Member 137658766-Apr-18 1:55
Member 137658766-Apr-18 1:55 
AnswerRe: Button hover problem C# Visual Studio UWP Pin
Pete O'Hanlon6-Apr-18 2:18
mvePete O'Hanlon6-Apr-18 2:18 
AnswerRe: Button hover problem C# Visual Studio UWP Pin
Gerry Schmitz6-Apr-18 7:40
mveGerry Schmitz6-Apr-18 7:40 
RantRe: Button hover problem C# Visual Studio UWP Pin
Mycroft Holmes6-Apr-18 13:10
professionalMycroft Holmes6-Apr-18 13:10 
GeneralRe: Button hover problem C# Visual Studio UWP Pin
Gerry Schmitz6-Apr-18 13:44
mveGerry Schmitz6-Apr-18 13:44 
Questionupdatepanel usage with three dropdownlists values into a single textbox Pin
chetan265-Apr-18 9:50
chetan265-Apr-18 9:50 
AnswerRe: updatepanel usage with three dropdownlists values into a single textbox Pin
Gerry Schmitz5-Apr-18 17:20
mveGerry Schmitz5-Apr-18 17:20 
GeneralRe: updatepanel usage with three dropdownlists values into a single textbox Pin
chetan266-Apr-18 3:36
chetan266-Apr-18 3:36 
GeneralRe: updatepanel usage with three dropdownlists values into a single textbox Pin
Gerry Schmitz6-Apr-18 7:34
mveGerry Schmitz6-Apr-18 7:34 
QuestionHow do i to create a bouncing ball in C# Pin
Member 137644515-Apr-18 5:15
Member 137644515-Apr-18 5:15 
AnswerRe: How do i to create a bouncing ball in C# Pin
OriginalGriff5-Apr-18 5:21
mveOriginalGriff5-Apr-18 5:21 
GeneralRe: How do i to create a bouncing ball in C# Pin
Member 137644515-Apr-18 7:29
Member 137644515-Apr-18 7:29 
GeneralRe: How do i to create a bouncing ball in C# Pin
OriginalGriff5-Apr-18 8:10
mveOriginalGriff5-Apr-18 8:10 
All that means is: when the ball hits an edge, it bounces off at the appropriate angle.
So if it hits the wall like this:
      |
      |
      |
      |
----->|
      |
      |
      |
      |
It rebounds exactly as you'd expect:
      |
      |
      |
      |
<-----|
      |
      |
      |
      |
It if hits at an angle, then it rebounds at an angle:
    |
\   |
 \  |
  \ |
   \|
    |
    |
    |
    |
Becomes
    |
    |
    |
    |
   /|
  / |
 /  |
/   |
    |
Now, presumably, you have a "move this number X" and "move this number Y" values which you add to your ball coordinates each time the timer ticks? So just try inverting the "move number" for the appropriate direction: left and right walls modify dX = -dX, top and bottom modify dY = -dY

Make sense?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

PraiseRe: How do i to create a bouncing ball in C# Pin
Member 137644515-Apr-18 8:16
Member 137644515-Apr-18 8:16 
GeneralRe: How do i to create a bouncing ball in C# Pin
OriginalGriff5-Apr-18 8:21
mveOriginalGriff5-Apr-18 8:21 
AnswerRe: How do i to create a bouncing ball in C# Pin
Eddy Vluggen5-Apr-18 6:53
professionalEddy Vluggen5-Apr-18 6:53 
Questioncopy paste file remotly Pin
Member 79659463-Apr-18 19:41
Member 79659463-Apr-18 19:41 
AnswerRe: copy paste file remotly Pin
OriginalGriff3-Apr-18 20:07
mveOriginalGriff3-Apr-18 20:07 

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.