|
could u please explain it more? can i run an application on mobile phone without OS ?!! if yes how could i do this ?
i dont know anything about these application , could you please send me some link which explain it from basic to advance level ?!
|
|
|
|
|
yes the link is Google[^]
first get info what you want when you know that try find some more information which phone you are targeting then get more info about its OS after that see which programming language you require to make a program for it then learn that if its c# then come here for genral language related problems and be specific what you want to know
and for any other help for Mobile development go here[^]
|
|
|
|
|
In my game, if one player put one card , another player have to put one card that is greater in sequeue than the first one (3>2) so how can I set those order with sort of cards? Those are no number , that's why!
|
|
|
|
|
Depends entirely on how you define your cards. Without any code we cannot answer your question.
My suggestion would be to create an enumeration of card values, something like this:
public enum CardValue
{
cv2 = 2,
cv3,
cv4,
cv10,
cvJack,
cvQueen,
cvKing,
cvAce,
} The enum is based on int by default, so (int)CardValue.cvJack will yield 11, for example and CardValue.cvKing > CardValue.cvQueen will return true .
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
hi pals,
when we press enter it's must go to Defaultly to save Button,,
can u any one help me plz,
regards,
Manohar
hi
|
|
|
|
|
asp form tag has an defaultbutton attribute, you can set it to the name of the button you wanted as default button.
Debugger is still my best friend.
|
|
|
|
|
my game have several boxes filled with randomly cards! the job is to match the 3 cards by vertical or horizontal way.if three same cards were in match.. I ld to make them disappear from the boxes .. How can I do .. ?pls
|
|
|
|
|
Can't you set the visabilty on the images? What events are you using and what type of control are you using to host the images?
|
|
|
|
|
In real, I want to exchange the cards by drapping with mouse (most like in solitaire)to get into matching statement in C# win appl. For visabilty , I use one button for start! and then all the randomize cards are in those picture boxes! ..pls help me
|
|
|
|
|
In real, I want to exchange the cards by drapping with mouse (most like in solitaire)to get into matching statement in C# win appl. For visabilty , I use one button for start! and then all the randomize cards are in those picture boxes! ..pls help me
|
|
|
|
|
Stop spamming the forum. You only have to ask that question once.
---
b { font-weight: normal; }
|
|
|
|
|
i want to copy a file from one directory to another directory.
lets say from source to destination directory. even in the source directory the file is written from some where. so how do i know is the file readble and ready to move to destination directory.
|
|
|
|
|
AFAIK there's nothing that lets you determine whether the file is ready to move. So you'll have to try and in case some exception is thrown it obviously wasn't ready.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
hello,
I wana show the cards in randomly from the array when I click the start button. ex: I have 12 picture boxes. and if click the button , the randomize cards come out to those boxes. How should I do ? pls help..this out
|
|
|
|
|
You could use System.Random[^] to generate the random numbers. The Next[^] method has an overload that allows you to specify the maximum value (12, in your case). You could generate 12 random numbers in that range and use them to shuffle the elements in the array.
class CardShuffler
{
Random randomGen = new Random();
Card []cards = new Card[12];
public void Shuffle()
{
for (int i = 0; i<cards.Length; ++i)
{
int newIndex = randomGen.NextInt(i, 12);
Card temp = cards[newIndex];
cards[newIndex] = cards[i];
cards[i] = temp;
}
}
}
|
|
|
|
|
|
hey,
is there anybody can give hints for my game? I ll to appear the cards in Randomly on the specific boxes when I click one button! And the game is to match three same cards by rows or by verticals. So how can I make to drap the cards by mouse to proper destination (exchanging cards for match). And then I lke to store how many times the player makes the moving process of cards and time as well. And if three of cards are in match condition , I want them to be disappear from the interface boxes. Finally, evth gone.. I want to print out the move times and the time to take long for the game.
Pls help me with that! coz I being just a beginner!
|
|
|
|
|
Perhaps if you're a beginner, and you're choosing hobby projects to start with, the fact that you've posted 5 questions in the past few hours is an indication that you need to choose a simpler project. What have you already written ? Did you take the time to learn C# before starting with windows programs ?
Christian Graus - C++ MVP
|
|
|
|
|
How can I add icon to the context Menue?
thanks
MD_NADA
|
|
|
|
|
Put your icon in the Image property of the menu item collection in the context menu.
|
|
|
|
|
How to recieve a List of files from a ftp?
I am sending command LIST.
but recieving only:
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
I am sure that on ftp must be some folders and files (ftp clients show them).
But I dont receive anything between 150 and 226.
So I read the answer from ftp:
Socket clientSocket;
string message;
byte[] buffer = byte[512];
int bytes;
while (clientSocket.Available == 0)
{
System.Threading.Thread.Sleep(50);
}
while (clientSocket.Available > 0)
{
bytes = clientSocket.Receive(buffer, buffer.Length, 0);
message += Encoding.ASCII.GetString(buffer, 0, (int)bytes);
System.Threading.Thread.Sleep(50);
}
|
|
|
|
|
If I remember correctly, FTP uses two TCP ports (20 and 21), the latter for sending/receiving commands and the former for sending/receiving data. Are you connecting to the server's port 20?
|
|
|
|
|
Thank you for idea!
The solution was so, that i was have to create one more data socket for passive mode on another port and receive data from this socket.
|
|
|
|
|
In the old days of basic we used to use a for loop to slow down the processing so the user could see changes that would happen too fast to see. (ie. changes to images in a game or data being displayed.
I am trying to show some pictureboxe changes in sequence (not animation), but the process runs so fast I only see the last change, the same with playing several wav sounds I only hear the last one.
there should be an easy way to delay the ballance of code from running so the user has time to see or hear the changes.
Thanks,
|
|
|
|
|