VS 2010 Randomizing - Program Randomly Choose Questions - NEVER Choose Same Question In Same Program
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
ADVERTISEMENT
Nov 17, 2010
This code raise the FTP server files
[Code]....
Now I want to know how to do the following:
1. Select a maximum size per file
2. Promotion system randomly choose a name (with numbers and letters - at least 5) Then the program will show me a link to a file after uploading (for example: [URL] in TextBox2.text)
View 6 Replies
May 19, 2011
I'm trying to configure my program to choose a random entry from an array:
Code:
MsgBox("Participants will now be allocated to each group at random...")
Dim number As Integer
Dim randomnumber As Integer
[Code].....
View 1 Replies
Apr 19, 2012
I am going to create a windows form and add a push button (pretty simple right?) I want the push button to randomly cycle through about 10 pictures and display the randomly selected picture.
A few problems I am facing, 1) I do not know how to do do "randomization" in VB.Net and 2) I do not know how VB.Net would handle displaying an image, would it display on the form i am building or would it display in the default photo viewer for Windows?
View 16 Replies
Dec 21, 2010
i wanna make a program for my little brother, that allows u to input a name then to display a msgbox with pres coded phrases such as "your a good boy" or "your a bad boy". my problem is how do i tell vb to randomly choose between the two phrases, not keeping on choosing the same one?
View 14 Replies
May 18, 2010
I'm relearning VB.net just for fun, so consider me new at this. I'm trying to write a program where the user can input a list of names or numbers, and the program will randomly pick one of those names or numbers. So far, I can get it to randomly generate numbers based on what I put in the code, but I don't know what I should use for the user to input the data, and how to code it so that the program will pick from that data.
View 3 Replies
Jul 19, 2010
I have written a program in vb.net 2008 (using .net 3.5). It's a decent size program. One part of this program is to access an online database and encrypt/decrypt files. To access db I use a hardcoded password. To encrypt/decrypt files I used a hardcoded key. No matter what I do I would need to hardcode one of the two things at least. For example: even if I store database password in an encrypted file I would need to hardcode key to decrypt it. Or vice versa. So after doing some thinking I figured that I need to obfuscate my code so that at least these hardcoded elements/values wont be visible easily. Infact to test, I used a program to disassemble my program. And to my amazement, it showed me every line of code in my program. I felt as if my entire code is pasted in my exe.
Thus I need to obfuscate my code. See I do not need too advanced settings. My program is not among the top shareware programs or super popular that I need very high security. But I need enough security so that my basic code, variables and sensitive information (password etc) is not visible. Please help me choose a good obfuscator which will do the job. It should not be too tedious to use and should be sufficient for me. Plus it should be trusted and secure. I mean I don't want my application to crash or be unstable after I obfuscate it. I have downloaded trial of .net reactor from Ezriz and it seems to be fine. What do you guys suggest? I cannot affort something over $200.
View 5 Replies
Jul 8, 2010
I started work on form1 but now want to make form2 the program form htat starts first now?
View 2 Replies
Mar 3, 2012
Is there any command in Visual basic that can execute a function every time I choose just like setInterval in Javascript
View 1 Replies
Nov 14, 2009
how you can choose the directory to install your program to because when I publish the program it installs only to the directory it was published to! would I need another program to move the files to the directory I want?also im using .mdb files in the program and I want these files to be installed to the same directory but the files arent even in the Application files folder when it is created so when I run the program I get an error telling me the program cant find the .mdb files at the location specified in the code
ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:UsersdazzaDesktopUserid.accdb
that is my connection string, obviously when I install the program it isnt going to be correct so how do I change it oce the program has been built#
View 3 Replies
May 7, 2010
i created a form with a combobox that lists out Assignments ( assignment 1, assignment 2, etc...)......what i need to do is let the user choose an assignment, then the program should look for the matching text file in a folder, ex: user picks assignment 1, and the program will read from assignment1.txt and display the result in a listbox. I have everything except the coding to match what the user chooses and the text file to streamread.
View 10 Replies
Oct 20, 2011
I am making a program which generates a random number between 1 and 10 and when 7 appears it is suppose to tell you how many tries it took to get the number 7 and then end the application. This is the code I have used:
CODE:
This code only generates the number 7 and exits the application, each time i click the random button but i want it to show the other number it randomizes too for example 1 2 3 4 .. etc, if u dont understand, please try it, but im trying to say, when i clikc random it just says number 7 (does randomizing in background) and tells you how much tries it took but i want it to show the other number it randomized also and when 7 appears, then exit the program
View 2 Replies
Aug 12, 2011
I'm trying to make a program that will open a first-run form when the program is run for the first time. I'm planning on just using a setting in My.Settings.VariableName to keep track of the boolean value. My problem is that I cannot figure out how to choose what Form to open.
My first instict would be to use a Sub Main() as my program instance, and then choose and open forms from there, but I can't find a way of doing it. and Many a post suggest not doing it.
Second I tried using ApplicationEvents Myapplication_Startup, but this makes the form pop up before my splash screen, and doesn't stop my main form from showing.
View 2 Replies
May 8, 2010
All I am trying to do is write a simple program that will let me choose a directory and get a listing of all files in that directory and its sub-directories and show it in a RichTextBox. I got as far as being able to select the directory but when I click "OK" I get "access to c:documents and settingsstevedesktopmp3 is denied".The code I am using is listed below.
Imports
System
Imports[code].....
View 10 Replies
Jun 23, 2009
In VS 2010 CTP I read about two new features: line highlighting and zooming. Zooming works perfect, but I can't see any option to choose line highlighting. I thought it'd appear in Beta 1, however there's no this feature either. Will this future work?
View 1 Replies
Dec 10, 2010
I once saw in an app a control that allowed the user to choose when they wanted the Timer running. It looked something like this: And when the squares are green, for example Tuesday 3:15 AM - 4:15 AM, the timer would run during that time period. I'm curious as to what control will allow me to do something similar?
View 3 Replies
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
Nov 28, 2011
I have version VisualBasic.2010 Express Edition , but this version Does not have the choose Microsoft SQL Server (SqlClient) when open vb.net choose : add new data source and choose database and add connection Does not have the choose Microsoft SQL Server (SqlClient)
View 1 Replies
Aug 28, 2011
I'm started my project and here is my code.
con.Close()
con.Open()
com.CommandText = "SELECT * from math.questions where number ORDER by rand() limit 1"
[code].....
View 1 Replies
Mar 19, 2009
I'm trying to make a quiz application with Visual Basic at the moment. I want to write a routine that asks five questions to which the answer must be either Yes or No. It must add up the number of Nos and if the number of Ns is less than two then print out "pessimist", otherwise print out "optimist". So far this is the design of what I've done. [URL]. However, I have no code which I've produced on my own.
Code:
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
End Class
I really don't know how I can kind of add up all the results from each individual question, seeing as radio buttons are used.
View 2 Replies
Jan 13, 2010
I am creating a "Who wants to be a millionaire" game. Lets say I have 100 questions in a listbox. How can i randomally select a question by clicking a button.
View 11 Replies
Feb 22, 2011
Possible Duplicate: Which language should I pick up: VB.Net or C# I'm trying to make a descision on learning VB.NET or C# as my first .NET language. I'm aware that bith languages can achieve the same things since both ultimately use the .NET framework. I'm also aware that C# has a similar syntax to both Java and C/C++, so I definitely see the benefits with this.
But how about the future of VB.NET? Will it be maintained in the years to come?I do know a bit of python, so would that make C# easier to learn?
View 11 Replies
Oct 22, 2009
I have an array with values that differ from file to another. I mean in one file I might have 6 values in an array in another I might have 9 and so on.How can choose the last value in array to use?
View 2 Replies
Jun 28, 2010
I need to setup when a user presses a button it chooses a predetermined question (a selection of 4) I have tried
Dim rand As New Random
rand.Next(0,5)
However thats for numbers, I then tried
Dim rand As New Random
rand.Next(w,z)
and I keep getting errors.So how can I set it that it chooses a letter between w and z.and how would I set it up in the coding itself like would I make it
W = question1 = inputbox("questionisinhere")
type thing?
View 10 Replies
Feb 26, 2011
Sorry, it has been a long time since the last time I posted, but I did not have any idea of a project. Moreover, I had exams.Anyway, I am now facing a problem in programing a 'Sudoku' generator. However, I had an idea to solve it. Unfortunately, in this idea I need a code to pick a number in random other than:
View 9 Replies
Mar 14, 2009
in Visual Basic 2008 i need to no how to get a sertin peace of text from ("texstbox1.text")like say ("textbox1.text") has this in it
"""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""
<!doctype html><head><title> vbforums - Google Search</title><script>window.google={kEI:"Mfa4Sdj0OoHasAPm oNRB",kEXPI:"17050",kHL:"en"};
[code]....
how do i only get the vbforums text?
View 4 Replies
Jul 18, 2010
Which language, VB.Net or C# is the best language to choose for development right now? Needing users to have the .Net framework is something that I see as a drawback to Vb.NET, but what are the pro's and con's of each language? What can be achieved with one but not the other?
View 1 Replies
Aug 24, 2010
Is there a standard .NET control for what I call "a two pane picker", or do I have to code it by hand?
Two pane picker:
The left pane has a list of items. The user can pick items from the left pane to put them in the right pane using buttons between the two panes. Picked items in the right pane can be reordered with buttons.
An example of the "two pane picker" can be found by right clicking the Quick Access toolbar in Word 2007 and clicking "Customize Quick Access Toolbar..."
Note: If applicable, VB.NET answers preferred, but C# answers are acceptable too.
View 4 Replies
Nov 24, 2011
I'm making a program that starts opens different folders on the user's PC. However, I want to be able to have a program in that folder selected. So, whenever the user opens up the folder after clicking a button on my form, I want one file in that folder to be pre-selected.
View 9 Replies
Jul 6, 2011
Does anyone have a function that will choose a random name from a txt file that is separated by new lines?
View 5 Replies