12,622,741 members (27,806 online)

# Visual Basic

 Re: Getting Image coordinates when image is zoomed Jarno Burger27-May-09 7:53 Jarno Burger 27-May-09 7:53
 Re: Getting Image coordinates when image is zoomed Alan Streisel29-May-09 3:58 Alan Streisel 29-May-09 3:58
 Re: Getting Image coordinates when image is zoomed DidiKunz29-May-09 5:17 DidiKunz 29-May-09 5:17
 Re: Getting Image coordinates when image is zoomed Alan Streisel29-May-09 6:01 Alan Streisel 29-May-09 6:01
 Re: Getting Image coordinates when image is zoomed DidiKunz29-May-09 7:49 DidiKunz 29-May-09 7:49
 Here is one problem: `Card1 = Int(51 * Rnd)` This will give you a random number with 51 possible values, i.e. from 0 to 50. That means that you are never touching the last card in the deck. You are doing 100 times as much work as you need to in order to shuffle the deck. You don't have to make more than 51 swaps to completely shuffle the deck, you just have to make sure that each card has an equal chance to be swapped into each position in the deck: ```For card1 = 0 To 50 card2 = card1 + Int((52 - card1) * Rnd) If card1 <> card2 Then Temp = Image1(card1).Picture Image1(card1).Picture = Image1(card2).Picture Image1(card2).Picture = Temp End If Next Index``` Despite everything, the person most likely to be fooling you next is yourself.
 Get the last line from a constantly updating textbox The Mighty Atom26-May-09 6:21 The Mighty Atom 26-May-09 6:21
 Re: Get the last line from a constantly updating textbox Luc Pattyn26-May-09 6:45 Luc Pattyn 26-May-09 6:45
 Re: Get the last line from a constantly updating textbox The Mighty Atom26-May-09 7:59 The Mighty Atom 26-May-09 7:59
 Re: Get the last line from a constantly updating textbox Luc Pattyn26-May-09 8:14 Luc Pattyn 26-May-09 8:14
 Re: Get the last line from a constantly updating textbox Jarno Burger28-May-09 5:10 Jarno Burger 28-May-09 5:10
 Re: Get the last line from a constantly updating textbox [modified] The Mighty Atom28-May-09 7:36 The Mighty Atom 28-May-09 7:36
 Re: Get the last line from a constantly updating textbox DidiKunz29-May-09 5:22 DidiKunz 29-May-09 5:22
 Re: Get the last line from a constantly updating textbox The Mighty Atom1-Jun-09 4:22 The Mighty Atom 1-Jun-09 4:22
 Re: Get the last line from a constantly updating textbox DidiKunz1-Jun-09 9:01 DidiKunz 1-Jun-09 9:01
 Re: Get the last line from a constantly updating textbox The Mighty Atom1-Jun-09 9:20 The Mighty Atom 1-Jun-09 9:20
 Last Visit: 31-Dec-99 19:00     Last Update: 3-Dec-16 13:56 Refresh « Prev1...953954955956957958959960961962 Next »