Get A Total Sum Either Higher/lower In Their Textboxes?
Mar 24, 2010
Heres my code so far:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
I want the total sum entered for (Val(InputBox("Enter sales amount:"))) that is lower than 1200 to go in a TextBox2.Text and the total sum higher than 1200 to go in a TextBox3.Text.How should I go about doing that? Is there a way of doing it in the Select Case area?
View 11 Replies
ADVERTISEMENT
Mar 25, 2010
Heres my code so far[code]...
I want the average above 1200 going in a TextBox5.Text and the average lower than 1200 TextBox6.Text.
I've tried stuff like; "average1 = average1 + average" and "average1 = total1 / subject" and average 1 = total1 / subject1". But none of it appears to be working.
View 14 Replies
Jan 15, 2012
I am currently working on a program for a higher or lower card game. I have my game set up and in place, however I am having trouble keeping track of the cards that have already been drawn from the deck. I am only playing with one deck and need to make sure that once a card is drawn it is placed in a discard pile and will not be drawn again. I did not post my code due to other students in my class using this forum for their version of the assignment. If someone would be willing to take a look at my code I can send it to you via private message.
View 1 Replies
Feb 25, 2011
I know how to get Total, Average, Highest and Lower number from using input boxes and so on, but how do you get them from within a listbox?I kno the format of the code, I'm just lost in how to get them from a listbox...I just need a few hints.
View 7 Replies
Aug 7, 2009
So I have an ASP.Net (vb.net) application. It has a textbox and the user is pasting text from Microsoft Word into it. So things like the long dash (charcode 150) are coming through as input. Other examples would be the smart quotes or accented characters. In my app I'm encoding them in xml and passing that to the database as an xml parameter to a sql stored procedure. It gets inserted in the database just as the user entered it.
The problem is the app that reads this data doesn't like these characters. So I need to translate them into the lower ascii (7bit I think) character set. How do I do that? How do I determine what encoding they are in so I can do something like the following. And would just requesting the ASCII equivalent translate them intelligently or do I have to write some code for that?
Also maybe it might be easier to solve this problem in the web page to begin with. When you copy the selection of characters from Word it puts several formats in the clipboard. The straight text one is the one I want. Is there a way to have the html textbox get that text when the user pastes into it? Do I have to set the encoding of the web page somehow?
[Code]...
View 4 Replies
Sep 27, 2010
We have a .net win forms application, using .net 3.5. Application runs from a terminal server, users access it with Citrix client. when users run this app memory usage goes higher and hiher and it never comes back. even tough we put objects with dispose and set to nothing also the memory usage is not comming down. it starts wuth 75 mb and goes up to 500 mb. it is a 32 bit application.
how can we find the exact problem with the application. the bahaviour is almost same when we run our development box locally.
View 5 Replies
Feb 24, 2012
I'm making a simple program. It is almost finish in a manner of simple function. But I have problems related to "Add item and total in textboxes".
In this simple program:-
1. User select the item.
2. User select the quantity.
3. User click the Add Item button.
4. Then to add more items, follow step 1-3 and price will appear in the textboxes on the right.
3. Total textbox will show the total price of 5 selections.
The problems are:
1. how to make second-five selection appear without interrupting other text box.
2. how to show total of all five selections
This below is the codes I use "when user click the stop button". But I got most of above problems...
Public Class Form2
Private Sub AddButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddButton.Click
Dim total As Double
[Code]....
View 1 Replies
Mar 31, 2012
All i get back when i run it is "The sum of all scores is: 0"[code]...
View 10 Replies
Aug 18, 2010
7 textboxes, 7 values, well not always as the textboxe might contain nothing
What im trying to do is add up the textboxes and return the value(total) in the array where am i going wrong??
[code]...
View 4 Replies
Jun 11, 2009
I'm just getting back into programming after a few years break and I'm a little clueless as to how I would achieve a small part of a project to get my back into the swing of things.Basically we have a command that sets what the machine does at a certain time of the day. This command has a limit of 8 steps and always has to equal 1440 (24hrs).An example of this command would be: 001*A*480*B*60*C*600*A*300
So this would do..
"A" during 00:00-08:00
"B" till 09:00
"C" till 19:00
"A" till 24:00
I can do the easy part i.e. split them up but I would like someway of dynamically creating another text box if they dont add up to 1440 (I am okay with doing dynamic text boxes and have the findcontrol stuff i guess its just updating the x and y axis on the boxes below so it looks neat?)
I could do 8 textboxes etc but we can have upto 8 of these commands wanting to display on one tab.
View 1 Replies
Jun 7, 2010
How do I code the total cost to give me a pound sign with the total cost at the moment when the total comes up for an example it gives me 3.6 when I need it to show £3.60 here is the code I have so far. [code]
View 2 Replies
Oct 6, 2010
The pay rates for the project are:
a. Level 1 - $10.00
b. Level 2 - $12.00
c. Level 3 - $14.00
d. Level 4 - $16.00
e. Benefit Deduction Rate - 0.10
f. Overtime Factor - 1.5
For ease of program maintenance, all of the above rates and factors must be stored in module level constants. All references to pay rates in the program must refer to the module level constants.
When the Calculate button is clicked:
a. The value in the Hours text box must be validated to insure that it is numeric value greater than zero.
1. If the value is not valid, a message box must appear as shown below and the user must be offered the option to continue processing or quit the program.
2. If the user chooses to continue processing, the focus must be set to the Hours text box.
3. If the user chooses to quit, the program must close immediately.
b. If the value is valid, the program must calculate and display the total pay in the Total Pay label.
1. The pay rate is determined by which Job Grade radio button is checked.
2. For hours less than or equal to 40, the total pay is the hours times the pay rate.
3. For hours greater than 40, the total pay is 40 hours times the pay rate plus the hours in excess of 40 hours times the pay rate times the Overtime Factor.
4. If the Full Time radio button is selected, the total pay must be reduced by the Benefit Deduction Rate.
5. The value displayed in the Total Pay label must be formatted with a dollar sign and with two decimal
places.
6. The focus must be set to the Hours text box.
Why i get an error when i try to run this code
Code:
Also the message box, both yes and no close the program.....
View 10 Replies
Oct 28, 2008
I am working with VB 2008. I want to be able to run this program say in N: and it will show me in an excel sheet the following:
Folder Path Size(GB) Count of Files
N:Clients 0.53 308
where clients contains subfolders and files and the size is the total of all those files within each folder and the count is the total within each folder also.
This works fine as it is but i have to select one by one the top level folders and some of them are huge so it takes forever to give me an answer.
1) I would like to see in my spreadsheet the following by only select the network drive n:
Folder Path Size(GB) Count of Files
N:Clients 0.53 308
N:Software 10.7 15430
N:Billing 0.98 105
2) I would also like to know if this is the faster method.
3) I tried adding a progress bar so that the user can have an idea of how much this will take but i had to remove because it was not working.
4) I would like to see the folder name, size of folder and count of files in the listview.
Here is the code:
Imports Microsoft
Imports Microsoft.Win32
Imports Microsoft.Win32.Registry
Imports System.Collections
[code].....
View 5 Replies
Jun 8, 2011
I am using visual basic 2008 amd creatomg a datagrodview format like below [code] Now I wnat to get total balance in total column after less discount in percentage with ENTER EVENT proceedure and get the whole total column balance in a textbox i.e Net BalanceTextBox. Please tell me how to calculate discount in percent % and get total in total column and also tell me how to move cursor in next cell instead of bottom row in datagridview.
View 2 Replies
Apr 22, 2011
I have 3 columns in a unbound datagridview, "length" "height" and "Total". Total = length x width and the final total in TextBox outside of the Grid. I found question simalar in this forum and tried the code but i am getting errors.The following is the code i am using
Public
Class Form1
Dim UnboundColumn[code]...
View 5 Replies
Apr 20, 2010
For some reason when i run a script to move an image based on an entered value the image stops moving on any value higher than 10, and i cant figure out why. here is a sample script
Sub RedmoveClick(sender As Object, e As EventArgs)
Dim X As Integer
Dim y As Integer
[Code].....
View 10 Replies
Nov 21, 2009
I'm new to forums as well as new to VB 2008. I'm in process of making a order calculator which will total any values you selected in combo boxes/checkboxes and then display it in a selected area. There are 3 things that I want to achieve: 1. Be able to add another total to an existing total (currently I'm able to see only one total when I hit "Calculate" button)2. Display how many orders I have made so far (new total counts as one order)3. Be able to add up checkboxes selected to an overall total. (when I try to add up one checkbox with another it seems to be stuck on 1.5 pounds which I assigned for each "side order")
View 4 Replies
Jun 2, 2010
I have 3 classes: Server, Database, and Table. Each class has a "Name" property. How I want it to work is that each server can have multiple databases and each database can have multiple tables. So in the Server class I have this property.
[Code]...
View 3 Replies
Nov 6, 2010
I've been designing a Interactive Maths Quiz to test students on the modules they've supposedly learnt, but am having trouble getting the textboxes to display the question as i want them.I need to write things like x3 and x-5 but can't get it to work. To get 2 and 3 i copied and pasted off a word document, and that works, it displays it no problem. I tried the same with others and it just displays a box.
View 6 Replies
Sep 12, 2010
We were currently working with our thesis regarding file compression and selected LZW compression. So far, we know how to work on it but we were stucked on how to write a byte.LZW uses 256 and up for the code table because 0 to 255 was used for a single byte.url...Our problem was we don't know how to write a byte higher than 255, s it possible, and read it as it is? Or, different way on how to do it?
View 1 Replies
Apr 10, 2010
I have one webusercontrol for Datepicker. When I am using this control in content pages it works fine. I have many controls in content page (textbox, label, etc.). All controls are inside a table. I have placed usercontrol inside <td>. When I click on an image, the calendar control is showing. But that time this calender control pushes all other controls (textbox, label, etc.). I have set the z-index at a higher value, but still it's not working.
View 1 Replies
Apr 11, 2009
okay say textbox2.text = "8" if textbox1.text is higher then textbox2.text the msgbox("g")so if textbox2.text = ("9") then msgbox("g") would pop up cause it's a higher number but ifit = "7" then nothing how do i do that
View 2 Replies
Mar 11, 2009
I want to say the timer count the time the Process is working so that it Counts always higher on a Label with the Text 00:00:00. So it always go higher by 5ms:
00:00:10
00:00:15
00:00:20
00:00:25
and so on.
View 9 Replies
Jan 26, 2010
I need help with my forms developed in vb.net 2008. If I run a form in any machine (regardless of xp/vista or Win 7) whereby the DPI is set higher than normal then the size of most of my forms goes haywire. For example: I am attaching 2 screenshots of my updater program. One screen shot shows program being run in normal dpi and the other one shows it being run in higher DPI settings. In the latter case the form sizes shrinks and it looks so weird. In some other forms the controls go haywire. What should I do to ensure that forms looks ok regardless of what ever DPI a user sets in his OS?
(Note: some texts in the screenshot have been edited to protect privacy).
View 10 Replies
Apr 24, 2012
I'm working with a ComboBox which has 14 items.
Using the following code I got a problem
vb
If Me.ComboBox1.SelectedIndex = 0 Then MsgBox("item 1")ElseIf Me.ComboBox1.SelectedIndex = 1 Then MsgBox("item 2") '...ElseIf Me.ComboBox1.SelectedIndex = 9 Then MsgBox("item 9") ElseIf Me.ComboBox1.SelectedIndex = 10 Then MsgBox("item 10") '...End If
The problem is that after the SelectedIndex = 9 it won't read properly the SelectedIndex = 10, it seems like it consider only the first number (1) instead of the whole one (10). In fact get the same result as if it was SelectedIndex = 1
View 6 Replies
Aug 3, 2010
I've got my program running, but when I start it up on Vista, it does so quite slow. I need it to start up faster, I was fiddling around in task manager to check it was actually started and just taking a while, and I noticed it had the priority "BelowNormal", which I'd like to change.
How can I do this from the registry? I've got it starting up, but how do I add a parameter for the process to be started with a higher priority (I.E, normal, abovenormal, high, realtime, etc., I need to test which is suitable).
View 16 Replies
Apr 10, 2011
I am making a new vb.net project . And 1 thing i have noticed many times is The software that i make in high resoltion computer lloks crap in computers with monitor resoluton of 800 by 600.Is there any way we can create software in standard form which has a higher probability to run in all pc's...I can think of 1 way i guess using monitor height and monitor width from properties and then adjusting form size relative to that
View 2 Replies
Jun 12, 2011
More like general MySQL than vb.net itself, but still need help.
The MySQL code below:
SELECT *
FROM (SELECT resit_no,SUBSTRING(resit_time,1,19) AS entrystamp
FROM DB1.receiptdetails
[CODE]...
produces:
[CODE]...
Notice the two rows at the bottom. the difference between entrystamp and moded_time is higher than 5 minutes. why would it happen and how to correct it? both table and database use InnoDB.
View 1 Replies
Mar 26, 2012
I would like to loop through a number of integers to display the higher number, I would not know the higher or the lower number. How could I compare them to pick the higher one.
View 9 Replies
Nov 24, 2010
I am writing a serial application using VB .net Framework V4 , where I use a background worker to Read a file and send it to a serial port using SerialPort1.writeLine method. The BackgroundWorker1.ProgressChanged Event handler sub Updates the Line Number to a TextLabel and adds each line sent to a RichTextBox using RichTextBox1.AppendText() method on main form (Form1).
The problem arises at 115200 Bauds (and higher),may be because now the text is updated real fast on the form an unhandled Exception in BackgroundWorker1.ProgressChanged Event handler sub occurs. Otherwise at lower baudrates ex: 9600,19200 etc. Application Runs Perfectly Fine.
[Code]...
View 6 Replies