Does anybody know the code to refresh and reload desktop icons, you know how after installations of programs it sometimes refreshes the desktop? That is exactly what I need and what I am looking for. Someone please help me out here because I tried searching on google and could not find any proper code.
I started this tutorial on sub procedures and am having trouble trying to get this program to execute properly. The problem lies with the total. I am trying to figure out the math part of it. When I hit F5 I can see this
Item Quantity Price.
Pizza Slices Fries Soft Drinks
Total
But I can't get them to add up and display the quantity and price. I tried the ByVal and ByRef code but am not sure if I did it right
Here is the code that I have so far:
Public Class Form1
Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click
I am trying to get a function so when i press the calculate button it somes up with sales totals and sales commissions. this is just a simple project i just cant find the answer.
I need my program to output and input a customer ID and sales amount multiple times. I need it to display both outputs, customer ID and sales amount, on mulltiple lines. It also will need to accumulate the sales amount and then display the total sales. it should look something like that.[code...]
I think that I was supposed to use a messagebox but wrote the program a different way. the form.vb was already locked, but I added two text boxs. Not sure if I did this right because I need to enter multiple sales for one customer ID.[code...]
I'm trying to creat a program that tracks the sales of five products all with different monetary values. I'm trying to display the total number of each product sold, a combined total of products sold, and the total sales value. So far I'm only outputing the value of one of each product, I think there is a problem with the loop somehow. [code]
I'm trying to creat a program that tracks the sales of five products all with different monetary values. I'm trying to display the total number of each product sold, acombined total of products sold, and the total sales value. So far I'm only outputing the value of one of each product, I think there is a problem with the loop somehow.
Public Class MailOrder Private product1 As Decimal = 2.98 ' product number 1 Private product2 As Decimal = 4.5 ' product number 2
Assume a grocery store approached you to write a simple program that calculates total sales of purchases. The program should accept item costs as input, calculate the tax on each item (8%), then display the item cost, total cost, and total after taxes. Item costs will be added to a listbox while the total without the taxes will be displayed in a label, the tax amount in another label, and finally, the total cost (items cost + tax) in a third label. this is the problem I have to program for,
I wrote this code and everything works as planned: Module SalesCommissionProgram Sub Main() Dim name As String = 0 Dim code As String = 0 Dim monthlySales, commissionDollars As Double ' Prompt user to input value for name [Code] .....
For the finished project I am supposed to have it output the total sales and commissions for that were calculated before the sentinel value (Eugene) was entered. Here is what I tried and here is where I am lost. Module SalesCommissionProgram Sub Main() Dim name As String = 0 Dim code As String = 0 Dim monthlySales, commissionDollars As Double [Code] .....
I am a first time poster and fairly new to using VB 2008.I was having some trouble with writing a program that shows the sales tax of items (i.e cars, food, etc).
[code]...
The buttons are in the middle and the four text boxes are marked with brackets and underscores.I know how to code the "clear" and "exit" button but I am having some difficulties with the calculate button.
I have a problem with my vb.net program. Some parts of the code dissapeard but i still can run the program normaly. Even if i add a new button it doesnt appear.I have a button that uploads some files to mysql database but then i double click that button a new sub appears with nothing in it..
So I'm trying to program a selection structure to display different commission rates per sales entered in a textbox.I need to have the commission total display alone. I have the simple interface done, but I'm having trouble forming the selection structure.
I'm using fileopen() function to open the file, after doing all the works I'm using fileclose() to close the file. But when I access the file again it returns already the file is opened by another process.
Sample: Dim intFile As Integer = FreeFile() FileOpen(intFile, mstrFilename, OpenMode.Binary, OpenAccess.Read, OpenShare.LockWrite) FileClose(intFile)
I'm currently working on a school project and I have stumbled upon various problems. I'm supposed to write a software tool based on a mathematical model.
In total, the model has 12 parameters and 2 constants used in it, so I figured it would be a good idea to store the parameters in 2 separate arrays - one containing 6 parameters which have to be entered by the user and another one with another 6 parameters which should only be changed in a settings kind of window for tweaking (they are set to default values provided by the model).[code]...
I'm trying to make sure that I don't leave any loose ends open in my application and am concerned about a few but might get my answer from this one. I've "overriden" some functions so that way I can try and keep all the resources as clean and free as possible. So in this instance, I have a function called ExecuteReader which returns a DbDataReader as normal, but all I had to pass to it was a SQL string rather than recreating a DbCommand every time. I want to make sure that even though I'm unable to call dbCommand.Dispose() that it is actually doing so. [code...]
In here, I set the _dbReader to what I'd get from the function and eventually I close the _dbReader. I do not close the connection as I don't open it each time I make a query. This is a SQLite database that only one user will be using at a time (small application with very very very little likeliness it will grow) so I didn't think it necessary to close and open the connection all the time. Maybe I'm wrong, not sure. Using it this way though, it is potentially ok for cleaning resources?
I'm having trouble getting an Applications.DoEvents event to function properly. VB keeps telling me I dont have a valid argument. Can anyone look at this and explain how I would complete the expressiojn for Application.DoEvents.
My code works correctly if I do not have the DO WHILE statement, however we are suppose to have it loop. Which it will continue to ask for the salesman's name, code, etc. but when the user enters the name "eugene" the program is suppose to calculate and output the total monthly sales and the total commission dollars. What is happening is that when a user enters "eugene" the program is not recognizing it to do what it is suppose to do(calculate and output the total monthly sales and the total commission dollars) I am stuck and need assistance on how to make it recognize eugene. I am also having trouble with trying to figure out how once eugene is entered to tell the program to add the salespersoncommission and monthly sales of each case to get the totals to output to the user. Can you add the cases?
When i get an error concerning duplicated values found, it just catch the sqlexception, display a message and exit try. But i want it to continue adding the remaining record even when a record of duplicated values is found.
I have some ActiveX that was written for VB6. They all seem to return Variant types. Ex.
[Code]....
In this case the GetPosition control is returning a robot axis position. It looks to me like the values coming back from the function is not getting converted to object type properly.
I got the following code from net,its working sometimes but sometimes not working, why?Its not showing the video by every click of the button Preview.I want some better code which will work smoothly and will show the video by every click. [code]
I am using VB 06 code for MS winsock and no im not supprised its not working properly but I cant find any tutorials anyware for VB 08 and its starting to anoy me. I have managed to reorginise some of the code so it works but im at a loss to know what to do to correct these errors. .
I am trying to call back to a code behind method using Javascript and it seems like the only way to do so is using the Page.ClientScript.RegisterClientScriptBlock() don't need to return any data back to the calling javascript function.
I was trying to make a program which displays two chars A and B on the screen. Using the WASD keys, it lets you move the A char around and using the arrow keys it lets you move the B char around.
I wrote the following:
Module Module1 Dim Box_A(1), Box_B(1) As Byte Dim Allow_Draw As Boolean
[Code].....
When I run the program, if I press any of the WASD or arrow keys the corresponding char doesn't move. To make it move, I have to hold down any of its keys for a bit after which I can move the char just by pressing its keys. But then, I have to do the same for the other char.
So, if I want to move B I have to hold any of the arrow keys for a bit. Then I can easily move B just by pressing any arrow key once. Then to move A I have to hold any of the WASD keys for a bit and then I can move A just by pressing any WASD key once.
Is there any way I make make each of the char move just by pressing its ket once?
So I made this neat little clock program in smallbasic and i downloaded visual studio 2008/visual basic 2010 yada yada.I clicked on graduate, made a folder under my documents to dump the stuff, finished installing, and then opened the project in VB.The SmallBasicLibrary couldn't be found
Such components as the GraphicsWindow wasn't converted to VB or something (probably because the library wasn't found).I followed Microsoft's instructions but I don't know what happened.