Get The Additional Percentage Off To Work Right?
Jun 7, 2011
Im trying to get a sales percentage program to work and im having trouble on the last part. My homework is to get the original price from the customer and then take the sales percentage off and show how much it is. Then after the first percentage is off take an additional percentage off part and then show the grand total. I got all the way up to the additional percentage off part to work right. I dont understand why I cant add an additional percentage of and the program wont recognize it and work right.
Public Class Form1
Dim Num1 As Integer
Dim Num2 As Integer
Dim Num3 As Integer
[code]....
View 3 Replies
ADVERTISEMENT
May 23, 2010
I am trying to get a percentage that just does not seem to work.I am using WMI to get the Total Physical memory of my system and then the Free Physical Memory. Then get the percentage.
2147483648 - Total Memory
838028 - Free memory
According to Task Manager my physical memory is 59%. This is the code I am using but I can not get 59% or 41% that is free.
temp = FM/TM
temp = temp * 100
percent = FM * temp
View 5 Replies
Aug 24, 2009
My app currently loops the progres bar(to show sending of image) rather then work like a percentage progbar. This is becaus ei do not fully understand how to go about this.Whats the best way to add a progbar(well recode mine) to work as a percentage complete? Since it's a httpwebrequest thats being sent im not sure what else to google for on a tutorial
View 6 Replies
Sep 23, 2010
I got every other operation button to work besides sqrt, and percentage. I've done the same thing for addition, subtraction, etc. and it doesn't seem to work.
here's my globals
Public Class Form1
Private first As Double
Private second As Double
Private oper As String
[code]....
View 2 Replies
Mar 12, 2009
I'm working myself thru the sandcastle documentation and found this C# sample.[code]...
View 2 Replies
Jan 26, 2011
I have a parent/child relation I am trying to create fow 2 datasets.The parent ds consusts of a range of PO Header information
After I fill this dataset I loop through it getting the PO number. I then take that value and execute another sql statement on the DETAIL file and fill a dataset(dtlDS) for EACH row in the parent. How do I add to this dtlDS for each row? I am getting no CHILD data in the merge. Should I be filling to a datatable and do an add.row and THEN dump into the dtlDS?
View 4 Replies
Mar 16, 2012
adding certain functionality to an existing ASP.NET application running on IIS 6.0 programmed in VB.NET.To aid in future development the client wants the additional functionality to be as future proof as possible. Ideally i have said that I would like to push for a solution using ASP.NET MVC3, running off IIs 7.5 and .NET 4, written in C#. This solution would act as a seemless addition to the current web-portal appearing probably just as an extra tabbed page.
But they will be completely seperate web-apps. Which is crucial.The main problems i can forsee are firstly sharing session particulars between the asp.net web app and the new application. Particularly with regard to maintaining session state (and not having IIS timing out on one of the apps). Also, conjoining the two "apps" appears problematic in my head, although this may be far simpler than i fear.
1) Embed the new fuctionality into the existing codebase (not a great option). This would mean losing any potential future upgrade-ability and also means not following better OO conventions by utilising the MVC framework.
2) Using an iFrame to link to the razor pages of a seperate MVC3 app (the one im favouring currently). Allows uses of all new technologies, however downside is sharing session data. Either through iFrame "attributes" through persisting a session state to a db? (slow?) or even some kind of web service interaction between the applications to push/pull user/session data?
View 2 Replies
Jul 11, 2009
Im practicing a database and I have a 3-column table. Im using binary formatting to save/open the file. I cant see what is wrong with my code“
I can display records ok when I press the save button
I can also save the records ok when the save/close button is pressed.
When I reopen the programme and press the reload button to reload the dataset, additional records will not be displayed nor saved though original records will be showing.[code]...
View 2 Replies
Sep 9, 2009
So, I'm currently working on sending and receiving data via a serial port. In order to use readline, I need to send vbCrLf, which is fine. I'm trying to get it to display just the characters sent and not the additional characters like Cr and Lf. Here's the most basic part of my
SerialPort1.Write(HexSendBox.Text & vbCrLf)
ReceiveBox.Items.Add("Received: " & SerialPort1.ReadLine())
The data I will receive in the ReceiveBox if I seng 'GG' is:
[code].....
View 6 Replies
Feb 23, 2009
How can I round a percentage off to the nearest whole number? [code]
View 5 Replies
Sep 3, 2010
We have a big Form class that we like to split into peaces using partial class approach That could be done by manually modifying a project file, and adding MainFormPN.vb entry
<Compile Include="MainForm.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="MainForm.Designer.vb">
[code]....
The issue with this approach is when double click on this item in VS2008 IDE it shows new empty form, not MainForm UI. It looks like VS2008 does not support multiple partial classes for a Forms.
View 2 Replies
Dec 16, 2009
I am using a webbrowser control and loading a website that uses basic authentication. I pass the username and password in the additional header of the navigate routine. The problem is that the header is not retained while navigating the site.
I.E.I log into the site and pass the user name and password in the http header. When I click a link to access another page the header is removed and the site asks for credentials. If I was to just type the site into IE and log in the first time the headers are carried forward on all pages. how I can have the page retain the headers so the user never has to authenticate?
Dim sHeaders As String
Dim HelpBrowser As New WebBrowser
sHeaders = "Authorization: Basic: " & System.Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("UserName:Password")) & Chr(13) & Chr(10)
Me.HelpBrowser.Navigate("http://www.mysite.com", True, Nothing, sHeaders)
View 2 Replies
Oct 6, 2010
I need to add an additional dimesion to outputArrayOfBits() in the code below which I hope conveys my intention. I need to convert a one dimensional array of 1 to n boolean (bit) values into arrays that group them by 8's so the output can be consumed by someone needing these values to be in hex format (0000 1111) = 0F How do I change the declaration of 'outputArrayOfBits and the nested control loop to achieve that?
Dim inputArrayOfBits As New BitArray(32, True) ' I can't change this.
'Create array of bytes containing what will be sent out has hex numbers 0 - F
'outputArrayOfBits(0) = (1,1,1,1,1,1,1,1) 'Hex value FF
[code]....
View 11 Replies
Mar 18, 2010
I have a gridview which shows selected data from a database all the columns will popup dynamically. but now i want to add an additional column with a list box is it possible or just a column will be fine
View 10 Replies
Jul 2, 2009
I'm am very new to Vb.net, I have coded in VBA.I have created a form that will open Microsoft Excel, add header text to the columns, and insert the text from a few of the controls located on my form ("not finished adding controls") when I click the Submit button.
My problem is that when I enter different data into those controls and click the submit button again, I get a new Excel Workbook with the new data.I need the new data the be submitted to the .Activecell.Offset(1,0) of the already open workbook.Ultimate Goal of Submit button is to open new Excel workbook, Enter multiple rows of data via Visual Basic Form.
[Code]...
View 2 Replies
Apr 22, 2009
Im trying to add data into a new column I have created in my gridview.[code]...
Now I need to go in and add data for the rows below the column. I have seen ppl saying I need to set it equal to a datafield but how do I create a datafield from scratch then?
View 2 Replies
Oct 5, 2010
I've got 2 data tables.
tblComponents - CompID (keyed), Name, PartNo
tblProductComponents - ProductID (keyed), CompID(keyed), PercentValue
I want to show tblProductComponents and have only the PercentValue the only value that can be updated. But, I also want to show the component information as well.I can do this in a view but then I lose the update ability using the tableadapter.
View 6 Replies
Nov 18, 2011
when catching the MM_MCINOTIFY msg with wParam = MCI_NOTIFY_SUCCESSFUL, how can i get additional information about the event? i'm guessing marshal.ptrToStructure, but which structure would it be?
View 3 Replies
Mar 27, 2011
I am looking for a way to obtain some additional features on a treeview. Both, to show as to be able to input some data with a particular hierarchical structure For that on each node I need next to the nodetext a entrypossibility to input some data or to make a selection. This input possibility should be either a textbox, a combobox or a chechbox. An example of what I wisch is almost this article, except that the comment column is only a fixed text, and that I need there a input control like a textbox, or combobox.
View 4 Replies
Aug 20, 2010
My issue is to Find exact one Calendar object from a List Of(Calendar) by passing a particular date. I got to know about the predicate but not sure about passing parameter to it.
colorcode is List Of (Calendar) and calendar class has a property called DtmDate with which I want to compare and return the desired object. Dim a As Calendar = colourcode.Find(AddressOf New Calendar.FindByDate)
I got the predicate samples from Google and reached till now. But not sure how to pass my parameter i.e. date to it.
View 1 Replies
Dec 13, 2009
I need to make a custom control and decided, before that, to see if there were any additional components that I could utilize.When looking through the list, I found a component called an Expander. So I decided to add it and see how it works.
After adding it, I couldn't find it at all within the toolbox. I went back to Choose Items and it was checked, but still not in the toolbox.It's probably important to note that it is a WPF component and this is not a WPF Project. Would that make a difference?Is there something else I may be doing wrong?
View 3 Replies
Mar 16, 2010
I was wonder if anyone knows how to add additional buttons to the title bar. Please, Don't go to too much trouble, Just if you know a link to this or know how to do it. I did find This. But, I would like to have something like shown in this Image:
View 9 Replies
Jan 5, 2010
Is there a better way to parse percentage to double like this?
Dim Buffer As String = "50.00%"
Dim Value As Double = Double.Parse(Buffer.Replace("%",""), NumberStyles.Any, CultureInfo.InvariantCulture) / 100
View 4 Replies
Jan 28, 2009
I have a program that is calculating the cost of a certain number of plane tickets, the validation and basic calculations are fine the only problem i've got this: There is a discount text box field called "txtDiscount" where IF a user enters a number it will discount this as a percentage off the total cost of all the tickets, but I cannot get it to work [Code]
View 2 Replies
Aug 15, 2011
I have a fixed percentage 0.3% I need to multiply this by a number of months which varies 1 to 12
Having done this I need to add the percentage to a pre-determined number
so as an example
£300 + (0.3 * 10)
I can get the 3% (0.3 * 10)
But when I add this to the existing number (£300) it equals £303 not £309 which is what it should equal.
Can anyone advise the way of adding a percentage as appose to just another number? This also need to allow for -percentages i.e. -3%
The equation I am using is below and I appreciate there is nothing to set decTotalPercentage as an actual percentage but that's because I am stumped...
decTotalPercentage = decPercentage * intMonths
decFinalPercentage = decMoney + decTotalPercentage
View 4 Replies
Jun 30, 2010
I have a problem regarding an access file I attached to this post.I have a table which contains the costs(VVGK) for each month in 2008, 2009 and 2010. For each month we have planned costs(Plan) and the real costs (Ist). And what I want to realize is that in the report in the top right it automatically displays the percentage difference between the plan and real costs of the last month. And this should then be automatic every time I give new input(new month, new VVGK Ist).
View 2 Replies
Jun 21, 2010
I'm developing a data logging application using VB for the actual logging to a MySQL database. I'm reading a value from a device and then running an insert query every minute. This is great but if the value doesnt change all day then my records are going to all be the same. I'd like to try and calculate the percentage of change on the value and only run the insert query if the percentage of change is greater than, say 5%.
View 2 Replies
Feb 19, 2009
I need to compute the percentage of games won and games lost. I keep getting errors and it's driving me up a wall. I've changed my code so many times that I don't really remember what it was like when I started.
Private Sub btnPercentage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPercentage.Click
Dim team As String
[Code].....
View 6 Replies
Feb 1, 2010
How do you convert a decimal into a percentage in visual basic? I have the code to get the problem but I need to move the decimal over two places.
View 8 Replies
Aug 25, 2011
I am attempting to draw and fill a rectangle using percentages passed through the text properties of 4 textboxes. I am attempting to do this in VB 2008. For example:
textbox1, 15%, green
textbox2, 35%, blue
textbox3, 40%, red
textbox4, 10%, orange
View 1 Replies