Click here to Skip to main content
16,005,389 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Enforcing Referrential Integrity in VB.NET Pin
Steve Pullan24-Nov-05 23:39
Steve Pullan24-Nov-05 23:39 
QuestionMapping drives in vb.net Pin
kongo1024-Nov-05 3:15
kongo1024-Nov-05 3:15 
AnswerRe: Mapping drives in vb.net Pin
Steve Pullan24-Nov-05 15:01
Steve Pullan24-Nov-05 15:01 
GeneralRe: Mapping drives in vb.net Pin
kongo1025-Nov-05 7:01
kongo1025-Nov-05 7:01 
GeneralRe: Mapping drives in vb.net Pin
Steve Pullan25-Nov-05 11:14
Steve Pullan25-Nov-05 11:14 
GeneralRe: Mapping drives in vb.net Pin
kongo1025-Nov-05 14:39
kongo1025-Nov-05 14:39 
QuestionDisplay random image Dice Roll Pin
chrischik24-Nov-05 2:51
chrischik24-Nov-05 2:51 
AnswerRe: Display random image Dice Roll Pin
Steve Pullan24-Nov-05 12:09
Steve Pullan24-Nov-05 12:09 
It looks like you're selecting the Dice at random but you are still loading the image controls in the same order (i.e. 1 thru 6) and the last one loaded will be the one displayed (i.e. "6").

You should be using the Dice variable (or another randomly generated one) to determine the face showing on the selected die.

Check that Dice = 6 * Rnd() will actually return an integer from 1 to 6 (hint: it doesn't the way it is coded now).

Additionally, if you only need to show one dice face this code can be simplified by removing the redundant image control load statements. If you need to show all faces of each die then be aware that opposite sides of the die total 7 (that is to say that 1 and 6 are on opposite sides of the die, as are 2 and 5, and 3 and 4).

...Steve
Questioncalculate z position Pin
nitin_ion24-Nov-05 1:27
nitin_ion24-Nov-05 1:27 
AnswerRe: calculate z position Pin
Dave Kreskowiak24-Nov-05 5:55
mveDave Kreskowiak24-Nov-05 5:55 
AnswerRe: calculate z position Pin
Briga24-Nov-05 7:15
Briga24-Nov-05 7:15 
QuestionSearch text files... Pin
japel24-Nov-05 0:58
japel24-Nov-05 0:58 
AnswerRe: Search text files... Pin
Briga24-Nov-05 7:13
Briga24-Nov-05 7:13 
AnswerRe: Search text files... Pin
Curtis Schlak.24-Nov-05 15:14
Curtis Schlak.24-Nov-05 15:14 
QuestionWinsock GetData Pin
Marc Soleda24-Nov-05 0:48
Marc Soleda24-Nov-05 0:48 
QuestionCrystal Reports Print Preview Pin
Anup Singh J23-Nov-05 23:59
Anup Singh J23-Nov-05 23:59 
QuestionBIG TROUBLE WITH STORING DATA INTO SQL SERVER 7.0,IN VB.NET Pin
ajay bharti23-Nov-05 23:51
ajay bharti23-Nov-05 23:51 
AnswerRe: BIG TROUBLE WITH STORING DATA INTO SQL SERVER 7.0,IN VB.NET Pin
Steve Pullan24-Nov-05 0:10
Steve Pullan24-Nov-05 0:10 
AnswerRe: BIG TROUBLE WITH STORING DATA INTO SQL SERVER 7.0,IN VB.NET Pin
Briga24-Nov-05 0:42
Briga24-Nov-05 0:42 
QuestionMDAC Version Pin
sarah_chandran23-Nov-05 23:44
sarah_chandran23-Nov-05 23:44 
AnswerRe: MDAC Version Pin
Dave Kreskowiak25-Nov-05 4:07
mveDave Kreskowiak25-Nov-05 4:07 
GeneralRe: MDAC Version Pin
sarah_chandran25-Nov-05 18:34
sarah_chandran25-Nov-05 18:34 
GeneralRe: MDAC Version Pin
oakleaf29-Nov-05 4:31
oakleaf29-Nov-05 4:31 
QuestionSQL DB Update Pin
Briga23-Nov-05 23:18
Briga23-Nov-05 23:18 
Questiongrouping radio buttons Pin
Mugombi23-Nov-05 23:16
Mugombi23-Nov-05 23:16 

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.