Write A Program That Takes Three Values Then Uses Them At Once?

Jan 22, 2011

How would i write a program that takes three values X Y and Symbol. the program is supposed to display a rectangle which is X

View 1 Replies


ADVERTISEMENT

Write A Program That Takes A String Of Bits And Encrypts It Using DES Encryption?

Feb 19, 2010

Alright, So ive returned to using vb after several years now. Ive programed in VB6.0 years ago and I was quite proficient at it. However after returning to vb (now using Visual Studio 2010). Either Ive forgotten everything, or something has changed. For a university project. Im trying to write a program that takes a string of bits and encrypts it using DES Encryption.

[Code]...

View 3 Replies

Write A Program In VB 2008 Express That Takes An User Entry From A Textbox And Strips Out All The Spaces?

May 10, 2011

I need to write a program in VB 2008 express that takes an user entry from a textbox and strips out all the spaces, changes it to either all upper case or all lower case then checks to see if it is a palindrome. I must also include a loop structure and a decision structure. I have seen bits and pieces of code but I do not really know how to put them together. Basically I need it from the button click to the end. ?

View 3 Replies

Write Textbox Values To Txt File With Program?

Feb 15, 2011

I am new to VB.net

I have a simple form with two textboxes, I want Textbox1 to write to a file named C:VALUE1.txt and

Textbox2 to write its value to a file named C:VALUE2.txt

Any text that is already in the text file MUST be over written.

View 3 Replies

Write A Sql Query That Takes Information From A Database?

Oct 31, 2009

How can I write a sql query that takes information from a database, and then put in the text in a label?

View 2 Replies

Is Write A Function Procedure That Takes An Array Of Strings

May 9, 2010

I'm a beginner and doing a review for my final...the question is-Write a Function procedure that takes an array of Strings, sorts it using Shell sort and returns the sorted array. I do not get shell sort at all.

View 3 Replies

Program That Takes Data From A Survey In The Program?

Jul 7, 2010

I am working on a program that takes data from a survey in the program and needs to compile it into a PDF file. Optimally it would just be a snapshot of the filled out survey. I tried using the PrintForm component in the PowerPacks section, but I need a PDF not an EPS.

View 1 Replies

Office Automation :: Writen A Piece Of Software Which Takes Values From A Serial Port?

Aug 22, 2009

I have writen a piece of software which takes values from a serial port, peforms some calculations and then records the result in an Excel file.It also uses some values stored in an excel file for reference.

The program will run fine for days/weeks until the PC is rebooted mid run.Once it gets rebooted mid run I ge the error "RPC_E_DISCONNECTED"This then occurs everytime the program is run.Full error file below.I'd like to code for this error of course but even a simple fix to stop it happen once the PC has been rebooted to allow it to run again would do. I can give more details but I'm not sure where to start.Target system is windows XP SP3 with office 2007

[Code]...

View 5 Replies

Program Takes All Cpu?

May 10, 2010

A couple days, I figured up a working program and it was def. faster than what we needed. Now, adding a couple more loops, the program barely uses any memory, but the cpu used spikes up to 90+ and just letting it sit doesn't help.I tried taking out the couple loops I put in, but it does not revert back to being fast. It's nothing big, but since dealing with 1000+ excel files a day, I'd rather not do that by hand.

how many infinite loops vb.net can support without dragging down the system? I know, infinite loops are poor design, but it works.

View 11 Replies

Program That Takes A SSN Into A Number Field?

Oct 26, 2009

I am writing a program that takes a SSN into a number field.Issue is when a SSN is entered with a leading 0. Ex. 012-34-5678 The zero is cut off and turns it into an 8 byte field, which is not good for SSN obviously.What can I do to prevent this from happening?

View 10 Replies

Can't Get The Program To Work - Randomly Takes Characters?

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

Terminate Code That Takes Long In Program?

Oct 25, 2010

How to terminate function/code (not entire page) when it takes some time, for example, more than 1 sec?[code]...

I found the command "Server.ScriptTimeou", but it stops the entire page instead of one command.

View 2 Replies

Working On A Program That Takes Input From A Textbox?

Aug 31, 2011

I've been working on a program that takes input from a textbox, removes the punctuation, puts the words into an array (using the split method), and compares the array against a reversed copy of itself to determine if it is a word palindrome or not. I understand the logic, but I'm getting kind of caught up as far as what code to us. This is what I have so far, but no matter what I enter into the text box, nothing happens. I'm completely lost as to what I'm doing wrong.

[Code]...

View 4 Replies

Writing A Program Which Takes One Item From Each Of Two Lists?

Jun 11, 2011

I'm writing a program which takes one item from each of two lists and combines the items in one of three ways selected by the user. The results of the process are provided in either a summary form or a detailed form, again selected by the user. As it's currently developing, this program will contain six subroutines covering each of the six combinations of user selections, which are stored in three Booleans. Selection of the appropriate subroutine is done through traditional "if then else" coding.If I understand OO and Visual Basic (Express 2008) correctly, I could make the subroutines into different variations of one method, which when invoked would automagically use the correct coding depending upon the settings of the Booleans / properties. Assuming this is correct, the problem is that I have no idea how to actually set up code like this.

View 4 Replies

Make A Program That Simply Takes Current Date?

May 9, 2010

i need to make a program that simply takes current date and the input date (users birth date) from the user both as i integer then if the users is 18 or more then the back color turns green otherwise turns red.

Code:
Public Class Form1
Dim int_ThisDay, int_BirthDay, int_ThisMonth, int_BirthMonth, int_ThisYear, int_BirthYear, int_DifYear, int_DifMonth, int_DifDay As Integer

[Code]....

View 3 Replies

Make A Program That Takes Old Records From Access And Moves Them To MySQL?

Feb 2, 2012

I'm trying to make a program that takes my old records from Access and moves them to MySQL. Its supposed to take records from 3 different tables in Access to 3 different tables in MySQL. The first table is "Orders" and it sorts the ones to pull to the dataset, taxDS, by "Where Status = 'Waiting Payment' OR 'Cancelled'". Then the second table pulls its info(this is where i'm having trouble) by the "Control_Number" in the "Orders" table, so basically if the control number isnt already in the dataset its not going to pull the data into the new table "FNF Taxes".

Imports System.Data.OleDb
Imports MySql.Data.MySqlClient
Public Class Backup

[code]....

So now after my 3rd edit and no answers, I'm finally at the point where I'm only stuck on my For..Next statement not working, How can i get this statement to run for each 24,000 controlnumbers?

View 7 Replies

VS 2008 Make A Program Which Takes A Bunch Of Inputs (Name, Age, X2 Score Results)?

Mar 12, 2011

I've recently started programming for Visual Basic Express - 2008, and I'm currently trying to make a program which takes a bunch of inputs (Name, Age, x2 score results) and then turns this into an output at the end which varies depending on the score results.

I've stumbled upon a small hinderance, which is that the very final stage which has a Console.Writeline does not appear after testing the program. So, everything else functions fine, but as soon as it gets past the "Console.WriteLine("All pupils have been calculated, the results are...")" command the program closes itself.I'm not looking for much help, just wondering exactly what is causing this to happen. I also realise that my coding is sub-par and is coded in a slightly odd fashion, but I'd rather just get this one to work and use the mistakes from this one to correct my future work.

View 5 Replies

Create A Program That Takes An Amount Entered By The User And Then Convert It Into Half Dollars?

Oct 13, 2010

Im trying to create a program that takes an amount entered by the user and then convert it into Half Dollars, quarters, dimes, nickles, and pennies when the calculate button is clicked. Each coin has its own function and is shown in separate text boxes... right now i cant get it to work correctly. When i try to get half dollars to work it rounds up and then the rest of the coins say 0. How should i do this?

View 5 Replies

VS 2010 Make A Program Which Access The Internet And Takes The Source Code From The Webpage

Mar 6, 2011

I've been trying to make a program which access the internet and takes the source code from the webpage. I've copied this code from the internet:

[Code]...

View 2 Replies

Forms :: Listbox - Program That Takes Common Applications And Installs Them Silently Using Batch Files

Aug 21, 2010

I'm making a program that takes common applications and installs them silently using batch files. Someone would select the programs they would want to install and my program will write a giant batch file and execute it to install whatever they want. Heres the problem, After the user selects the programs they go into either one or two lists. Non Silent Installer List Or Silent installer list.

Some programs I have simply won't go silently so from there they can choose in what order they want to install these programs. Then there is a combo box that tells weather you want to install non silent programs first or last. From there you hit add to batch file and it would add everything in listbox1 and listbox2 in order. Listbox1 would contain just the text "MalwareBytes" for example. Along with Novell Groupwise and Firefox. How do I get that to add to the Batch List as a code and in order? So the user wants Malware bytes added first to the batch file. How do I add that to my batch list as a completely different code?

[CODE]..............

View 8 Replies

Write A Program To Write In A Xml File?

Sep 14, 2010

I want to write a program to write in an xml file in this format:

<?xml version="1.0" encoding="utf-8" ?>
- <Orders>
<Item id="1" SKU="998123" Description="Super Widget" Quantity="100" />

[Code]....

View 2 Replies

VS 2008 Write A Program To Create A Shortcut In The Startup Folder Of A Different Program?

Jun 15, 2009

how i can write a program to create a shortcut in the startup folder of a different program. So i have one program on my computer that should run at startup, i just need another program to create a shortcut to it, and then copy this shortcut into the startup folder.

View 20 Replies

Write A Program For VB Class That Consists Of A Resistance Checker Program?

Sep 20, 2010

i have to write a program for my VB class that consists of a resistance checker program. I've searched like a madman to help me through this and I have found nothing >. The program consists of 2 combo boxes, the first one is the nominal resistance drop down list of the numbers :100, 150, 220, 330, 470, 680, 820 and 1000. The second list is of the tolerance numbers; +/- 0.4%, +/-0.6% and +/-0.8%. Now what i want to do is select a number from the first combo box and select the tolerance level of the second combo box and i input the resistor of said value into the text box. when i click the check resistor button it should display a message saying if the resistor is in or out of tolerance. For now I have the form all laid out and the values inputted into both combo boxes and i can go to run the program i am able to select said values. Now my problem is trying to get the right code so that i can check the resistors value.

View 2 Replies

Read / Write Hex Values In File

Mar 2, 2009

I'm new to VB.net and have only a few projects under my belt. This one has me stumped!! I need to open a file and search its contents hex byte by byte. (Similar to Hex editor). On finding a particular value I need to replace it with a set hex value then write and close the file. So far I have only managed to read / write the ascii equivilant.

View 4 Replies

Read And Write Values From VB2008 To XML?

Nov 24, 2010

What I want is to have the ability for the user once the values are entered into the Textboxes, the user has the ability to save the values for retrival a some later time. This is what I have so far

[Code]...

View 1 Replies

Write Input Values To A File?

Dec 3, 2011

I have several textboxes and one combobox in which I would like them to have them placed in a file, but I have run into several problems while doing it. I am taking a beginning course and the book doesn't seem to explain things to well.

1. How can I let the user enter a file name after the data and button has been clicked

2.How do get I get a information from the combobox to grab the text within the selected item to the file

3.How to I write the entered text value to the file like using the notepad file?[code]..

View 7 Replies

Write Specific Values To TextBox?

Dec 20, 2010

I have a small database from which I need to select specific data for my Windows Form Textbox.I have a table in a database with a few columns: "ID,Date,Val1,Vla2,Val3,OK" (int, date, int, int, int, bool). There are several rows, but only one of the rows has the boolean value as 1 (or 'True').I would like to select all of the information from that row and write it to different TextBoxes.[code]

View 13 Replies

Extra Low Values Between Characters On File Write?

Mar 28, 2011

I've been asked to re-write an application that was written sometime ago by another programmer. This application reads data from a database table, massages it, and then writes out the results to a text file that is later shipped off to another company. When I run my new application, it generates a file that, according to the byte count, is twice the size of the file output from the old application. However, to look at the two files with note-pad they look identical. I found that by using 'Ultra-edit' that the new records have a low-value byte hex '00' between each real character.

View 4 Replies

Read And Write Values In Registry Pocket Pc?

Mar 10, 2010

i looking for a way to read and write values in registry pocket pc using vb.net so far i have this:

[Code]...

View 1 Replies

Write A Code Which Will Combine These Values And Format?

Jun 13, 2011

I am trying to write a code which will combine these values and format it in the following format to be used as control/validation ID. I have written a line of code that will merge these values together into a long string but I can't get the zeros to fill in. For month, I get 4 instead of 04 and for numeric value I get 1 digit number instead of having numbers with 0 padding to the left.

[Code]...

View 2 Replies







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