How To Incorporate User Generated Answers Into Script

Sep 12, 2011

How can I use user generated answers and incorporate them into my script? I want to make an extremely simple AI program which asks for your name and then says "Hello 'Insert name entered by user' " in a Message Box.

View 2 Replies


ADVERTISEMENT

Make The Textboxes Only Accept Letters A, B, C, Or D As Answers From The User?

Nov 15, 2011

I'm having trouble with the Try...Catch code. I'm trying to make the textboxes only accept letters A, B, C, or D as answers from the user. I'm also having trouble matching the two arrays. I wanted it to be like if textbox1 is A then it is correct but in a loop. Please take a look at my code.

This is the programming challenge instruction for reference: The local Registry of Motor Vehicles office has asked you to create an application that grades the written portion of the driver's license exam. The exam has 20 multiple choice questions. Here are the correct answers to the questions:

[Code]...

View 9 Replies

Converting A User Generated List Box To An Array And Then Generating A User Defined Number Of Random Strings And Placing It In A Textbox?

Apr 28, 2007

I'm converting a user generated list box to an array and then generating a user defined number of random strings and placing it in a textbox.The code I have works fine as it will generate the number of random strings the user wants, except sometimes a line is blank at the top of the list but is counted as a string.

View 4 Replies

Have The Results Generated In Such A Way That A User Can Select One Of The Records?

Jun 16, 2011

I have a search form that has the ability to return many records. I would like to have the results generated in such a way that a user can select one of the records.An example:

John Doe
Jane Doe
Mark Smith

If the user specifically wants to look at Jane Doe, then that record would be pulled and put into a new form. How can I make the records selectable especially when I don't know how many will be returned on the search.

View 5 Replies

Asp.net - Get User To Click On Button A Letter Is Generated And Sent To Printer?

Sep 25, 2011

I have a web application build using classic ASP and VB. How do I print a document from within the back end VB code?

Protected Sub btnPrint_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnPrint.Click
End Sub

What i am trying to do is get user to click on button a letter is generated and sent to printer?

View 2 Replies

.net - User Generated Hyperlinks To Files Hosted On A Network Share?

Oct 26, 2009

My ultimate goal is to allow users to select a file from a dialog as if they are uploading a file. Instead of file being saved to the server, a hyperlink will be generated from the file's path.This hyperlink will then be used on our intranet page in order to open the file located on our network share.Is there any practical way to accomplish this?I have tried both an HTML file type insert and .Net's FileUpload Control but neither will work since for security reasons the full path of the file is never accessible.

View 2 Replies

C# - Adding X:Name To A User Control Gives Error In Generated Code Of Page Its Used In?

Oct 22, 2010

I am basically using a user control for the first time, so hopefully it's just a dumb mistake.I have a simple user control

<UserControl x:Class="TestProject.WebApp.myUserControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

[code]....

View 2 Replies

C# - Delete Dynamically Generated PDF File Immediately After It Has Been Displayed To User?

Mar 18, 2009

I'm creating a PDF file on the fly using ITextSharp and ASP.NET 1.1. My process is as follows -

Create file on server Redirect browser to newly created PDF file so it is displayed to user

What I'd like to do is delete the PDF from the server as soon it is displayed in the users browser. The PDF file is large so it is not an option to hold it in memory, an initial write to the server is required. I'm currently using a solution that periodically polls for files then deletes them, but I'd prefer a solution that deletes the file immediately after it has been downloaded to the client machine. Is there a way to do this?

View 4 Replies

Custom Config File Entries Generated When User Adds Reference To Dll?

Jun 5, 2009

Don't know if this is possible, but I'd like a config section to be generated when another developer adds my dll to their project. This way they don't have to look up in code or a doc as to what they need to put in their config file.

View 3 Replies

VS 2010 : Create A Program That Rolls A Dice A User Generated Number Of Times And Give The Frequencies Of The Numbers That Come Up?

Oct 26, 2010

I need to create a program that rolls a dice a user generated number of times and give the frequencies of the numbers that come up.I cannot for the life of me figure out how to get the frequencies?

View 5 Replies

Accomplish Is When The User Presses A Button, "moneyamount" Increases By A Random Number Generated?

Jul 4, 2009

the goal i want to accomplish is when the user presses a button, "moneyamount" increases by a random number generated. the problem i am having is that after the action is finished the script does not seem to save the new value and always starts at zero. here is the script:

Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dojob1button.Click

Dim moneyamount As Integer = moneyamount + Int(Rnd() * 10)
moneylabel.Text = "$" & moneyamount
End Sub

View 4 Replies

Getting Answers Into Decimal And Calculating

Feb 10, 2009

I'm trying to get the answer "dblcost" to go into 2 decimal spots. Sometimes it does, sometimes it doesn't.Also, I have to create something that continually adds each transaction to lblfinalcost. Mine seems to be a little buggy.Right not I have strfinalcost = strginalcost + dblcost. Another question i have is how do I make a number default into the textbox? I want it to say 1, but be able for the user to delete it and then replace it with their own number.[code]

View 14 Replies

Signature For Msdn Answers?

Dec 12, 2009

if you are a constant answerer here on msdn, and do not have a unique signature, or no signature at all, please take a little time to create one... eason ..when quoting a post of a member, if no signature available, then it would have to be followed w/ "quoted from so and so's post", this so so said this, etc.

View 16 Replies

Stop Repeating Same Answers

May 25, 2009

there are 8 text boxes where user should put 8 answers, but when he type one answer in one text box it cant be found in some other text box.Basically when button is clicked there should be check for repeated answers.

View 3 Replies

Displaying The Equation And Answers In A Listbox?

Apr 27, 2012

First off the listbox needs to show the equations for the number entered between 0 and 12 example:

1+1=2
1+2=3
1+3=4

[Code]....

View 7 Replies

Error With Compare Answers Function?

May 12, 2012

When Score exam is clicked, the answers from the keys file is read using ReadLine method 6 times to fill the Answer Array. then the users' answers and the answers from the keys will be paired up by calling "Compare_Answers" function in the RMV Global Module. and calculate the score and it will show on the main form.

View 9 Replies

VS 2010 How To Line Up Answers In The Listbox

Oct 18, 2010

So far this forum has been awesome answering my questions in full. I am very new to Visual Basic but I enjoy learning about it greatly. My question now is I now need to get all of my answers lined up neatly in the listbox using "zoning." Now I have know clue how to start this. Basically I need to make this..

Sum: 5 = 2 + 3
Difference: -1 = 2 - 3
Product: 6 = 2 * 3

[code].....

View 1 Replies

VS 2010 New At Forum Answers For A Virtual OS?

Mar 26, 2011

i'm developing a virtual OS in vb2010. i want to know how i can move objects in the mouse during the runtime of the project? ; like when we move icons in desktop(i saw it in a youtube video, so i know it is possible xd) my second doubt: how i can i can detect if a position is fulled with an object; i want to create the effect of windows superbar; .

View 10 Replies

Declare An Array Of 20 Integers To Store The Answers ?

Jan 29, 2009

I am looking to declare an array of 20 integers to store the answers to the questions, and then for the next button i am looking to get the answer and write it to the array. If one radio button is checked then i want it to write 1 to the array. Then finally i want to write the username, the array of answers and score to the txt file. How can I do that?

below is my code i have so far:

Imports System
Imports System.IO
Public Class Question

[Code].....

View 1 Replies

Create A Magic 8 Ball That Would Display Answers Via Array?

Apr 17, 2011

The goal in this assignment was to create a Magic 8 Ball that would display answers via array.Here's what I got down so far, now I apologize once again, I forgot most of the stuff so I don't even know if it is REMOTELY close to what it's suppose to be

Public Class Form1
Dim ArrayRes(7) As String
Private Sub btnASK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnASK.Click

[code]....

View 4 Replies

Forms :: Sending Bulk Messages To Yahoo Answers?

Jun 28, 2010

I'd like to create one as I am an affiliate marketer who wants to reach customers based on key words. I don't regard this as spamming since I'm not randomly sending out links its based on key words like I said. Y!A might regard this as spamming anyways but so what. In Yahoo Answers you click the question you want to answer, type in the answer, it takes you to a preview screen, and then you click submit. I suppose the script/program could involve automating this task.

Its not that I need everything to be done when I'm away from the computer, I don't mind working the program at all each time I send a mass amount of messages. Someone created a program a while back that was *supposed* to send bulk messages as they stated in the description but as it turned out this was not an option you could only comment on resolved questions. When I did send mass comments to questions which related to my key words, I clicked the link to confirm my comments went through and they did not! This program was a waste of my time and energy but that's life.

View 1 Replies

Multiple Choice Quiz With Access, Get 3 Levels Of Answers?

Nov 22, 2011

I am working on a multiple choice quiz, admin screen, student login screen where they choose their level of difficulty. I have been able to start the quiz, have the questions and answers filled, user answers question, check if correct or not, if correct then the score is incremented.I am able to set up a variable for 'level' and want to write some code so that whatever is selected then that table / questions will be selected and displayed to the user.

The way I'm thinking at the moment seems very long winded. I think I'll have to write an IF ELSE statement/case statement for each of the 'navigaterecords' and the sql statment for beginners, intermediate and advanced.Assume there is a variable 'LEVEL' - have not actually done this yet. Where the code refers to 'advanced' is where I have been trying it out to select questions from the advanced table.

Imports System.Data
Imports System.Random
Imports System.Data.OleDb

[code]....

View 8 Replies

VS 2010 Making A Calculator With 1 Textbox For Input And Answers?

Feb 5, 2012

so i am new to v basic and as you can see in the picture below that i have 2 textboxes just to put in them 2 numbers and then do mathematical calcualtions on them and a label up there that shows the answer so i wanted to make 1 textbox to type in the 1 st number then press the symbol for example + and then type the 2nd number and then press equal so the result is formed in the same textbox the only problem is idk how i searched google but i couldnt understand here is my source code

[Code]...

View 1 Replies

C# - Incorporate VB Script Editor In Win App?

Apr 23, 2011

I created a Script Editor in a Windows Application using a RichTextbox and Regex for adding the colors for the coding. However it is not close to the Real VB editor. Is there some real good examples out there of how to build one or some free downloads?

View 1 Replies

How To Incorporate The Spreadsheet Into A VS 2008

Jun 22, 2010

I particularly like the Publish facility within VS 2008 (VB). What I actually want to do is use the same facility for a Spreadsheet. I.E. I have a Spreadsheet with a chunk of VBA code behind it.

Is there anyway to incorporate the spreadsheet into a VS 2008 VB project so that I can use the "Publish" facility to distribute updated versions of the spreadsheet from a web page (As created by the Publish Wizzard)

View 1 Replies

Incorporate A Progress Bar Into My Code?

Apr 13, 2010

I am looking to incorporate a progress bar into my project to assure my fellow workers that the program is continuing to run after the process has been started. I have looked here[url].If someone could include the progress bar into my code posted below,[code]...

View 1 Replies

Incorporate A Spreadsheet Or Array?

Jun 11, 2011

This seems like it should be easy. I have an Excel file that has the information I need, but I don't want to need Excel to run my program. I need to be able to package that information with the VB code. I'm using VS 2010.

I know how to write a program to read Excel and put information into an array, but can I turn that information into something my next program can read independently of the original spreadsheet. This isn't something I have time to input by hand.

I'll try to explain this one more time so that it's clear as mud. I need to be able to incorporate an Excel spreadsheet or VBA code into a VB program so that it becomes independant of MS Office and/or (because it'd be nice to know how to do both) read information from the Excel spreadsheet and then save that array for use in a later program thereby removing the influence of Excel completely.

Finally, I'll explain my program and desired function so that somebody might be able to interperet my desperate ranting. I am writing a program that will require properties of steam to calculate boiler performance. I have found an example of the properties I need [URL] or I might be able to find other sources. I now need to roll that information into my own program.

View 8 Replies

Incorporate Chat Into Project?

Dec 10, 2010

I currently have two projects that are working fine alone. One is a simple chat program (found on forums) and the other is a client tool for my clients to use. I want to add a button to my client tool that executes the chat. When I try to add the chat code to my client project I get errors and understanding some of the issues. I know that some of it is that there is a form in the chat with buttons for connecting to the server and then a button to start the chat but I want to make it "one" button from my program that is "chat" and it connects and opens the chat form.

[Code]...

View 1 Replies

Incorporate Ribbon UI Into Form?

Jan 20, 2012

how to incorporate Ribbon UI into my VB.net form????

View 2 Replies

Incorporate Some Exception Handling

Sep 29, 2009

I am currently working on my Final Project and I need to incorporate some Exception Handling. I have created one in the following code but it isn't working. I don't have any "Errors" or "Warnings" but when I run the program it says the "BadNameException was unhandled." I thought I followed the steps correctly from my book, but I am stuck somewhere. [code]

View 6 Replies







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