Click here to Skip to main content
16,012,025 members

Comments by It's Eddie! (Top 14 by date)

It's Eddie! 18-May-17 13:19pm View    
Thanks for the links Rick. The problem is that these assume that the contained control is too big - however, my TilePanel is always smaller than the containment panel. The reason the TilePanel can autoscroll is because it contains a button that's always on the edge of the size (it's a TileControl, so it has a really big grid inside of it.)

It looks pretty ugly with the tiny scroll bars inside of it, so that's why I'm trying to get a way to put new scroll bars on the containing panel instead of the TilePanel (think of it like in photoshop, where the scroll bars are on the side, as opposed to on the picturebox/image/editing field.)
It's Eddie! 4-May-17 16:41pm View    
Very helpful links, thank you.
It's Eddie! 4-May-17 16:38pm View    
Excellent, exactly what I was asking for. Thank you a lot.
It's Eddie! 16-May-16 6:07am View    
Thank you. I thought that was the problem. I replaced it with devision but I realized it has to be on the grid, and can't be more than the ColumnCount - just didn't realize modulo would be the trick.

Cheers Staffan!
It's Eddie! 16-May-16 5:40am View    
Hey Staffan,

Thanks for once again taking the time to read my problem. I've updated the code as you've shown, and the grid Y is doing fine. However, the GridX is still resulting very odd numbers.

Here are the results after debugging:

In the for loop of 9 different entities going to the same given point.

i = 0 - GridX: 0
i = 1 - GridX: 0
i = 2 - GridX: 0
i = 3 - GridX: 4
i = 4 - GridX: 4
i = 5 - GridX: 4
i = 6 - GridX: 4
i = 7 - GridX: 0
i = 8 - GridX: 0

Perhaps there's something wrong with my code implimenting what you've given me. I'd like to send you a pastebin, if it's not too much trouble.

Also, could I have clarification on what "&" means within a mathematical sum in programming?

http://pastebin.com/LJYvPAau