i hv found a few probelms recently.
1.About the text file
Having done a series of experiments, i found out that the program can read a text file with the file name provided only. However, the program can also read a file without providing path only when the files and the program are in the same directory.(quite similar to pascal) Therefore, i would like to ask whether there is a method that can "package" the program and the files together so that the player do not need proveide the path of the file for the program to read.
( P.s If this problem can be solved by "packaging", it will be very convenient!!)
2. About the form
If there are two forms called A and B. When A is run , and i click a button in A, then B will be shown.
How can i prevent players inputting things in A when B is shown ?
3. About refresh the whole program
If the player has won the game and he wants to start a new game, can i just refresh the program and show the new game instead of asking the player to quit and start the program again?
I hv thought about calling those "Private Sub" (<== are they procedures?) , However it failed to do.
I tried to call those "Private Sub" using this code:
Call Form1_Load ()
But the VB said that there should be some parameters or sth else to add. (Actaully , i dun know wut is it talking about?)
Can you tell me another method to call a procedure(or those "Private Sub")?
Please give some solutions for my problems. Thx !!!
1.About the text file
Having done a series of experiments, i found out that the program can read a text file with the file name provided only. However, the program can also read a file without providing path only when the files and the program are in the same directory.(quite similar to pascal) Therefore, i would like to ask whether there is a method that can "package" the program and the files together so that the player do not need proveide the path of the file for the program to read.
( P.s If this problem can be solved by "packaging", it will be very convenient!!)
2. About the form
If there are two forms called A and B. When A is run , and i click a button in A, then B will be shown.
How can i prevent players inputting things in A when B is shown ?
3. About refresh the whole program
If the player has won the game and he wants to start a new game, can i just refresh the program and show the new game instead of asking the player to quit and start the program again?
I hv thought about calling those "Private Sub" (<== are they procedures?) , However it failed to do.
I tried to call those "Private Sub" using this code:
Call Form1_Load ()
But the VB said that there should be some parameters or sth else to add. (Actaully , i dun know wut is it talking about?)
Can you tell me another method to call a procedure(or those "Private Sub")?
Please give some solutions for my problems. Thx !!!