473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Help Me With Load

11
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
Aug 2 '07 #1
3 1476
hariharanmca
1,977 1GB
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

can you give some more details like

1. What version that you are using?
2. What you had tryed (only That Method) now?

so that i can get some more information.
Aug 2 '07 #2
Zaccy
11
can you give some more details like

1. What version that you are using?
2. What you had tryed (only That Method) now?

so that i can get some more information.

Private Sub cmd_Roll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) 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


thats the whole code without other cases
i am using visual basice 2005 express edition
plz help me
Aug 2 '07 #3
hariharanmca
1,977 1GB
Private Sub cmd_Roll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) 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


thats the whole code without other cases
i am using visual basice 2005 express edition
plz help me
Expand|Select|Wrap|Line Numbers
  1. pic_Player1Dice.Image = LoadPicture (App.path & "\1.bmp")
  2. lbl_Score1.Text = val(lbl_Score1.Text) + 1
  3.  
change this two things and try.
Aug 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gennadiy Tit | last post by:
I have to load 1700 records from DB into tree view (NOT LIST VIEW). I have tried to load it with locking the windows and control and other stuff, but it not givingme the result that I need. It...
2
by: abhishek.srivastav | last post by:
I am a newbie in db2. We have a table CLOBTAB defined as CREATE TABLE CLOBTAB(COL CLOB(2M)) We are trying to load a file of around 1 MB into this table using load command. The file is deos...
4
by: Alan Lane | last post by:
Hello world: I'm including both code and examples of query output. I appologize if that makes this message longer than it should be. Anyway, I need to change the query below into a pivot table...
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
1
by: keith.walter | last post by:
My first asp.net app is almost "done" and I am stuck. Here is my situation: I have a "mother" page add_customer.aspx and a"child" user control add_group.ascx. On the mother page is an "add...
11
by: DrNoose | last post by:
Hi! I've got a program that's almost done, but I'm getting compile errors in two lines: 317 & 319. I think the main error has to do with the Truck Class. I'm a newbie and keep looking at the...
6
by: Lee Harr | last post by:
I have a database where I remove the schema public. When I try to use the createlang script, it fails like this ... >createdb foo CREATE DATABASE >psql foo -c "select version()" version...
4
by: chalrav | last post by:
I am trying to do the following in MS-Acces. PLease help Reading through multiple records, with Loop capability -------------------------------------------------------------------------------- ...
2
budigila
by: budigila | last post by:
Hiya peeps, Okies, I have been trying to work this out for a while now to no avail... I am a beginner to this whole coding thing but have made great strides in my project. Basically what I am...
5
by: katie smith | last post by:
Here is the program I just started, The problem i am having is I'm trying to get it to load the image file Sand1 with eval(loader) = pygame.image.load(loader) because Loader is euqual to "Sand1" but...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.