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
ADVERTISEMENT
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
Mar 12, 2010
Im trying to increase the size of an array by 1 each time a button is pushed and have the new value read into the array. I use a variable nIndexItems which is increase by 1 each time the button is pressed. I need preserve the existing data so I have done the following: ReDim Preserve arHours(nIndexItems) This increases the array but doesnt preserve the data. I found the following so I tried it but its not working wither: ReDim Preserve arHours(UBound(arHours) + 1) how to keep this data?
View 5 Replies
Apr 5, 2010
I'm having trouble inputting data in to an array. The first input is fine but after that it just overwrites the first input. i tried to write it so that it would increase the array index by one each time but it hasn't worked.[code]
View 7 Replies
Feb 25, 2010
I have added a Split container onto my Form and within bottom Panel I have added a list box.How can I increase the size of the list box as I increase the size of the panel?
View 3 Replies
Oct 25, 2011
I have a webform currently works like a charm. It posts the info entered directly into my database with out issue.
I need to add a step in there where when the submit for is pressed an email will be sent to one of 2 different emails addresses.
The snippets below are the 2 statements I think I need to have in the code, I just haven't been able to figure out how to complete them.
'If (cmbIPTypeBiz.SelectedValue = "Static" And cmbNumIPBiz.SelectedValue = "CIDR/30") ****Then send to email1.com****
'End If
[Code]....
The items in the starred out section are where I am struggling.
So, to sum up, I need to be able to make this form shoot off an email to one of two email addresses based on whether or not a specific field has CIDR/30 in it.
View 1 Replies
Dec 27, 2010
Still working on that overlay. I am stumped on what I think is my last function. I have a + and a - button that needs to control a text box that has numbers in it. For instance: TextBox1 shows the number 2 in it. When I click the + button I want it to increase that number by 1. It sounds too simple when I say this out loud, but I think I am stumped with this basic function. I don't know where to begin.
View 8 Replies
Jun 22, 2010
I am using buttons on my vb.net forms. I want a way in which if I drag my mouse onto a particular button it would increase its size and if I click onto it, it can respond to the codes. May be like I want it too look like those Macintosh laptop icons, whereby if u put my mouse on it, it increases its size.
View 5 Replies
Mar 24, 2009
The idea is to make something that would count clicks but I dont know how to make it so the label increases by 1 when the button is pressed
View 15 Replies
Feb 23, 2010
I'm trying to make simple Increase and decrease the form option This is for my code to increase the form
While Me.Width < 1000 Me.Width = Me.Width + 9 End While How do I make My Form Go Back to It's original state when dock button is clicked?
View 3 Replies
Jul 1, 2009
[code] This code will make the progressbar increase by 1 tick every 0.25 seconds?But the thing I need help with is to make TextBox1.Text write out a message typed in it to TextBox2.Text when the progressbar is full. And when that's done I want the progressbar to go back to 0. [code]
View 9 Replies
Aug 17, 2009
I currently have a code, and i would like my progress bar to increase while the current code is running. How can i do it?
[Code]....
View 8 Replies
Jul 8, 2010
I'm trying to mimic some functionality in the program below: [URL] *scroll down. it's the "Big Free Clock" link* Developer has made it stretch the font depending on size of form, and also allows user to increase/decrease font with context menu. I have not been able to replicate this using only the Font properties. How is this being done, and how can I achieve the same functionality?
View 2 Replies
Apr 16, 2011
I`m make program for order form, I use order form code with name MR/IR/001, when I start Program It`s fine but when the order form code get MR/IR/999, It`s Stuck and won`t get increase the number, I want it the order form code go to MR/IR/1000, MR/IR/1001, MR/IR/1002 until 5000 how to get code work,
THIS THE CODE USING VB 2008 and database using MS access 2007
Dim strTemp As String = ""
Dim strValue As String = ""
Dim sql As String
[CODE]...
View 6 Replies
Aug 6, 2008
This is the code I am trying to run. I am just trying to increase a number in the excel file by "1" each time the button is clicked.
Dim da As New OleDbDataAdapter("select * from [Vicky$]", cn)
Dim ds As New DataSet
da.Fill(ds)
[code]....
I get this error on the update "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information."
View 8 Replies
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
Oct 3, 2011
I need to prompt the user to input a few key/value items.Instead of building a form with a bunch of label + textbox, I figured I could use a simple, unbound grid.
I know the ListView widget can be displayed as a grid, but it appears that some added code is needed to make it behave that way.If you've investigated the matter recently, which solution did you end up using?
View 7 Replies
Jun 22, 2010
how to do array of textboxes when a user input a number of textbox to be loaded and when the button clicked, the array of textbox that the user enters will appear?
View 1 Replies
Mar 1, 2011
Am to prompt user for # of quiz scores to input, should then create an array large enough to hold those number of scores, set up loop that allows user to enter approp. # of scores, all scores will be integers, each score should be placed in the array.
[Code]...
View 1 Replies
Feb 26, 2009
I have an application that has a timer. Every hour, the application will see what time it is. If it is after 5 P.M., then the application will shut the computer off. (For power saving purposes)I have a messagebox pop up warning the user. I want the user to be able to hit "Cancel" on a dialog box if he/she is still working on the computer and reset the timer to ask again in about an hour. If the user isn't there to select a button on the messagebox, I want the computer to turn itself off. But I can't get the code to skip the dialog box after so many seconds. [Code]
View 12 Replies
Jan 29, 2009
I have a string value "password" and i would like to increase each of the characters in the string by 2 position.
View 5 Replies
Jun 4, 2009
I have to increase timeout period.Following is my code.
Private Function GetConnectionInstance() As SqlConnection
Dim objConn As SqlConnection
Dim strConnection As String
strConnection = ConfigurationSettings.AppSettings("conn")
[code]....
What code i have to add in above to increase timeout period.
View 3 Replies
Nov 6, 2011
I'm trying to make simple program that changes the fan speed using a Track bar. I checked on MSDN and Bing and nothing on VB.
View 4 Replies
Jun 20, 2011
See my screen shot to found that what is I want. I want increase top of my form in windows 7:
View 2 Replies
Apr 3, 2010
How to incress msgbox size in vb.net
View 2 Replies
Mar 28, 2012
I want to keep a track which pages are mostly accessed and heavy traffic.And page can be accessible to more user at any instant of time. As number of users increased then login page is not loading and site goes very slow
View 4 Replies
Apr 13, 2010
i know that NO software is safe from hackers etc... i mean if Windows can be cracked and hacked (developed by possibly worlds most advanced programmers) then hobbyists and small developers have alot to hope for.But is there any way i can increase protection for my vb compiled exe?First of all is there a way to remove ALL comments from my compiled code?Is there a good obfuscrator for vb net 2008 code
View 4 Replies
Feb 21, 2012
i have a problem for printing a crystal report using visual basic from access database ... whenever i click the print button .. it slow down a while around 10-30 seconds like that then only generate .. anyway how to increase the printing performance with a bit faster respond ?
here is my code for "print crystal report button " : --
'DELETE temporary table crystal report first
Call GetDeleteRecord("tblC8dtls")
Call GetDeleteRecord("tb8Status")
Call GetDeleteRecord("tb8Container")
[code].....
View 8 Replies
Apr 20, 2011
I made a questionnaire (form) in Visual Basic express 2010.The forms maximum size is width:710 (this is ok) and height:850.How to increase the height of the form?I'm asking this because when previewing the form the elements of the whole form are the half of a A4 paper size.I want to be the whole A4 paper.
View 3 Replies
Nov 26, 2011
I can do to the Maximum till the Width and Height of the Form is (1386, 788).. How can I use free form with the Height and Width LARGER than that?. Coz I need to build a bit Larger Application.
View 1 Replies