The output I am getting is is not what I am suppose to be getting when you type in 50 dollars i should get 58 bars and 2 coupons but when i run it i am getting 57 with 7 coupons left
I am using zedgraph to draw bar chart in my vb.net project. The bar base is Y (meaning all bars are horizontal). I have 9 fields for user to choose from, and once a user clicks a field, one corresponding bar will show. Of course, the user can click off the selected field to remove the corresponding bar item. I can do this. The basic idea is to get all bar items and set their visibility according to user's selection. My problems is that I want to have a textlabel next to each bar (this text label is different from legend)so I set the yAxis.Type=text. There are two problems:
1) When I add bars, I still need to specify x and y value. How do I set y value in this case to make sure bar ally perfect with its text?
2) As far as I know, I can add text labels by an array as the last line code shows. But obviously this only works for bar chart with fixed bars. In my case, the number of bars and also the order is changing based on user selection. How can I set text labels? [code...]
i am supposed to calculate change. well this works fine but i need to know how to make it show how to breakdown the money in dollars quarters nickels dimes and pennies. [Code]
I am having trouble with the pennies calculator. I need to create an application which should calculate the number of dollars, quarters, dimes, nickels and pennies a person will receive when they cash in the pennies at a bank.Eveything seems to be working fine except the nickles...
Option Explicit On Option Strict Off Option Infer Off Public Class frmMain
I am currently working on an ATM prototype in VB.Net and have encountered difficulties when trying to return values from two different recordsets in the same table. I wanted to set the value of the 1st record to be equal to the exchange rate for dollars and the 2nd record to be the exchange rate for euros. When I run the code below I get the error:Current provider does not support returning multiple recordsets from a single execution.
Public Class MainForm Private remainder As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xCalcBtn.Click Dim xChangeTxt As Double
[code]....
it says 0 for all dollars, quarters, dimes, nickels and pennies.no errors.
I am trying to learn how to use the modulus operator.this excersise is a change calculator and is supposed to calculate the number of dollars , qtrs, dimes, nickels and pennies from the change that is calculated.
in the form if i put a value in for owed = 30.00 and paid 34.25 my dollars returned = 4 and that is correct but the number of qtrs = 0 and should be 1. I am not sure how to correctly use this - any assistance you can provide is great - this is purely educational
Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click Dim owed As Decimal Dim paid As Decimal Dim change As Decimal
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?
I'm trying to add a bargraph to one of my forms which will show a trend in dollars spent for certain projects (vs. the forecasted amounts). I wanted to know if there is a control or a function in VB.NET 2008 that I can use to build this graph in.... My only other thought is to use pictureboxes as bars (with background filled colors) and adjust their heights based on a ration or height to dollar amt... I don't mind doing this, but I wanted to know if there is a more intelligent way of building this... maybe some graph wizzard like in excel.
Sub Main() Dim totalmoneyspent, cost, intbars, intcoupons, barspercoup, coupused, coupleft, coupleftfrmint, addcoup, newcoup, addbars, remaincoup, totalbars As Double Dim chocobarcounter, couponcounter As Integer
I have an mdi form and few child forms. I have set the autoscroll property to false, size to (640,480) for the mdi form, but still the scrollbars are shown. I am setting the width of the child forms on mdi resize event to the width of mdi parent. My requirement is that the mdi parent should not show scrollbars at all for the entire life of the application. What are the properties that I need to set additionally?
how to make the visualization or equalizer specifically the bars visualization of window media player? I made my own but I use only the progressbar and timer which random select from the number which mean it is not accurate from the song:)
Ive recently started using VB and i have an image larger than the imagebox size. Is there a way i can add scroll bars and zoom tools? or just the scroll bars would be enough.
My problem is that when I click continiously the bottom button of a vertical scroll bar (datagridview) the datagridview maximises and expants to all my screen.
Im having some trouble with my progress bars in VB.Net. I am currently making a 2d game for a college assignment. The problem is i have one for health and one for reloading the reload bar works fine but when i try to code the health bar i think it conflicts with the other Progress bar [Code]
i just added scroll bars to my windows design application but the funny thing is i have no idea of how to assign code to them. ps: the bars are vertical and horizontal.
i have two rich text boxes of same height.i need to link the vertical scroll bars of both rtb so that when 1 scroll bar moves,other move simultaneously in same direction,by same distance.or else i wish to know how to use a vertical scroll bar control to move richtextbox data.so that i can connect both textboxes using the same vertical scroll bar control.
I am creating some help files by using a TabContol box, on one of the tabs I need to have the scroll bars to be able to scroll down to see all the info.In nearly all software packages that I know of, you can also use your mouses' scroll wheel to move the scroll bars. This is not happening for me in this particular situation. I have looked for a setting in the TabControls properties settings, but cannot find anything to enable the mouse to move the scroll bars.
Is there a way to automatically show scroll bars on a multi line edit control only if they are actually required?
i.e. If the text is small enough to fit in the edit box, don't show scroll bars and if the text doesn't fit show the appropriate scroll bars (i.e. vertical, horizontal or both).
Of course I'd like this to be all automatic and not have to recalculate the size of the text myself every time the user adds or delete a character.
hi there, i have a problem with my picture box which has the facility to zoom and pan with scroll bars, when i zoom in on the image then move the scroll bar down and leave it there and then click my 100% zoom button, the image is only just showing at the bottom of the screen and it is movable so you have to drag it into position when you shouldnt need to because it was fixed.
I have a grideview that displays rows that will be deleted across servers by the click of a delete button in the footer of the grid. This delete will take a long time so i want an updateprogress bar. I'm not really familiar with it so I don't know where to begin.
I have a picture box that is wider than the screen, with a stretched image. Can I put scroll bars on this picture box? I tried making the form as large as the picture box (which is 3840 x 2160) and then just move the form sideways by clicking and dragging on the control box, but the form will not go larger than 1940 x 1100. Can I put scroll bars on this picture box, or is there another technique I should use?