i have a database shown on VB 2008 showing music information. i am trying to show the track with the greatest number of sales however it is only displaying the current information on the screen (i am showing the access database in multiple text boxes) rather than searching the database.
this is the section of code i am struggling with:
Private Sub Btntopseller_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btntopseller.Click
Dim index, largest As Integer
[Code]....
i also would like to add to this, i would like the user to be able to select a year from a list box to show the track with the greatest number of sales in that year.
I'm trying to create a Software Sales calculator. My issue is not being able to have the lblPackageA3 to display the number as FormatCurrency after having the txtPackageA being multiplied by $99.Also need to figure out how to apply discounts depending on the number of sales IE 10-19 = 20% off
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click Dim sngPackageA As Single Dim sngPackageB As Single
I have problem on my project on vb.net I'm using visual studio 2008. May I know how to do to show all my sales everyday. I have sale almost 5 items every day I want to have list for this. I'm new on vB.net..
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...]
Well I have some music files I want to load up from my program, it is meant to list out all the files album name, song title, track number, etc... it's meant to be a custom player which can load up mp3 files & play them.I can get files to play & everything fine, list out directory it's stored in, full file path & file name & such & extension but stuff like album name, song title, track number, song length I am unable to find out how to get this info.
Previous stuff has showed a way to retrieve them from the file by reading certain bytes & stuff but doesn't work because apparentally the album art is inside the file & at the beginning instead of the other information tags, since such pictures are bigger or smaller at times, I can't simply determine with my current knowledge how to read out the album art either or determine how long of text it would be to skip over, then at that point that the tags are in the place ..maybe there is a way from managed code to do this or API? Reading bytes to determin the info & re-create the album art, and piece together the album name, song title, etc... isn't what I want to do, I want something that's easier to do, I thought it would be simple to make a program just to play some music.
I am trying to keep track of the total number of discounts given (whole numbers) I keep getting .75 after the first discount, and it adds .75 for every trans action after that. I have tried to pick it apart but I just don't see it. You can follow by tracking the comments that relate to the summary. I know that is an Integer but the book has it declared as a decimal so I went with it.
Public Class BookSaleForm 'Declare module level variables Private QuantitySumInteger, SaleCountInteger As Integer Private DIscountSumDecimal, DiscountedPriceSumDecimal As Decimal Const DISCOUNT_RATE_Decimal As Decimal = 0.15D [Code] .....
I'm writing a program for my algebra students to practice integers.Stuff like....
3-6 -4 + (-5) 3(-4) -15 � 3 etc.
I want to show an explanation and for the addition and subtraction, I want to show it on a number line. For example, if the problem is 3 - 7, the number line should show and arrow to that goes right to 3, and then left 7 units (starting from 3). Then the student can see that the answer is -4.I could probably do this with some string manipulation, but what would be the easiest way to do it in a picture format? Maybe a bitmap.
In VB if you prompt the user for a number between 1-20, then a word, how do you get a text box to show the word the same number of time as the number selected using loops?... Ex: please select a number: 4 / select a word: cat....the text box should display ::: catcatcatcat ........
I am doing this for a class and my brain has locked up. Prob. just over thinking it though. Thanks in advance for any help!
Ive got a question about finding the greatest value in a string. I am connected to a database but I am positive that part is right. So i posted here instead of there.
Dim x As Double Dim ConnStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=DBASE.MDB"
[Code]...
How do I make my If..Then statement return the highest value of row 0's x? My output (by changing the if then statement) will either return the first or last entry in row 0. I hooked up my code to a list box and got all the data to list perfectly i just don't know how to get the highest number after i use the formula for x (which is {c1-c2}/c2).
I have a project and I need to record long jumps. I have 5 numbers but how do I average the greatest 3 of 5, I know how to average all 5. Also am I supposed to put Val for strings or not because only 0 shows up for when I put something in name but if I put a number it will show up a number
I have a datagridview with two columns; one named Names the other named Scores. This is my code so far Dim hScore As String() = New String() {strName, lblPercent.Text}
[Code]....
What I want it to do is sort the scores by greatest value to least value, but the problem I'm having is that the scores are stored as strings so they are being read and sorted from left to right. My question is, how do I store the scores in a numeric array and place them in the same row as the name, but in the second column? The names and scores only need to be stored as long as the program is running so I don't want to add anything to the registry or create new files to store them.
I am in a programming class, and am one of the best students in it, I even went to a state programming contest. One of the problems was to enter 6 race times in a Console Application and have it display the times back in order of which were fastest and their place such as
i want a automatic packet number in text box if there is no data in database...if there is a data i want to add 1 in packet number to next packet in text box'packet no= JA0001
q = "select max(mid(pack_no,3,4))as max_pck_no from mef_info where mid(pack_no,1,2)='"JA "'" cn = New OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=Database Path ;Jet OLEDB:Database Password=*********;")
I have form 1 (User Details) and form 2 (Transport Usage). Now in form 1 there is a textbox which shows the user's ID and when i click a button that links form 1 (user details) to form 2 (transport usage) i want another textbox in form 2 to have the same user ID as in form 1. (the user ID always changes)
is there a way to show my running number in a text box. the logic is like this, i have 1 button once i click on that button,the textbox start running a random number start from 1-47. when i click again the running textbox stop.here is my code.
If lb_count.Text = "0" Then Dim RandomNumber As Integer RandomNumber = RandomClass.Next(1, 47)
is it possible to make something that can show the number of active applications? For example some code that say: Label1.Text = Number of running applications
I have a form (FRMQUESTIONNAIRE). It contains, a listview table, a panel and picturebox, 2 combobox, 10 questions with 5 radio buttons each question ( A survey),A log number id (I just used Label in here) and 2 buttons ( save and skip).
Problem: When I click one item in listview table, the picture captured realted to the item click in listview table will be shown in panel beside it. However, the problem start to happen when the log ID is not appear accordingly based on user selection on listview table.
What I reckon start of the problem: - Previously The listview table(listview1) in frmquestionnaire was in frmqlist(another form). But to suit user requirement, it has to combined with frmquestionnaire. In frmqlist, I use a label Image. This form contains the similar details in frmquestionanire except there are no 2 combobox, 10 questions with 5 radio buttons each question ( A survey),A log number id (I just used Label in here) and 2 buttons ( save and skip) But it have a button(Proceed to survey). Having said that, when user click an item in listview(Frmqlist), the picture will be shown beside it. User will click button proceed to survey and frmquestionnaire will pop up. Here, It shows the correct Log ID based on user selection in frmqlist.
But now....
I have combine everything in frmquestionnaire. I am facing as the LOG ID is not showing according to the selection. As a result, I can't save the questionnaire answer as well as this log will be used to save in database.
Does anyone have a 1 to n thread example in which n threads are created dynamically? There are a number of examples that show a definite number of threads, and some that imply n threads by using a tcp ip listener or a file system listener. However, I'm looking for a 1 to n created in response to a dynamic requirements, provided purely by and for my program.Essentially, my requirement is to be scalable. 1 to n threads based on application throughput should make this pretty easy to satisfy.
so below is my code. I am trying to get the autonumber generated in newdb into txtcallid field. the error i get is that the field is not unique. What i am trying to do is to get the form to fill the db witha new blank record, assign the auto number and then display that number with the blank record info in my form. I will be making it so that the data must be changed before saving so that the form will not be blank save for when it is loaded.
Imports System.Data.OleDb Imports ChessyFunk1._5._1.ADODB Public Class frmNewCall
I have 2 panels set up, one contains the rich text box the other one contains a single label. The am currently using the following code however it is not working.
Dim line_count As Integer = mainEditor.Lines.Length Dim linecounter As Integer = line_count linecounter += 1 line_count = 0
When logging into my system, I select the number of result that needs to appear on the report. In my stored procedure it selects count of all the data for a period. It returns all in the information, but I only want the number of records to appear on the report that I selected at the beginning.