Reiterates The Inputs And Gives The Resulting Tip?

Feb 16, 2011

I am stuck on a homework problem and was wondering if anyone could help out a beginner.The question reads:Calculate the amount of a server's tip given the amount of th bill and percentage obtained via input dialog boxes. The output should complete sentences that reiterates the inputs and gives the resulting tip.

here is what I have so far:

[Code]...

It works fine if I input the tip percentage as a decimal, but I need to be able to input a whole number for the percentage, and in turn, output the correct decimal. I'm sure this is a pretty easy fix,

View 3 Replies


ADVERTISEMENT

Print The Resulting Form

Nov 8, 2011

I wrote an application that produce a final form with the result consistinf of labels and 3 buttons (Back, Exit, and print ) when I hit the print button I want it to print the form. Note the labels on the form have results for calculations made on the interface form which display the form which I am printing. What are the actual code to print the resulting form. I am using VB.net 2008.

View 2 Replies

VS 2005 Now() Not Resulting Properly?

Nov 23, 2010

vb.net
"Button_Click event"] Dim dt As Date
dt = Now
Select Case cmdUserSave.Tag

[Code]....

my problem is : when i am trying to save data in sql server management studio 2005 then data will be saved but with some garbage date. date is not saving properly.

View 13 Replies

C# - .Net 3.5 To 4 Migration Resulting In Application Slowdown

Feb 17, 2011

As I wanted to benefit from new multicore threading improvements from .Net Framework 4, I recompiled all of my solution projects from 3.5 to 4.Everything compiled Ok. But what was my surprise to see that my application runs much slower when compiled in .Net 4 compared to 3.5. I was not expecting that at all. It is a scientific processing App, so computing time is what it's all about. I have no clue where to start from, and for the time being, and I prefer to think that I have missed something during the migration process, that is fixable, rather than the App is "per se" running slower in .4 (can't see any logical reason for that...)

View 2 Replies

Batch File Processing Resulting In Error ?

Feb 27, 2009

I was working on an app that calls a batch file to do some simple tasks and found out this machine has some issues when trying to run them. really weird! so i did some testing and here are my resultsthis is a little strange to me and i can't think of why this is happening... let's say i have a simple bat file called test.bat these are the contents

@echo off
echo testing...
pause

When i go to run this bat, this is the output: C:>â– @ 'â– @' is not recognized as an internal or external command, operable program or batch file. It seems every bat i make on this machine is being preempted by the block character which renders bat files useless...

View 2 Replies

Export From DataGridView To Excel Resulting In Incorrectly Formatted Dates

Jul 27, 2011

I'm exporting a datagridview to excel. The first column is a Date (not DateTime) which appears like '2/15/2011'. After exporting the datagridview to excel it appears in excel as '2/15/2011 0:00', furthermore the first 68 rows in excel appear as '6/14/1898 12:00:00 AM'. Where is the time coming from? The column type in the database is date. I've attempted to edit the cell style of the datagridview column to date. I've attempted to figure out how to pre-program the formatting in excel, but it's not working either.

Dim wapp As Microsoft.Office.Interop.Excel.Application
Dim wbook As Microsoft.Office.Interop.Excel.Workbook
Dim wsheet As Microsoft.Office.Interop.Excel.Worksheet

[Code]....

View 1 Replies

VS 2008 - Search Function / Resulting Files Added To ListBox?

Mar 15, 2010

I have a folder with a whole lot of music in it (*.mp3 files.). Now on my form I can play these songs in playlists, and other extra's. But now what I want to finish it, is to create a search function. Here is a picture of my Form. And what I want to add is a Listbox, TextBox and a button.

When I type: "Eye of the Tiger" in the Textbox and click the Button, All *.mp3 files in my folder, and the subfolders, with "Eye of the Tiger" in it, are added to the Listbox (The full name, like: "Survivor - Eye of the Tiger") will show at the Listbox. How can I do this, in an easy way, if possible.

View 7 Replies

Algorithm - Combine Multiple Lists, Resulting In Unique List And Retaining Order

Apr 28, 2010

I want to combine multiple lists of items into a single list, retaining the overall order requirements. i.e.:

1: A C E
2: D E
3: B A D

result: B A C D E

above, starting with list 1, we have ACE, we then know that D must come before E, and from list 3, we know that B must come before A, and D must come after B and A.If there are conflicting orderings, the first ordering should be used. i.e.

1: A C E
2: B D E
3: F D B

result: A C F B D E 3 conflicts with 2 (B D vs D B), therefore requirements for 2 will be used.

If ordering requirements mean an item must come before or after another, it doesn't matter if it comes immediately before or after, or at the start or end of the list, as long as overall ordering is maintained.

This is being developed using VB.Net, so a LINQy solution (or any .Net solution) would be nice - otherwise pointers for an approach would be good.

Edit: Edited to make example 2 make sense (a last minute change had made it invalid)

View 1 Replies

Run The FindPath() Function 2000 Times, And Return The Resulting List Of Moves Into IntLists()(), My Jagged Array?

Mar 31, 2009

I'm working on a program dealing with jagged arrays.Code is below.The FindPath() function works perfectly.It essentially randomly chooses an action from 3 possible choices.The goal of this function is to make it to position (3,3) from (0,0).Sometimes it makes it, sometimes it doesn't.It gives up after 2000 moves.

The PushButton() function is where I have the problem.I want to run the FindPath() function 2000 times, and return the resulting list of moves into intLists()(), my jagged array.I want to use

intRuns = 0
For intRuns = 0 To intLists.GetUpperBound(0)
lstMoveList.Items.Add(intLists(intRuns).GetUpperBound(0)) 'here is where I get the problem.

this section of code to dump the number of attempts it took into a listbox on the main window.I do this at the bottom of the FindPath() function, but that is for testing purposes only.I eventually want to take the successful attempts and manipulate those, so eventually I get the minimum possible number of movements to get from the starting point of (0,0) to the ending point of (3,3).

Function PushButton()
Dim intRuns As Integer
Dim intLists(2000)() As Integer[code]...............

View 3 Replies

Changing The Value Of A Checkbox Without Resulting With A "click" On It

Jan 12, 2010

so i have a user form, and i want to uncheck certain checkboxes if some conditions are met, etc. the problem is, i also have instructions that are supposed to take place when the box is clicked, BUT these are done when the actual value is changed, even if no click takes place. how can i get around this? i tried to have some boolean barriers but because of the complexity of my code, theres no logical way of doing it. is there some property i can use to just change the value and not register a click?

View 7 Replies

Calculate Percent From 2 Different Inputs?

Oct 12, 2010

vb.net
'' Project name: Golf Pro Project
' Project purpose: Displays the commission based on a

[code]......

i dont know how to assign variables and im juist totally lost right now and this is due today and i was sick 2 weeks and am 2 chapters back.

View 11 Replies

Code For Memorizing Inputs?

Nov 12, 2009

Probably another crazy question here, I have my rc car able to move by inputs I make to the keyboard of my laptop, is there a way for my vb code to record those inputs so that I can push a button and it will recreate my inputs?

View 24 Replies

FileSystemWatcher - Multithreading Inputs?

Feb 11, 2012

I am developing an FTP program which: Watches a folder. If a new file is dropped there then upload it. Tells user if uploading and when complete. All the above works, however I wan to add the items to a listbox that are being uploaded. So if I dropped 3 items there it would look like :

Upload Listbox:
cake.jpg
myExcelFile.xls
woot.docxAnd as each one is done, or new files are added it removes them or adds them.

I tried using que, but with no luck as the program just hangs whilst it uploads. So I had a search and looked into multithreading and I tried to implement it, but I can't get it to work as it gives me some 'delegate signature' related error message as you can't pass in values when trying to use 'AddressOf'.

Here is my code for the The .created sub:
Public Sub FSystemWatcher_Created(ByVal sender As System.Object, ByVal e As System.IO.FileSystemEventArgs) Handles FSystemWatcher.Created
'if any file created add fullpath to the listbox
ChangeLog.Items.Add("Created: " & e.Name)
QueueListBox.Items.Add(e.Name)
[Code] .....

View 20 Replies

Read Inputs From A Digibee?

May 18, 2012

Has anyone any experience in using a Digibee. I am trying to read 4 switches.

View 8 Replies

Select All Inputs Of Thisweek Entry?

Jul 13, 2009

how can i select all inputs of thisweek entry.in my database i have fromdate and todate fields, now how could i select if i'm in anyday of the week but i have select to display thisweek activities. it will display into the datagridview all the activity setted for this week...exam in Microsoft outlook there, Day or today, and work week and month button..if i select today or day it will deplay in the datagrid all activties for the day, and if i select work week it will display activities for the entire week.. and month also...i'm using visual studio 2005 and access 2003

View 17 Replies

Blank Inputs In The Edit Dialogs?

Sep 14, 2010

I migrated an application from Vb6 to .NET and there are still a few bugs to fix.One of them is when I want to edit a record, the inputs should have been populated with the coresponding data from the database. Instead, only the drop-downs are populated, the text inputs are blank.

View 10 Replies

Convert Text Box Inputs Into A List Box?

Nov 17, 2011

i want to convert text box inputs into a list box. i have 7 text boxes like; fname, lname , email, phone, etc

how would would i call those textboxes into a list box. also it it possible to make headers for the the listbox.

View 8 Replies

Email Textbox Inputs On Form

Jan 12, 2010

I have three different textboxes on my form. What I am trying to do is send the inputs the user puts into the text boxes in an email. I have the email working but all the text is run together. I would like to have the inputs from the different textboxes to be on separate lines.

Here is the code I have.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim mymailmsg As New MailMessage
Try
mymailmsg.From = New MailAddress("gdy3eg3oyge@gmail.com")
[Code] .....

View 4 Replies

Execute Based On Inputs From User?

Mar 3, 2009

I'm not sure the best way to accomplish this, what i have is 10 checkboxes on a form named chkbox1 to chkbox10, say ther user selects 4 then clicks a button, i was wanting to execute code one after each other like[code]...

View 3 Replies

Get All Inputs Of A Form Error Code Given

Dec 15, 2011

[code]What I am trying to do is to navigate to a website and download all the inputs of the form on that page. Doesn't matter what website I use I can't get beyond this error code.

View 1 Replies

How To Increase Stack Size For Big Inputs

Apr 2, 2011

I have a recursive function that causes a stackoverflow for big inputs. So I want to enlarge my stack. I have never worked with threads so maybe I'm doing something wrong but when I try to make a new thread, the description for the second argument (StackSize) says that if I use a stacksize bigger than the default one, this argument will be ignored and the default size will be used. How to increase the stacksize? Or how to create a thread with a bigger size than the default one?

View 3 Replies

Save And Open A File With Inputs?

Mar 18, 2010

How can I save and open a file with inputs as follows:

1. numeric up and down

2. combo box

3. picturebox

how can i do it in visual basic 2008!...

View 1 Replies

User Form With 5 Specific Inputs

Dec 9, 2010

I'm trying to create a User form that has six inputs.

1.) User input textbox 5.00 to 60.0 inches only accepted.
2.) User input textbox 2.50 to 30.0 inches only accepted.
3.) User input textbox 6, 8, & 10 nominal input only accepted.
4.) User input textbox 60% or 65% only accepted.
5.) User input textbox 2.50 to 30.0 inches only.
6.) User input textbox where 500 shows up in the box as "standard" but can be changed by user input.

Then an "OK & Cancel" button. I don't know whether to use a dialog box or a form, what class, masked text box vs. not masked, etc.

View 14 Replies

VS 2010 - How To Validate User Inputs

Jan 18, 2012

How can I prevent users inserting sql injection in my database? How can I validate their inputs? I am new with this sql injection. I don't know how to prevent users to insert this sttmnentif and I don't have the idea of sql injection how can I be sure that I am safe with sql injection??

View 1 Replies

Writing Textbox Inputs To .pdf Form?

Mar 11, 2009

working with Adobe .pdf files. I have an Adobe .pdf template that allows the user to enter text into different parts of the .pdf template (such as name, address, etc.) I have been developing a VB.Net program that is made up of a set of user forms. I would like to be able to have data that the user enters into textboxes on the VB.Net user forms write to specific areas of the Adobe .pdf template on the click of a command button. I have searched MSDN and Google but I have been unable to find any information on this particular task. If it is can you recommend a MSDN type article or any articles/books/message board posts that provide guidance on how to proceed with something like this.

View 3 Replies

Building Webpage Out Of User Inputs Off A Form

Jun 25, 2009

I was trying to find examples of how one would make a webpage using asp so that I could have the visitor enter information on a form and then when they hit submit it will be attached to my webpage indefintaly and any visitor can view it.

View 4 Replies

Change Database Inputs Using Edit Button?

Sep 12, 2011

Public Class Form1
Dim conn As String
Dim ds As New DataSet
Dim da As New OleDb.OleDbDataAdapter

[code]....

View 1 Replies

Check If User Has Entered All Inputs And Go To The Next Form?

Sep 3, 2009

How do i check if user has entered all inputs and go to the next form.

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
t1.Focus()
End Sub

[code]....

In this code it gives an error, but after displaying the error it jumps to next form.

View 5 Replies

ChrW Function And Handling Invalid Inputs

May 9, 2010

At the moment im working on an encryption program, just to prove something to myself. At the moment I have a problem, when I run the program it will drop a few characters and return wrong characters, here is the encrypter code.[code]the difference between the encryption and decryption code is that the decryption is the addition the square of the position of the characters and the encryption is the subraction of the sqaure of the position of the characters [code]

View 2 Replies

Clear The Input In The Grid For The Next Round Of Inputs

Apr 22, 2009

I am using a datagridview as an input screen for repetitive inputs of a similar nature. Once I have saved the data, is it possible to clear the input in the grid for the next round of inputs. At present, all I seem to be able to do is clear all the rows and then create a new set of rows.

[Code]...

View 2 Replies







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