Round The Prices In This Manner: If It's 12.48 Should Be 12.99?

Aug 12, 2009

I want to round the prices in the following manner: if it's 12.48 should be 12.99, if it's 12.98 it should be 12.99, if it's 12.10 should be 11.99 and so on.

View 39 Replies


ADVERTISEMENT

List All Locales In Specific Manner?

Aug 8, 2009

I want a list of all locales which I need to show in the combo box. I get all cultures as :

View 5 Replies

Lock A Folder In Professional Manner (without Using Encryption)?

Jun 18, 2011

I want to lock (or completely hide without allowing to see with show hidden folder check) a folder with C# for windows platforms. This should be work for both FAT and NTFS file systems. I do not wont to use encryption since it is slow.

Also I need this as a robust solution so changing CLSIDs is not working.

Also removing permission with FileSystemAccessRule with AccessControlType.Deny also not working for me. Because that only work on NTFS and also if it is worked then user can right click the folder and remove deny AccessControlType.

View 3 Replies

Programmatically Utilize Textboxes In A Serial Manner?

May 13, 2012

let's say I create a basic windows form with 100 textboxes, and create a variable that starts at 0, and counts up to 100. How could I pseudo-effortlessly have, for example, textbox7, when the variable is at 7, display a piece of text, instead of writing 100 lines of code such as

if vara = 7 then textbox7.text = "hello"

is there a way to utilize something in the nature of LINQ, where you could somehow say,

if vara = 7 then textbox & varA & .text = "hello"

this is just an example, I know it will not work, after paying a small bit of attention to the likeliness and possibility.....

View 5 Replies

Parallel.For Listview Items In A Thread Safe Manner?

Feb 22, 2011

I have a small program that checks webpages for certain strings. I am using VB express 2010 .net version 4.I have the list of URLs in a listview, and loop through all the urls, perform a webrequest, check if the source contains certain strings and then add a subitem to the current listview with text to indicate the result I am attempting to speed the application up using a parallel.for loop, but this causes a cross threading exception.This is the code for single threaded:

For i As Integer = 0 to lvUrls.Items.Count - 1
Dim lv As ListViewItem = lvUrls.Items(i)
lv.UseItemStyleForSubItems = False

[code]....

View 2 Replies

Place A Video On An ASP.NET Page And Make It So That It Will Load In A Timely Manner?

Sep 28, 2010

I have an .avi video (500 MB-50 minutes) that I embedded using the following code in VB.NET:

<OBJECT width="360px" height="360px" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" VIEWASTEXT>
<PARAM name="autoStart" value="False">

[Code]....

Worked fine except that it took approx 5 minutes to load. Converted it to a wmv file (cutting it down to 300 MB) and it started playing instantly while it download. Unfortunately there are some computers that will not play it for some reason. It will load and the timer starts up as if the video is playing but there is just a black screen. I ran some tests and determined that it's not a browser issue.

How can I upload a video that instantly plays on all computers?

View 1 Replies

Round Up The Numbers - Round Up The "TotalVolume" And "AvgHL" With 2 Decimal Places

Apr 27, 2010

With the following problem which I want to round up the "TotalVolume" and "AvgHL" with 2 decimal places. However, my ListView2 is still showing as the following example.

Example:
ID --------- Average H/L ----------- Average Volume
12 --------- 1.230000 ----------- 4251.230000
17 --------- 0.560000 --------- 12345.560000
23 --------- 0.320000 --------- 2345.010000
54 --------- 1.230000 --------- 122.550000

Dim conn As SqlConnection
conn = New SqlConnection(Source)

conn.Open()

[CODE]...

View 6 Replies

Sum Prices From Different Forms?

Dec 25, 2010

I want to do a project in vb.net 2008 using database from MS Access 2007. I have to go from the main menu to the other forms, in each form I have to select one or more items, each item has a price (should be taken from the database *.accdb), then I have to return to the main menu, click the cost button to find the total cost of these items.

1. Where I have to write the code to access my database, in the main menu or in each form individually? and how to write it? I used the code found at:

http:[url]......

but after DEBUGging told me that it cannot see "Table1"?

2. When I am in one of the forms, do I have to "save" my selections, and how?

3. How do I exit from any of the forms to give me the total price to the step, form, I have reached?

4. The total cost should appear in a separate form (screen) at the same time should be saved?

View 10 Replies

Using IF Statements To Add Together Prices Using VB

Jan 29, 2012

I am trying to use if statements to add the prices of a cruises special packages together. I am using check boxes for the packages, so any, from none to all 3 are able to be checked. The packages available are VIP, excursion and restaurant. The price will also depend on the cruise length (7 or 10 day). I am wondering on which format to use, and if I even need to use if statements, how to make this statement true,

View 1 Replies

Add Prices And Display Result?

Mar 6, 2010

I have a school project, and for some reason in the book it doesn't show how to keep a variable cross sub functions. Can anyone give me a clue of what i'm doing wrong ?

Here is my code
Private Sub processButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles processButton.Click

[code].....

View 2 Replies

ASP.NET VB Changes In Stocks Prices Prompt

Aug 12, 2011

I'd like to ask about the way in ASP.NET VB to detect the changes in stocks prices, if the price inceased, the containing cell inside the grid blinks in green, decreased will blinks in red? ex: if the price now 10.00$ and increased to 10.01$ the containing cell will blink with 1 second in green..

View 1 Replies

Add The Checkbox Prices Up To Display In The Label?

Dec 30, 2010

i have a form and it has checkboxes that are different prices for options on a car. my problem is I don't know how to write the code to add the checkbox prices up to display in the lable.

View 4 Replies

How To Assign Prices To Each Model From The Combo Box

Mar 3, 2009

Anyway for my vb class we need to write an auto inquiry system. Im a total n00b and am struggling altogether. My interface is below Basically what my problem is (among others) is that I don't know how to assign prices to each model from the combo box. This is what I used to populate the two boxes:

[Code]...

View 9 Replies

Calculate Prices Of An Item From An Existing Textfile?

Jun 3, 2011

In calculating an item from a texfile that exists from menu_cmbselectedIndex,i want to display total number of items when i click a combobox and should also display total amount for those items.

View 2 Replies

Display The Data (prices) From Some Hard Drives From Some Site's?

Jan 14, 2012

I have a small app and i want to display the data (prices) from some hard drives from some site's. I use this code

Dim PageElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("img")
For Each CurElement As HtmlElement In PageElements
TextBox2.Text = TextBox2.Text & CurElement.GetAttribute("src") & Environment.NewLine
Next

View 4 Replies

Add Values(Prices) To CheckBoxes, Radiobuttons And Perform Calculations?

Mar 22, 2011

I am trying to put together a simple form with prices assigned to Radio buttons and check boxes.

I started by creating a simple form with four Windows Form control, two check boxes and two radio buttons, there is also a NumberUpDown Control for quantity but I have not added that yet.

Basically the user make selections, the price is calculated with total and subtotal and displayed on a label.

I am trying to start as basic as possible then work my way up to more complex calculations as I progress.

Here is my Screw up version: :)

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

[Code]....

View 4 Replies

Adding Prices Together In A Data Grid Cell To Show Up?

Jun 8, 2011

I want to add prices together which is in cells in a grid view and show the total in a text box.

View 9 Replies

Create Multiple Prices For Each Products Whenever I'm Using Ms Access And Control?

Mar 17, 2011

I'm currently trying to create an Information System of customers who does have different prices for one generic set of products. For example, there's a list of customers, then once you choose one, the system will show a generic product list but a set of price list specifically encoded for that specific customer. I'm sorry but i'm not that good with databases, and I'm using ms access as the database and VB.Net as the programming language.

View 1 Replies

VS 2008 : Loading Numbers And Prices From The ItemInfo.txt File?

May 25, 2010

im having trouble coding a project Im supposed to Define a structure named Product. It should contain two member variables one a string variable called item number and another a double called Prices. In the form's load event procedure I should be able to the item numbers and prices from the ItemInfo.txt file, and store them in the module-level array. Furthermore, Im supposed to be able to add teh item numbers into the list box. There are no buttons just the Exit button. When user select the item the user should be able to see it in the lblPrice control.

Name: Glovers Project
' Purpose: Displays the price of an item
' Programmer: <your name> on <current date>

[code]....

View 1 Replies

VS 2008 Code To Work Out Cost With Different Prices Per Mile?

Mar 2, 2011

For our programming assignment to end the module (which im really struggling with) we have to write some code for use in a fictional taxi firm that charges �2 for the first mile, one price for miles 2-10, and another for all miles thereafter.

View 11 Replies

Develop A Calculator That Will Determine Prices For Candy In VISUAL BASIC 2010?

Sep 29, 2010

Sweet candy store currently has a special offering of heart shaped candy. It comes in two sizes: small and large. The company sells the large one for $29.50 and the small for $16.25.Design an application to calculate how much a costumer owes. When the user clicks the "Calculate" button, the program gets the number of large and small chocolate hearts ordered from the textboxes, calculates and displays the extended price for each type of the chocolate in a label. The program also calculates the weight of the chocolate to determine the shipping cost, displays the total weight, the shipping cost and the final total due. The large chocolate weighs 4 pounds 10 ounces, and the small one weighs 2 pounds 14 ounces. Shipping cost is 35 cents per pound and 3 cents for each additional ounce. Display all dollar amounts except the final total due with 2 decimal places. Display the FINAL TOTAL DUE with a leading dollar sign and 2 decimal places. Be sure to also include a CLEAR button that will remove all inputs/outputs from the form, and an EXIT button. Define the CALCULATE button as the accept button and the EXIT button as the cancel button.

View 4 Replies

Inout Box: Input A Percentage To Increase Prices In An Array And Display In The List Box

Apr 23, 2011

This is what I have so far, I know it should be simple as hell, but I'm having a huge brainfart at the moment. Im going to continue messing with it though. Im trying to make it so I can input a number for a percentage, multiply that with my current array prices, and display the total in the listbox. I have a few theories on why it isnt working but cant pinpoint which one to use, I'm at a basic level to this and still learning the process. Im also pretty sure I dont have everything I need on here yet.

[Code]...

View 10 Replies

Aesthetics - Programme - Compares Prices And Terms Of Up To 10 Bidders And 500 Line Items In Mixed Currencies

May 3, 2011

This is not a problem, as my code works correctly, but a question of aesthetics. I have written a programme which compares the prices and terms of up to 10 Bidders and 500 line items in mixed currencies. For this small section of the programme, I paraphrased a jmcilhinney CodeBank example; his looked neat, mine looks ugly.

Public Class frmFinalize

Private Sub BackgroundWorker1_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork

[CODE]...

View 14 Replies

Round A Value Down?

Feb 18, 2011

How do you round a value down.

What I am trying to do is work out how many hours (rounded down) there are in a text field that display the number of minutes.[code]...

View 2 Replies

Code An 'increase' Button To Prompt A User To Input A Rate By Which To Increase Select Prices In An Array?

Feb 16, 2009

I'm trying to code an 'increase' button to prompt a user to input a rate by which to increase select prices in an array.It should request the increased rate, then request a number from one to five, representing which price in the array to increase.Then, if 'increase' button is selected again and another number from one to five is chosen, then that element should be increased.It's working, but all the numbers in the array are changed. And, when I hit the increase button again, the array is repopulated below the first price increases instead of only replacing the designated price.

'declare 5 element array of prices
Dim prices() As Double = {12.2, 8.5, 12, 50, 2.4}
Dim rateIncrease As Decimal
Dim isConverted As Boolean

[code].....

View 1 Replies

How To Round A Double Value

Jan 18, 2010

If I have a Double myDbl have the value 0.764364647348378573857485734, but I wanted a string to just show the first three decimals of the value(0.764), how do I do it?

View 2 Replies

How To Round Numbers

Jul 16, 2011

I want to round the figure. Suppose if i have 818.98 then i want to display 819.8 or suppose if the digit after decimal is greater than 5 it round the digit.I use the following methods;value.toString("N2") or value.toString("#.00") or Math .round(value,2) but not sucessful.

View 6 Replies

Math - Round Up A Value

Aug 20, 2009

I,m developing a debt calculation program 'my problem is when i have to calculate the months to pay back the debt it comes to 28.04 and i have to get it to 29 my code looks like this:

[Code]...

View 3 Replies

Round Up Given Number In C#?

Jul 23, 2010

I want round up given numbers in c#

Ex:

round(25)=50
round(250) = 500
round(725) = 1000
round(1200) = 1500
round(7125) = 7500
round(8550) = 9000

View 4 Replies

Round Up To Next The Quarter?

Aug 22, 2011

I need a function in VB.Net that is round up the value to the next quarter.Example value 0.26 should become 0.5 and 0.51 should become 0.75,etc.Excel has this function standard like RoundUp(value;0.25). But I my opinion this function is available in VB.Net. Is there an easy way in VB.Net to calculate the next quarter.

View 2 Replies







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