VS 2008 Making A Program Dealing With Change?

Oct 11, 2011

Write a program that makes change for amounts less than one dollar. Input to the program should be an integer less than 100. Output should be the original amount together with the proper set of coins that add up to that number. The program should produce change consisting of the minimum amount of coins possible. The output should be printed in such a way as to avoid unnecessary amounts.For example:

32 cents should be printed as:32 requires 1 quarter, 1 nickel, and 2 cents Rather than� 32 requires 1 quarter(s), 0 dime(s), 1 nickel(s), and 2 cent(s)

View 7 Replies


ADVERTISEMENT

VS 2008 Making Options For Program?

Oct 21, 2010

im new to programing infact this is my second day... im unsure of where to ask this question and i know this is probably not the hardest thing to do lol, i am making a "launcher" to launch a few games, a webbrowser and a few other things, however to do this i have a "set path" in the code, i want to know if anyone can help me make a "setup page" so the user of the launcher can set the path [eg]- to launch firefox i have If IO.File.Exists("C:Program FilesMozilla Firefoxfirefox.exe") Then Process.Start("C:Program FilesMozilla Firefoxfirefox.exe")not everyone has firefox installed to that exact location , so i need to make a settings page to set the paths, each file is launched buy a single button, in the future i may even make another program much the same for people who dont know how to use a pc nd just want to check emails and browse to a webpage.

View 12 Replies

VS 2008 Making Program As Trial

May 3, 2011

I want to make my program as a trial for 30 days or any number of days (you get the point) ,Kindly suggest me how can i achieve this.

View 2 Replies

VS 2008 Making Preferences To Program And Saving

Sep 27, 2010

The projects I've made in VS 2008 and VB6 are pretty basic. I use VS 2008 now, and I was wondering how I could accomplish something like this:Let's say I want to make a toolbar and in the toolbar (under Options...) I want to open up a dialog box that will allow users to change preferences to the software I've made. Let's say, for instance, they can set the background color of the main form to customize their software a bit.

View 2 Replies

VS 2008 Making Program Wait Until Event Has Taken Place?

Apr 1, 2011

I have an app that gets info from the internet into a label, the progam then decides which event will hapen depending on the info obtained, either load next form and continue or Application.Exit

My problem is that the speed that the info is returned from the net, varies and because the info is late sometimes the program exits when it should not.

View 12 Replies

VS 2008 [REQ] Enter = A Line - Making A Notepad Program

Sep 20, 2009

I'm making a notepad program and I'm trying to make it so when you press enter on the very left side in the RichTextBox, it'll tell you what line your on. For example:

View 3 Replies

VS 2008 - Making A Program That Reads A File. Csv,and Information To A Textbox

Jun 9, 2010

I am making a program that reads a file. Csv,and information to a textbox.

After he demand on the Csv file, the same information he writes what is in the same row forward in the same textbox.

A-dos-Francos;39.346246,-9.031105
A-dos-Negros No;39.366089,-9.090929
A-dos-Negros PV;39.366886,-9.131098

[CODE]...

Example: If "A-dos-Francos" is written in the textbox I want that it be replaced by "39.346246,-9.031105"

But in the same textbox.

View 8 Replies

VS 2008 : Dealing With Large Numbers?

Mar 12, 2012

I want a method of dealing with very, very, very big numbers (potentially a million digits). It is very cumbersome to deal with very big numbers in VB, would another language perhaps be better for that?

View 10 Replies

VS 2008 Dealing With Appearance Of MDI Form

Jan 14, 2010

I have a main form which contains a few buttons...some of those buttons open up smaller forms...there is also a button for each of those smaller forms, which should let me bring the chosen form to the front and give it focus...basically like the tabs in your task bar let you switch between which program you are using...but I'm having trouble with this...I need to click the button 2 times before the form I want comes to the front...the first click removes focus from the currently activated form the second click then moves the form I want to the front.I need this to happen in one click..I[code] figured out the exact cause of the problem.it's due to the fact that the first click doesn't actually take effect since the child form has focus...so the first click actually just transfers focus to the main form...the second click does what it should.I knew it was going to be extremely obvious.so the question now becomes...how can I overcome this if that is possible at all...I know I've seen applications where I can still activate functions of the parent form in one click even if I have a child form open and focused.And it's basically what I need...it does what I want and lets me switch between child forms in one click...but it stuffs up the entire look of my parent form...the layout and colors get wacky...the transparency of certain things don't seem to work and my background image is gone..

View 7 Replies

VS 2008 - Class With Attribute / Dealing With DBNull Values

Dec 22, 2010

I wonder, what is the most elegant way of dealing with the dbnull situation. I have a class, with attribute, let's say: "End_Date", which is being read from database. Type of this variant should be date, but as it's the "End_Date", there might be the situation that something haven't ended yet, and in the database in this field I have a null value.

Right now a deal with the problem this way:
Dim mEnd_Date
...
Public Property End_Date ()
Get
End_Date = mEnd_Date
End Get
Set(ByVal value)
mEnd_Date = value
End Set
End Property
But I am not sure if that's a good way as I don't declare variants as any datatype?

View 5 Replies

VS 2008 Use Queries And Dealing With Databases Using LINQ Or SQl / Which Is Better To Start

Jul 6, 2010

I will start a new project, use the queries and dealing with databases using LINQ or SQl ,Which is better to start ???

View 4 Replies

2008 - Draw Random Numbers From Comboboxes For Dealing Cards

Jan 23, 2009

I'm trying to make a program that'll play the card game "War". I've started to code the dealing process, but it doesn't seem to be working. I currently have 3 comboboxes on the form each with numbers representing different cards, 1 that contains all the cards to be dealt, 1 that contains the user's cards, and 1 that contains the computer's cards. I plan to just draw random numbers from these comboboxes for the dealing. However, nothing happens when I click the tool-strip button that's supposed to deal the cards. [Code]

View 5 Replies

Randomizing Program - Making A Program Which Generates A Random Number Between 1 And 10

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

VS 2008 Program Freezes On Tab Change

Sep 2, 2009

I have a program that has multiple tabs, with roughly 100 - 400 controls of varying types on each area. The program takes about...4 seconds to load, which I don't think is right.I did a few memory tests on the program startup, and idling it. At startup, the program uses 100% CPU usage, and 102mb of RAM, but then the form displays, the RAM drops to 20%, and CPU at 0%.Changing a Tab locks the program up for 1 to 2 seconds depending on the tab, and memory fluctuates.Am I doing something wrong here, when a program form has literally over 500 controls of many types, spanning 6 tab pages, or should I be doing something different?

View 12 Replies

Making The Change In My.settings?

Apr 14, 2009

I am making an application for my school library, which lets the user see how many books have been borrowed, how many returned, and how many that have not been returned. I am using My.Settings to do this. I have no problem saving the settings, or making them change according to how many books have been returned or borrowed, but when I try to load them into a few labels, I get an error.

[code]...

This is the error I obtain:Conversion from string "Books borrowed so far: " to type 'Double' is not valid.

View 2 Replies

Making Fullscreen + Resolution Change?

Feb 29, 2012

How can I make my app form go to fullscreen, and change the computers resolution as what I want?

View 2 Replies

Making Form Start Location Change At Runtime

Feb 9, 2011

I have a program that has a large weather map which is 1920 x 1080 resolution. The start location is (0,0). I want people who use smaller resolutions to be able to see the whole map. I would like to create a button that allows me to shift the form down or right say 10 pixels each time the button is clicked. How would I do this?

View 1 Replies

Making A MSN Like Program In VB?

Dec 3, 2009

What I'm trying to do is make a MSN like rpogram where you can send Text form a Textbox to a listbox between 2 computers. I have read About TCP/IP connections?

View 4 Replies

Making A Program Like WMA?

Oct 7, 2009

I used Microsoft Visual Basic 2008 and i am having trouble making it to where i can make a screen that a video can be played in. I mean i know i have to code it to call if from a folder but i do not know how to set up the form so i can make my own program. My teacher said that there used to be a thing where you just put in on the from and it did it for you is there a special thing you have to download to do that or do you have to actually go through and code it yourself. I do not want to be given code i just want to know the best way of starting my project whether it is making a thing so that i can play the videos

View 3 Replies

Making A .NET Application The Only Program Which Can Run?

Oct 18, 2011

What would be the best way to make a Windows .NET application be the only program that can be used on a computer? I have come across timers or events to switch windows back to a window with matching text and some api32 calls to make a form top most.

Is it possible to make an application like the windows lock screen where nothing can be done except that what is on screen? I want to block users from doing other things and only let administrators get to the desktop.

View 3 Replies

Making A Counting Program?

Oct 5, 2009

I am making a program that is very simple, but I'm have problems with it. It runs like this:Theres a textbox and you enter in any amount you want.Next to that there are three radio buttons, deposit, check and service charge.If you enter in 100 in the transaction text box, and check the deposit radio button, and hit "Calculate" it will display 100 (in a total display box); hit calculate again, it will display 200, then 300, etc..Now lets say you keep 100 in the text box, but you check either "service charge" or "check" and hit calculate then it will MINUS the amount in your total display box. So for example if you had 300 in the total display box, and 100 in the transaction box and you checked "Service Charge" and hit calculate it would display 200 in the total display box, hit calculate again, and it shows 100.. etc..

Public Class Form1
Private Balance As Decimal
Private Sub CalculateButton_Click(ByVal sender As System.Object, ByVal e As

[code].....

View 9 Replies

Making A Menu-like Program

Oct 13, 2009

i am making a menu-like program.i added an existing item, which was setup.exe.it appears in the solution explorer.Now, i want to run it using shell or something else at the click of a button. how do i do this?

View 1 Replies

Making A Menu-like Program?

Jan 25, 2009

i am making a menu-like program.i added an existing item, which was setup.exe.it appears in the solution explorer/Now, i want to run it using shell or something else at the click of a button. how do i do this?

View 3 Replies

Making A Program That Has Two Forms?

Jan 27, 2010

I am making a program in vb.net (visual basic) that has two forms. I have one as a sort of "main" base which will be behind everything. Then I have another additional form which is suppose to go on top of the "main" form. Well I get this to work when I show both of the forms, but I want the smaller (additional) form to be centered onto the main form. If you want an easier sense of it, its a small box in a big box. (all centered and aligned). Does anyone know how to do this?

View 3 Replies

Making Program Generate An Exe

Nov 14, 2008

I have an exe with certain variables that need to be changed for each "make" of the program so that each one is customised, but what I need is to create a program that can edit these variables and generate a new exe, or something that can take the source files from my exe and edit the variables then recompile it. Now I don't want to hear "why not just do them by hand", if I wanted that I wouldn't be asking how to do this, I just need this because I need to create 1000's of these custom exes, and I figured that if I could make a program that can do this (edit the variables and compile new exe) then that would make it easy on me since the variables I need to change go in an order from 1 - 1000. I also need it to work on a regular pc not one with all the special VB plugins and stuff, it needs to be able to work on a fresh install of win xp.

View 1 Replies

.net - Making Trial Version Of Program?

Jun 26, 2011

I have searched lots of way to make a 30 day trial limit of my program. They say "Use -Settings- in visual basic application for your variables" to save the information about user (like : registered or not registered or when the program expire). (You can see the 'Settings' when you double-click on "my project" in "solution explorer") Does the data which we use with "settings" saved in our program or somewhere in the computer?

View 5 Replies

Communications :: Making A Messaging Program

Apr 26, 2009

I put it in Communications.For My programming class at school we are required to have made a program. So I decided to make a LAN messaging program which uses VB and Microsoft Winsock Control 6.0. Im quite new and noob at using VB so i'm using a tut here, url... to make the base program.As you can see if you've read it, he uses Microsoft Visual Basic 6.0, while I use Microsoft Visual Basic 2008 Express Edition.

View 3 Replies

Forms :: Making A Program That Has Five Listboxes

May 20, 2011

this is my code till now, i no most of it doesnt make sense but i dont know the most efficient way of making a program that has five lisboxes (4 are classes 1 is absent list) of names but each class can only have 10 student and the user should be able to move student to other classes as required

[Code]...

View 1 Replies

Making A Basic Paint Like The Program?

Jul 22, 2009

I am trying to make a basic "paint" like form for one of my programs.I would like it to be like a function, where I put the input in, the user changes it, and when the user is done, it returns the changed picture.I know how to draw the picture and then draw lines, dots, whatever where the user clicks, but I don't know how to do some of the features like: text, color picker, zoom, erase, select (copy and pasting parts of the image) , and fill. I also don't really want to have a color picker dialog open ever time that the user wants to change color.

View 9 Replies

Making A Msn Style Alert Program?

Jan 3, 2011

im making an msn style alert program. im having troubles getting my program to go off when the time/date saved = current time/date. i got the date from a the date selector object and i formatted 2 integer counters and 2 radiobuttons for the time. but my timer() method doest go off. is my thread wrong or did i do something weird with the date?

Option Strict On
Public Class Form1
Dim strName(1000), strHour(1000), strMin(1000), strAMPM(1000), strCheck(1000), strRepeatcnt(1000), strRepeatcbo(1000) As String
Dim dtDate(1000) As Date

[code]...

View 4 Replies







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