Flash Card Program - Type All The Words On A Text File And Have The Program Randomly Pull One Of Them
Feb 15, 2009
Anyway, I'm a teacher and am writing a program that simply shows kids a word on a flashcard. There are 2 buttons, 1 to read the word and 1 to go to a new work. There are going to be 300 words. Really I'm just testing it right here. What I want to know is should I be inputting all the words right into the code like I did with "hi" and "not 1" (Don't ask. those are just the 2 random words I picked to test this out with). OR is there a better way (maybe somehow to type all the words on a text file and have the program randomly pull one of them (I don't know how to do this).
Here is the code so far:
Public Class Form1
Dim word
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[CODE]...
View 2 Replies
ADVERTISEMENT
Jan 6, 2010
Looking for a bit of help with some code im working on. I want to randomly input a text line from a .txt to different labels in my program. So far i have this:
Dim FILE_NAME As String = "question.txt"If System.IO.File.Exists(FILE_NAME) = True Then Dim objReader As New System.IO.StreamReader(FILE_NAME)
[Code]...
This works perfectly, but as you can see there is no randomization, it just runs through each line. I want one out of every three lines to be chosen. My text file, on each line, has question tab answer tab answer tab answer tab answer tab correct answer. So for the first inputted question i want it to chose one of the first three lines, second question chose a line between line 4,5 and 6. etc.
View 1 Replies
Jan 28, 2011
Im using visual basic 2010 and im building a program that will basically, you click on something in the list it will automatically open a .dat file pull the information that it needs, and then proceed to enter it into a box on the right. Well heres my issue i know how to do everything else but i cant seem to imitate this image, i need to know how i can make a list like this where the whole row is selectable, and the items/subitems are divided.
View 9 Replies
Dec 28, 2009
How do i play a flash swf file in vb.net? when I click a play button I want the flash file to play? I tried using the flash shockwave control but I do not know how to use it. In the properties panel I entered the path of the flash file I want to play like this " C:Program FilesEasyPHP5.3.0wwwPlaybook.swf" but onclick of the button nothing happens.
View 1 Replies
Sep 30, 2010
I am really confused! My program doesn't work if I don't have Visual Studio here in my PC. To test it I have uninstalled Visual Studio. But my program doesn't work though Flash Player is present there (I have used Flash animation in the first form).
To be more sure about it I have installed Flash. But it's not working! That means the Flash animation file (.swf) is not making a problem! It needs support from Visual Studio to start. Doesn't it mean that some files are not attached with a setup file as a result it needs Visual Studio to run? Let me tell you how I create a setup file of my program.
CODE:
When I click on the icon of my program it shows the error message
CODE:
Reporting details: This error report includes information regarding the condition of WindowsApplication1. When the problem occurred the operating system version and computer hardware is use; your Digital Product ID, which could be used to identify your license; and the Internet Protocol(IP) anddress of your computer.
View 1 Replies
Oct 24, 2010
My "Learn Welsh" application is now near completion, I only have a few things left to add / fix then I will share it with the world. Here's a screenshot of it so far :
As you can see by the picture above, I have created a simple feature in my application to pronounce letters from a word to assist users to learn the welsh alphabet. What I would really like to do is make the program pronounce full words. I already know how to make use of the system.speech reference in vb, here is a quick sample of code:
Dim speak As System.Speech.Synthesis.SpeechSynthesizer = New System.Speech.Synthesis.SpeechSynthesizer
Dim word as string = "hello"
speak.Rate = 1
speak.Speak(word)
Now what I'm looking to do is make use of a welsh based voice and make an application like the one below:
View 4 Replies
Dec 20, 2011
I am currently working on a family project which is based on "Who Wants To Be A Millionaire?" show. There is a huge diffrence between the show and my project. My project is a christmas edition and the goal is not to get money or something, since I will not add it... Erhmm... Let me get to the point. I have already designed a layout and scripted some things. I have about thirty questions but I do not want them to always spawn in the same array, if you know what I mean. I want the program to randomly choose one of those thirty questions and NEVER choose the same question in the same program run. By the way, there are four options on my project: A, B, C and D. I have got everything, I just need a code.
View 3 Replies
Sep 20, 2010
I have a program where a lot of the required information for it is stored in text files. I simply read this information into large arrays. However, I don't think it's necessary to load all the information each time. Rather, it would be more efficient if I could simply search through a list of items to find the one I need and then use the data from it, or to find a similar name and use it elsewhere.
Would I be right in using a database? And is database programming done in SQL? I have a book on it telling me to use the SQL Server (IIRC), so I shouldn't be doing it in the VB.NET Express GUI?
Here's an example of what I would do:
Hex = 03 00 => dex number 003
Search in file Pokemon Dex Numbers
003 returns Bulbasaur
Check Bulbasaur base stats in the base stats file
etc
So basically I'm reusing a lot of information. I think a database would be best and it would all be internal right? I'm getting complaints about access denied to a text file (since it's stored in the program directory in the program files).
So to cap up the few questions I have:
-Databases are done in SQL and not inside the GUI?
-Databases would load internally?
-I could search a database without having to load it into like an array or something?
View 2 Replies
Jun 10, 2011
I'm trying to figure how to pull the computers workgroup name using VB.NET.
View 6 Replies
Sep 5, 2008
I am making a popup program for something, so I added a listbox and such, and I need to know how to go about making the system pull items off the listbox randomly and launch them in the web browser.
View 3 Replies
Dec 15, 2011
I am trying to make a program that randomly selects a name. i have a prompt that allows me to enter the number of names and the names themselves. but i dont know how to save or open the information into an array... can anyone help me with this?
View 14 Replies
Nov 20, 2009
I am not recieving any errors, but the program is not doing what I had expected. I wish to make a program that randomly takes characters (well, not completely randomly. I used the table of letter frequency from wikipedia and included that data in my program by figuring out the max for the random numbers from the percentages in the wikipedia chart.) and adds them to a long list of characters ands saves the file every 5 minutes. I have calculated the timer interval so that the number of miliseconds shown is equal to 5 minutes. I am getting the textwindow, and it is showing (rather rapidly, as I need it to be) a long random list of characters (including spaces). The problems are (A) I am having difficulty saving the text as a file. You'll find the code that is supposed to do that at the bottom. The other problem I am having is once so many characters are added, the ones at the top start disappearing. I would scroll to the top, and each time I did so the letters at the top had changed (this is all during the same test), but I need all characters to be stored when the file saves. Granted, I haven't actually seen one of the saved files as I have not figured out how to make that work. One other thing, not sure if it's important, I haven't run a published version yet. I've only been running the debug builds. Does that affect how it handles actions with files?
Module RandomModule
Dim X, Y, contents As Primitive
Sub Main()[code].......
View 4 Replies
Jan 19, 2011
I want to build a VB program that will go to a web site and pull out a specific piece of data.I am using VB Express 2010 not sure if it belongs in this .net forum.I am successfully getting to the website using WebBrowser.navigate()The data is provided to me in XML format and I am told that it is ready to be retrieved. They tell me to use XML Parser.When I go to their web site I see the data I need to pull out there is a column with tags in front of each piece, the piece I need is between <Vr0> and </Vr0>.I have no resources other than the net currently I do have a dummies book ordered but will be at least next week (at the earliest) before my first book arrives.Can you explain how I can sort through the data and pull out the data in XML format on a web site?
View 5 Replies
Mar 9, 2009
I created a webrowser in VB.net to track employee usage and it seems to be working fine but I wanted to find out what it would take to set this as a default browser on a PC.I also would need to know how to pull the URL from shortcuts so when the program opens I can have it open to the URL in the shortcut.
View 7 Replies
Feb 25, 2009
I am working on a Credit Card Project Program. Where you can create an account by typing in an account number which then starts you out with a $1,000 credit limit and balance.I have most of all the programming done for the project. Except for the updating of the current balance when charges are made and I'm having a problem with the interest which works but only shows you the interest fee when you calculate and not the interest fee + balance due. But I wont worry about that now.
What is the method of doing this. Can I write a new function that will update the balance available based on the charges or payments made? Or can I somehow program that into the current functions?
View 3 Replies
May 31, 2010
How do i actually detect a card is being read by a card reader by using events handler?Like the card reader is connected to the PC using USB, and when a card is flash on the card reader, it will be detected.
View 5 Replies
Mar 21, 2011
opening a program and type something in their textbox or click on button of program if you can tell me refrence or .net platform class that can i access to another filed program
View 12 Replies
Aug 20, 2009
I am having to write a program that randomly selects a picture of a flag. Then the corresponding country needs to be selected and a message box letting them know if they have the right answer or not. I know this isn't near completion but I am stuck on assigning the pictures to the array. The problem I am getting is in the 5 lines like this "Flags(0,0) = My.Resources.USA". VB isn't liking the Flags(0,0) it is saying that a "declaration is expected." The other problem is in this line "PictureBox = Flags(0, x)" the error is "Value of type 'String' cannot be converted to 'System.Windows.Forms.PictureBox'".
[Code]...
View 3 Replies
Mar 5, 2010
Trying to parse an SQL string and pull out the parameters. Ex: "select * from table where [Year] between @Yr1 and @Yr2" I want to pull out "@Yr1" and "@Yr2" I have tried many patterns, but none has worked, such as:
matches = Regex.Matches(sSQL, "@w*")
and
matches = Regex.Matches(sSQL, "@w*")
View 2 Replies
Jan 29, 2010
I know shell command but i want to know another solution.
View 2 Replies
Jan 15, 2012
I am currently working on a program for a higher or lower card game. I have my game set up and in place, however I am having trouble keeping track of the cards that have already been drawn from the deck. I am only playing with one deck and need to make sure that once a card is drawn it is placed in a discard pile and will not be drawn again. I did not post my code due to other students in my class using this forum for their version of the assignment. If someone would be willing to take a look at my code I can send it to you via private message.
View 1 Replies
Jul 29, 2010
i want to make a program that randomly chooses a roller coaster and displays it. I want a hidden textbox1 with rollercoaster names (line by line) and then i want a user to click a button and it will randomly show the name of a rollercoaster in textbox2.
View 8 Replies
May 27, 2011
I have made a media player in vb and I need to make it the default player for *.mp3, *.avi etc.
View 1 Replies
Jul 16, 2011
i am trying to make a program that can get information form a magnetic card reader to fill in a text box like an id and/or password. or make a new account. i am using a MagTek SureSwipe Card Reader 21040140?
View 1 Replies
Sep 26, 2009
I start learning Adobe Flash CS3 and i wonder is there a way that i can insert flash in form and make it more cool ?
If vb can read flash then may question will be how to make it after the flast ends to open next form?
View 2 Replies
Apr 12, 2004
Is there a way to put a flash movie in Visual Basic. If not is there a way to put html in vb.
View 4 Replies
Oct 14, 2011
I have been looking all over the net trying to find a program that can read data from a USB CCID card reader.
after several hours and several pages of useless info i thought maybe there is a way i could create a simple progeam in VB to read the data, so i started another long search for info also to no avail.
Does anyone know of anything like this or if its even posable?
View 5 Replies
May 30, 2012
I'm going to make a program which will share my notebooks Internet Via the WLAN card. how to retrieve the connected peers name, MAC and IP? Also is it possible to get the upload and download speed using by the peers?
View 5 Replies
Jan 13, 2012
I'm basically trying to do a small report card project. I only need to pull 5 Students with each student having 5 Test Scores a piece. The full Code of what I have for the submit button is below. I have actually 3 questions.
1. I always seem to have trouble with them unless I initialize them when I dim them. Is there a better way than below
2. The below code works really well for Student 1 and all 5 test scores. Rather than do that code 5 times though, what is the best way for me to basically state that IF dblStudent1(intMax) = 4 Then Change dblStudent1(intMax) to dblStudent2(intMax) etc.
3. Would this be better suited towards a multidimensional array ?
Private Sub btnEnterGrades_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnterGrades.Click
Dim strStudentNames() As String = {" ", " ", " ", " ", " "} ' Holds the 5 Students Names
Dim intMax As Integer = (4) ' Place Holder for Student Number
[CODE]...
View 8 Replies
Jun 13, 2012
so I want to build an application that will send words to another program. The use is that I have call of duty world at war, and I want to be able to send the game the text "`sf_usenoammo1" which is a cheat code for unlimited ammo. I searched around and was told to look into the "send keys" which looks promising but I still don't know how to use them, any ideas on how to send the info and select the focus to the open program would be awesome.
View 2 Replies