Hello all
I am newbie in java, I have an arrayList of elements (String), i need to be able to read the index of any element of that list
I have tried that but no good
public E indexOf (int index){
if (index<0 || index>=size)
throw new IndexOutOfBoundsException(""+index);
for(int i=0...
Hi all
I must remove an item and swap an item within the switch statement. I have been working onthis for quite a while without success, any help welcome please!
Thank you
import java.util.ArrayList;
import java.util.List;
import uucPack.InOut;
public class TryList
{ static List theList = new...
To be more explicit to force the user to enter only valid values.
user must enter their date of birth using to numeric control(day and year) and 1 domain control for the month, then their age is calculated.
otherwise if someone enter an invalid e.g31 of june, it returns a runtime error.
cheers
This code works well, but in the following case statement i would like to insert some code so that when you scroll down the months, only the one with 31 days shows
Case 0, 2, 4, 6, 7, 9, 11 'months with 31 days
nudDay.Maximum = 31
For the other cases then the 12 months of the year will show...
I have a domainupdown that displays the 12 month of the year and a nud for the days of the month ( 1 to 31)
i use a select case to select the number of days in each month including the leap year.
For the case 0, 2, 4, 6, 7, 9, 11 i would like the domain dudMonth to display only the months with...
A tricky one
I have aform asking customers to input their date of birth, to do so i use 2 numericupdown controls, 1 for the day of the month (1 to 31) and 1 for the years. I use a domainupdown control for the month (January to December), then the code calculate the age of the person, everything...
Thank you it works perfect but for one thing, there is always a but, I have lost the effect of the dice rolling( displaying the different sides of the dice), now the image of one side of the dice is displayed and stay still
If i use a text box i can see the value of the dice changing
I have tried both codes and their return returns an error exception at run time, it crashes after the first roll of the dice. The property of image image is set to embedded resource?
Private Sub tmrStart_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrStart.Tick...
diceRoll.Image = Image.FromFile("D:\MYGAME\dice1.jpg")
The image is situated in the folder of the game
I am using this code 6 times to represent a dice rolling.
Problem, every time the game is played on a different machine, the path to the images needs to be changed, how can i get around this...
i have an application that i want to burn on cd, including the CLR files, when i build the set up, it returns this error.
D:\Setup1\Setup1.vdproj dotNETFXRedist_x86_enu.msm must not be used to redistribute the .NET Framework. Please exclude this merge module.
I want to be able to run this...
It returns an error when i toggle more than once on/off, off/on menu
The error is in the class sound itself
An unhandled exception of type 'System.NullReferenceException' occurred in MyGame.exe
Additional information: Object reference not set to an instance of an object.
Anyway the problem is...
Hi
I have a game with several wav.files, which play whenever a player lands in a specific area of a board.
I would like to give the possibility to the player to turn the sound off and on using a menu. i have tried this code but all i get An unhandled exception
Help welcome
Thank you
Private...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.