How To Choose A Question

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


ADVERTISEMENT

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

.net - Choose To Learn .NET Or C#?

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

Choose The Last Value In An Array?

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

How To Choose In Random

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

Vb Choose Certain Word?

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

Best Language To Choose For Development

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

C# - .NET Choose Items Dialog

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

Choose .net Obfuscator Program?

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

Choose A File In A Folder?

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

Choose A Random Name From A Txt File?

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

Choose Linq Over Forloops?

Jun 27, 2012

Given a datatable containing two columns like this:

CODE:

Would you use this snippet to retrieve a List(Of Integer) containing all Id's:

CODE:

Or rather this one:

CODE:

This is not a question about whether to type cast the Id column to Integer by using .Field(Of Integer), CType, CInt, DirectCast or whatever but generally about whether or not you choose Linq over forloops as the subject implies.

For those who are interested: I ran some iterations with both versions which resulted in the following performance graph:

The vertical axis shows the milliseconds it took the code to convert the rows' ids into a generic list with the number of rows shown on the horizontal axis. The blue line resulted from the imperative approach (forloop), the red line from the declarative code (linq).

View 7 Replies

Choose Random Quotes?

Sep 18, 2009

EG: i have 5 quotes listed 1 to 5, and i want some code to generate a number 1 to 5 and the label1.text = "chosen number"i cant for the life of me work it out, i think it was dblrnd

View 2 Replies

Choose Randomly From An Array?

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

Choose Song From Playlist?

May 13, 2012

I'm creating an app that loads a specified list of song paths into an array then loads the array contents into a new playlist for the Windows Media Player component (wmpPlayer).

Included on my form is a listbox which displays each of the song titles.

Dim PlayList As WMPLib.IWMPPlaylist
Dim Media As WMPLib.IWMPMedia
Private Structure Track

[Code]....

When I do this the song will play but wmpPlayer loses its playlist so when the song finishes it does not continue through the playlist.

View 2 Replies

Choose Their Own Background For The Application?

Sep 29, 2011

I have an option for the user to choose their own background for the application. How do I then make the image save in the settings for the next time the user starts the application? (This is actual pictures not solid colors).

View 7 Replies

Choose Which Form To Startup?

May 28, 2009

make my application choose which form to startup using an IF statement. Where can I type my IF statement to make it work that way? Please explain in very simple terms.

View 2 Replies

DB/Reporting :: DB Engine To Choose?

Apr 13, 2011

I need to choose a database engine for a project, and have run into some issues. What I want is an SQL engine that works in a server/client environment, where i also can backup the database files from disk. If I am not mistaken, i have to detach an MSSQL database to be able to copy it in the file system. And SQLite is no good for the server/client environment. Will MySQL accomplish this? I think PostGreSQL has the same issue as MSSQL, but I don't know about MySQL.Oh, and it needs to be free to publish with my application.

View 3 Replies

Forms :: How To Choose Only One Radiobutton

Apr 30, 2011

i already write below coding on my code site.. If rdb1.Checked = TrueThen MsgBox("You will depart in the morning at 10.00am") ElseIf rdb2.Checked = TrueThen MsgBox("You will depart o the evening at 04.00pm") EndIf when user choose..ex:destination..user still can select both radiobutton.. i want the radiobutton can be select one only,

View 2 Replies

IDE :: Intellisense, Use Enter To Choose?

Apr 5, 2012

I want to use Enter instead of Tab to choose from the intellisense list(This is in VB)From what I can se from this rather old post [url] it was not possible. Has anything changed from there? I use Visual Studio 2010 Ultimate.

View 4 Replies

OpenFileDialog To Choose A Image?

Jul 31, 2010

I'm using a OpenFileDialog to choose a image.when i m click select image button selects file from the folder and displaying in the picture box. I have another save button, I want when I click on the save button the selected image save in the table.

i want solution for this please give me direction for how i can do?and how coded

View 3 Replies

Pop-Ups - User Can Choose If They Want The Pop-up Blocker On Or Off?

Nov 2, 2010

I made a pop-up blocker in my Visual Basic browser. Here is my code:

WebBrowser1_NewWindow

e.cancel = true

msgbox "Pop-Up Blocked!"

But how can I make it to where the user can choose if they want the pop-up blocker on or off? Also, how can I make it block pop-ups, but still open clicked links in a new window of my browser? Just curious.

View 9 Replies

Randomly Choose An Image?

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

Re-choose Same Option In A VBA Form?

Jan 20, 2010

I working in a tool based in various excel VBA forms. In these forms are a lot of combo boxes, and when I select an intem inside this combo box I cannot select the same item again. So I need to close the form or chosse another item to be able to select the same item. how can I re-select again a same intem inside a combo box?

View 1 Replies

Using A Checkbox To Choose A Database?

Aug 22, 2011

I have four check box's that I want to use. When they are checked, it should populate the datagridview with the data in my database. This is what I'm using:

If CheckBox1.Checked Then
Me.DataGridView1.DataSource = Me.BindingSource1("select * from table1")
ElseIf CheckBox2.Checked Then

[code].....

View 2 Replies

VB: Choose Is Own Serial Com Number?

Sep 16, 2009

The PC has VB program.The VB (running over XP operation system) communicates through USB to RS232 and communicates with electronic board.I found out the when the XP allocate port number more then (estimation) 16, the VB program have problem to communicate with the board.(The problem disappears when the XP allocate port number less then 16).Is VB can handle port number that have high number (like com 45 etc')? and how...Can I force the XP to automatic allocate port number less then specific value?

View 4 Replies

VS 2005 Which .Net Version Would Choose

Apr 26, 2010

I have a multi-threaded client and server application written in VS 2005. The server application runs thousands of SQL Server 2005 stored procedures and a lot of file IO. The client application does a lot of file searching, file IO, and string comparisons.Right now everything targets the 2.0 framework. Would it be advantageous to upgrade one or all 3 of them to the 2010 versions? I'm mostly interested in seeing speed enhancements. I haven't been able to find much saying 2010 is better than 2005.

View 2 Replies

What Should Choose For Source Of Data

Sep 11, 2011

In our class in Visual Basic, we are required to turn in a payroll system with time monitoring. And I have prepared already the GUI interface of my system. My question is what kind of collection of data should I use, considering the employee population of 30 (that's what our instructor have told us.)Should I use:

a. Arrays to store them like every field (employee number, employee last name, etc.) has its own array.

b. Sequential files for me to store them in a text file (and if in the text file, could I still retrieve the records inside that text file.)

c. A Database.

View 3 Replies

.net - Choose Which Excel Version To Open?

Jul 30, 2011

I have several excel sheets which I'd like to work with different Excel versions using VB.NET Basically, I want to choose which Excel version I will open certain worksheet using VB.NET. Is there any way to know which Excel version is installed in the machine and how many versions with VB.NET? And how do I choose which Excel version I will open it?

I'd like to know it through programming, I know that this can be done if you take a look at the registry keys in the machine. Although, what I need is to create a software that asks the user for the Excel version he want to open

View 1 Replies

Asp.net - Choose Enter Rather Than Pressing OK Button?

Nov 9, 2009

I have many fields in the page and the last field is a dropdown with list of values. When I select an item in a dropdown and press Enter, it doesn't do the "Ok". Instead I have to manually click on Ok to Submit. How can I do by pressing Enter on my Keyboard rather than Clicking on "Ok" button after selecting the value from dropdown list. I have set the SubmitBehavior to true.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved