Bridge Program The Time Between Appearance Of Cards Longer?
Apr 24, 2011
I want in my bridge program the time between appearance of cards longer. Different suggestions can be found in the forum. I tried "System.Threading.Thread.Sleep(100)" resulting in the card appearing in half and after the delay the rest. Only the following code does as intended:
Dim Timer As DateTime = Now.AddMilliseconds(2000)
Do Until (Now > Timer)
Application.DoEvents()
Loop
I place this just for the code of the next card to be displayed. It is strange that the dim statement should be there. When I place it instead at the beginning of the program the code doesn't function anymore.I can live with that, however, in the forum some contributors write that this code is dangerous as it can slow down the machine considerably..Is that true or and/or only true for older versions of Visual Basic?
View 5 Replies
ADVERTISEMENT
Apr 19, 2012
I need to make a matching card game in VB 2010. i have generated my cards but now need to show the cards for 10 secs then change the cards to (AppPath & "Cards ed.png"). then when a user clicks on the card the card will flip over.*How would i set a timer to turn all my cards into*(AppPath & "Cards ed.png") after 10 secsbut still have the values from the array and when i click the cards they flip over (from red card to numbered card)
Code:
Private Sub Place()
Dim Counter As Integer = 1
For Row As Integer = 1 To Int_Grid_Size
[CODE]..........................
View 2 Replies
Jan 21, 2012
How will I send data or signal to H-Bridge then to DC Motor using parallel port in vb.net?
View 2 Replies
Jun 12, 2010
Below is what I have so far this is a webproject, but its for my VB class so I'm not sure where else to post. The object is to create a program that randomizes 52 cards and based on the five cards it draws determine whether its 2 of a kind, three of a kind, straight, or flush.
Partial Class _Default
Inherits System.Web.UI.Page
Dim used(51) As Boolean
[Code].....
View 4 Replies
Aug 12, 2009
Module Module1
Sub Main()
Console.WriteLine(CInt("123.656"))
End Sub
End Module
In the above code as soon the the output appears in a window,the window disappears....How to solve this problem?Do i need to add some code to hold the output window for a longer time?
View 1 Replies
Aug 19, 2008
Below is the code that we have been working on. We have bolded the parts which we are unsure about - they are producing errors. (its near the bottom)The program is designed to generate a random hand of cards out of our list of them. This program is a smaller version of what we hope to have in the full one - ie. It tries to get a random hand of 3 cards out of a possible 5.
The part we are having errors with is getting the images to display on each of the 3 'picturebox' objects using a loop (so we don't have to type each picturebox individually).
[Code]...
View 8 Replies
May 26, 2011
Myself and a colleague have a program called SwiftScreen, its been out for a month now but since May 25th our program is returning an error when they fill out a form that sends us an email (through our application). My best guess is windows recently had an update of somesort but i don't know. Does anyone know a way to send mail, perferably to a gmail account, that still works using Vb.net?
Here is the email code i'm using"
Dim message As System.Net.Mail.MailMessage
Dim smtp As New System.Net.Mail.SmtpClient("smtp.gmail.com")
Dim fromMailAddress As System.Net.Mail.MailAddress
[Code]....
View 9 Replies
Oct 26, 2009
I'm writing a simple program to "change" a login. I need to know how to create a variable that lasts past when the program is closed (so the changed login stays and is not reset). Here is my code:
[Code]...
View 11 Replies
Apr 17, 2010
My program used to run on my system just fine until I removed some other applications. Then the proggy was giving me a runtime error. The funny thing is that once I installed visual basic 6 and added a reference to dao360.dll, or the Microsoft DAO 3.6 that the program then worked without error.
VB6 was never installed on this system before. The program worked just fine until applications were uninstalled from the system. What happened that caused the reference to stop working? Why did the program stop finding dao360.dll even though the program itself wasn't modified since vb6 wasn't installed?
View 2 Replies
Aug 4, 2011
My question is : How do I find out what processes/information are contained inside System .dll files ?
I recently wrote a games program which used the file "Cards.dll" in which was stored a full deck of cards. That was exactly what I wanted. I discovered the existance of this file by chance from a friend and would like to get a list of the contents and functionality of all the other .dll files.
View 3 Replies
Apr 9, 2011
Ok so I'm trying to communicate with the database through a php file, Sort of like this:
View 1 Replies
Jul 10, 2010
I have a small web browser application I wrote in VB.NET that is specific to it's use. To set it up, I have to setup port forwarding. Is there any way I can write another .NET app that runs on my dedicated server, accepts an incoming connection from my home PC that sits there. Then any other incoming connection from the outside world can then be connected to my home pc through the app on the dedicated server? If there is a term for this sort of process or program, I do not know what it is.
View 3 Replies
Jun 9, 2010
I decided that before I can fully and effectively criticize this monstrosity , I needed to take in the full view of it. So I went and installed the Community Forums NNTP bridge,availableSeems to be working.
View 9 Replies
Sep 17, 2009
I have a many to many relationship between 2 tables so therefore I have created a bridge table, to produce a one to many relationship. how to I code this, so it shows in a datagrid?
View 1 Replies
Mar 20, 2010
My school block my website and i want to make a Bridge Network like "Freegate" It have "Server" and "Client"using my pc to be the server at home and the pc in the school are clients Than it will contact to the server, and any data will go throw the Server and go out!
View 1 Replies
Feb 23, 2010
With a Time value in my program. Basically, I am importing a travel Time from a database e.g. 3:45 so it takes 3 hrs and 45 minutes to get from a to b. I then want to double this - 3:45 * 2 = 7:30, and then want to multiply it by a cost e.g. travel is charged at 25 per hour. so it would be total travel time = 7:30. Travel cost = 25. Total Travel Cost = 7:30 * 25. In the access db, it is stored as a text field, and then imported in vb as a string.
View 1 Replies
Dec 15, 2009
I need some code to get the cards out of cards.dll in VB.net. And do the cards have to go in a picture box?
View 2 Replies
Feb 6, 2009
what is Wild cards how and when can i use the wild cards
View 1 Replies
Jun 10, 2009
I would like my website to accept credit cards online. I will manually process the payment. How can I make sure my website is secure to accept payments? Does VISA have specific requirements? Also, how can I check that the credit card information is valid?
View 1 Replies
Apr 27, 2009
basically i've gotten myself into a mess with some last minute project work. shame on me and all that but thats college students for ya. basically i seem to be having problems assiging a simple integer to some pictures in an array. now. basically its a card deck. i've looked this up so many times yet nothing comes to me that fits my code or the way i've been taught. in any case i've got an imagelist and put it into an array to symbolize a deck. now. as i'm doing blackjack i need each card to have its own value. so obviously 2 of hearts value = 2, king = 10 etc.so what i've done is created a function that calls on a string. and used a select case to give a value based on the filepath of the image. however it failed hoplessly. heres a piece of the code:
Sub getcardvalues(ByVal card As String)
Select Case card
Case "decklist.images.item(2club.png)"
value = 2
[code]....
despite this seemingly simple solution i can't seem to pull out the path of these cards as a string. the array simply gives me a number and the actual picture dosnt want to be a string. so my question is this. how can i pull the image path out of the array (eg: deck(1) = decklist.images.item(3club.png)) and turn that into a useable string?
View 1 Replies
Nov 24, 2009
how to calculate how many cards are needed at least to make a straight in texas hold'em?
pratic examples:[code..]
View 2 Replies
Mar 1, 2009
new to programming and I was wondering how would I make a deck of cards for a blackjack program? I would post some code but I don't know where to start
View 3 Replies
Mar 5, 2012
I have to make a card game called SNAP. The point of the game is that two players will flip their card and if they match then one of them have to call out snap. The first one to call out snap gets the card.
I'm having trouble on getting the cards to generate randomly but match every now and then.
View 3 Replies
Feb 27, 2009
Ive got 16 cards to make 8 pairs (simple) ive got it to detect a pair by piccard1.image.TAG what i need to do is though, make the 'tag' part random, 0-15 so i can give each card a tag, but it has to be unique and i cant make it give 16 different number.
View 2 Replies
Sep 5, 2009
i have my program, and i would like to be able to give it a look that doesnt change. What do i mean, i mean like, my programs buttons forms scroll bars etc change with the theme of the pc. How would i stop this? Also, how would i create custom looks for my buttons scroll bars etc.
View 6 Replies
May 2, 2010
I have a program that I have been building for quite some time, which is sort of a media center type of program. One of the features it includes is a CallerID and call management system that I have integrated into it.I am actually turning the ringers off on my phones, and the program will have it's own ringer instead. One reason i'm doing that is, it is programmed only to ring if I actually have the number already in my phonebook (i.e. no more telemarketers), and other features like quiet time (after a preset time, let's say 11:00 the phone won't ring).So anyhow I have 2 sound cards in my system. One sound card is connected to my living room home theater, which would be for watching tv, movies, etc.The other sound card is going to a separate amplifier that will power speakers that are throughout the house. I want to be able to programatically tell my program to output sound on the secondary sound card.It will be just a simple wav file, and hopefully speech as well (using the system. speech.speech synthesizer).So no matter if your watching a movie, or playing xbox (meaning the stereo will no longer be playing audio from the computer),when the phone rings you will hear the ringer over the speakers, along with a voice saying "Joe Schmoe is calling".I don't know if I can specifically have it play certain sounds over one card, or if it is a per application setting.For instance, if you are watching a movie (meaning the movie is playing through the windows media player control, inside of my program), and the phone rings, I want the phone to ring on the other card without changing the audio from the movie. If i'm not able to do it that way, and if the program itself is only able to play through one card at a time, I will simply make the caller id portion it's own separate application, that way I could make it happen.
View 19 Replies
Oct 2, 2009
I need to enable /disable Nic I have a system with two nic cards "Local Area Connection" and Local Area Connection 2" my code will enable and disable the second nic no problem but when I try to disable /Enable "Local Area Connection" it sees the nic but disables "Local Area Connection 2" code to the Enable NIC.[code]...
View 5 Replies
Nov 10, 2011
i am working on a blackjack program, the dealers button works fine and all but when i press the button to hit me it says "Object reference not set to an instance of an object.", and i had it work before, but when it does work the aces either count as 11 or 0, and how can i get the value of the total amount of cards to reset.
View 24 Replies
Mar 11, 2012
I am using Visual studios 2010, And what I am trying to do is make a card game, and I have some ideas for how to put a lot of it together however I am having trouble getting started with making the cards to begin with.So I need something to call to represent the cards with numerical values with ace being 1 and king being 13.
View 4 Replies
Nov 4, 2010
I am creating a VB.Net program to deal out five random playing cards.For that purpose i checked the following tutorial - [URL]..It works great. But It has too much functionality I just want to get rid of the unwanted code to just dealing out 5 random cards. functions and classes from thius program that I should use.
View 2 Replies