Private Sub cmd_Roll_Click( ByVal sender As System.Object, ByVal e As System.EventArg s) Handles cmd_Roll.Click
Randomize()
Select Case Int(Rnd() * 6) + 1
Case 1
pic_Player1Dice .Image = LoadPicture (App.path & \"1.bmp")
lbl_Score1.Text = lbl_Score1.Text + 1
End Select
End Sub
End Class
...
User Profile
Collapse
-
Help Me With Load
PLEASE HELP i have this problem and i need it fixed
all i need to know is the code to load pictures from folders in my computer when a number is equal to a case
on the old one it is
LoadPicture(App .Path & \1.bmp)
but it doesnt work on new VB it says Name 'LoadPicture' is Not Declared and same with app.path
plz help me
PLEASE -
PLEASE HELP i have this problem and i need it fixed
all i need to know is the code to load pictures from folders in my computer when a number is equal to a case
on the old one it is
LoadPicture(App .Path & \1.bmp)
but it doesnt work on new VB it says Name 'LoadPicture' is Not Declared and same with app.path
plz help me
PLEASELeave a comment:
-
yer i have and it says LoadPicture and App. names arent declared
plz help...Leave a comment:
-
the LoadPicture thingo dont work it says the name 'loadpicture' isnt declared
plz tell me what can rplace it
thanx...Leave a comment:
-
ok i got it working differantly
i just put a button conecting to an input box that led to the label
thnx anyway peepzLeave a comment:
-
can anyone translate this into Latest VB Code
i am using visual basic
the newest one
and i need the coide to load a file from like a folder in my computer code in the old visual basic 6.0 it is like ::
Randomize
Select Case Int(Rnd * 6)+1
Case 1
picboxname.pict ure = LoadPicture(app .path & \picname.bmp)
and so on
but i need the code for the new version as this dont work
thanx heaps -
-
getting text from 1 form to a label on another form
i have a form where the user inputs text in a text box and then click a button saying continue then i have another form where the user inputs more text and clicks a button saying continue i want the first part of text to be in a label on the 3rd form and the 2nd text in another label on the third form.
i think i have the code, this is what i put in but nuthin went into the labels:
txtboxname.Text = formname.... -
i am using visual basic
the newest one
and i need the coide to load a file from like a folder in my computer code in the old visual basic 6.0 it is like ::
Randomize
Select Case Int(Rnd * 6)+1
Case 1
picboxname.pict ure = LoadPicture(app .path & \picname.bmp)
and so on
but i need the code for the new version as this dont work...Leave a comment:
-
Code For Loading a pic into a picture box
im trying to do this assignment for skool and i have completely forgot how to do this. i have 2 pic boxes and 1 button wen i click that button i want it to get a random number diff one for both but it can sumtimes be the same but the number will be from 1 - 6 and if it = 1 then i have a pic of a dice face that has a number 1 on it and if it = 2 then a dice pic with 2 on it and so on but i dont kno how to get it to do any of that i was using like...
No activity results to display
Show More
Leave a comment: