Writing A Program For Salesperson
Mar 23, 2011
Ok this is what I have so far. Now the numbers are not adding up at all. When I type in the name and it ask for the code then the monthly sales and commission are at 0 and they should be. [code]
View 4 Replies
ADVERTISEMENT
Jun 24, 2009
I wrote the code and it runs through it perfectly, the problem is that it will only save it to the database temporarily. So once I close down visual studio for the night and come back to it what's been entered is gone. It's not a published program still in debug mode but I've not run into this before. I have another program I'm working on that I'm running purely in debug mode and it works flawlessly. The code between the two is the same cause I just copied it and changed the parameters. Any ideas? I'm using an sql mdf btw.I should clarify, don't know if it matters or not, that the DB that is working is in SQL server whereas the DB I'm having trouble with is a mdf that I added into the program.
View 3 Replies
Jan 7, 2011
This is a program I am making for a game he is making. All it needs to do is add information from textboxes into sql fields when clicking create account. That is working perfectly however if I tell it to add an account a second time it crashes. saying ?
[Code]...
View 2 Replies
Mar 29, 2010
Just completed a program, and tested it. It works, and does exactly what its supposed to do, but I continue to get this error: Cannot Write to a closed TextWriter.The code I'm using is below, but the issue here which I'm guessing would be that in my If statement.[code]'Goes on to create a bunch of tabled XML text.I have this code copied throughout each If Then loop. Basically If the text box is blank then the program will close the table and stop writing.I know the problem most probably lies in that its reading that its trying to close the table or stop writing, but the program forces it to continue.
View 9 Replies
Feb 8, 2011
I am writing a Marketing email program so we can email news letters and the lke to customer listed in our database.One part of the application is a email templates page. On this there is a tabpage. Tab1 has a textbox and teb2 has a browser window.The user pastes/write HTML code in to the text box and it displays the formatted email/html in the browsers window.
The users just want to edit the text from time to time and within VS.NET and TEXPAD the html code is colour coded depending on the html tags.I guess this can not be done in my textbox1 but can it be done in a rictextbox and text_change event?
View 2 Replies
Dec 7, 2009
I am writing a blackjack game program in vb.net 2008. The program is designed to play 6 players per game in sequence using a pre existing algorithim (basic strategy). The program will play one game at a time using all 6 players or can be set to play 100 games using all six players and then capture the resulting data generated from each player from every card. When one game at a time is played the program works fine. When the program plays 100 games at a time it drops (loses) the data that is being stored in its string variable arrays.
View 1 Replies
Feb 14, 2009
I need some help with writing a program that will encrypt text using AES encryption. I'm not quite sure how to go about doing this.
View 1 Replies
Jun 11, 2011
I'm writing a program which takes one item from each of two lists and combines the items in one of three ways selected by the user. The results of the process are provided in either a summary form or a detailed form, again selected by the user. As it's currently developing, this program will contain six subroutines covering each of the six combinations of user selections, which are stored in three Booleans. Selection of the appropriate subroutine is done through traditional "if then else" coding.If I understand OO and Visual Basic (Express 2008) correctly, I could make the subroutines into different variations of one method, which when invoked would automagically use the correct coding depending upon the settings of the Booleans / properties. Assuming this is correct, the problem is that I have no idea how to actually set up code like this.
View 4 Replies
Apr 19, 2012
CODE:
So when i click btnNextRecord i need it to show data for first employee when i click btnNextRecord move to the second one and so on. But when i click btnNextRecord it only displays data for last Employee and if i keep clicking it, it will keep displaying the same data for the same amount of employees i had entered data for.
Attached File(s)
View 6 Replies
Oct 27, 2010
I want to create and write to a text file upon Program Load...this is my code (does not work):
Dim path As String = "C:Documents and SettingsAll UsersDocumentsThe Bible Study Tool est.txt"
My.Computer.FileSystem.CreateDirectory(path)
'create and write to settings file
My.Computer.FileSystem.WriteAllText(path, "Some meaningless Text!!!!")
The directory is there, but the text file is not....
View 8 Replies
Feb 17, 2009
I'm writing a program in VB.Net and loading the info into a SQL database. Debugging it works fine on my machine that I am programming it on, it connects to the database and runs through all the info perfectly. However trying to get it to run on another machine it will not connect to the database. I realize the reason for this is the connection string, it's looking specifically at the file directory for the database. How do I change this so that it will function on any machine. The program is only intended to run on one machine at a time and not over the internet.
View 2 Replies
Jan 23, 2012
i have started programming a diary sort of program. i have a home form which takes you to other features. im not sure if there is an easier way to do this but the view is week by week with a new week on a new form. and on each form i have a separate text box for each day. using the code:
'In the form load event:
txtMonday.Text = My.Computer.FileSystem.ReadAllText("DayMonth.txt")
'In the text-changed & form closing event:
My.Computer.FileSystem.WriteAllText("DayMonth.txt",
Monday.Text, False)
View 5 Replies
Jul 9, 2010
I'm writing a program that retrieves certain lines from a textfile. This textfile is rather large, so is it possible to have a progressbar that shows the progress when it retrieves?
View 1 Replies
Feb 26, 2012
I am making a program that loads, edits and saves 5000 rows x 100 columns of data. The data is stored in a datagridview. I use these commands to write the file:
dim z as integer
dim z1 as integer
fileopen(1,"c:drawermyfile.txt",openmode.output)
for z=0 to datagridview1.rows.count-1
[Code] .....
Every time I issue this command the whole program freezes until the computer is done writing the file. Is there some way I can get it to write this file without freezing up the program? Or, perhaps a better way to write this large data file?
View 16 Replies
Nov 17, 2009
How do I start writing a program that has 6 text boxes. A person would enter a member number if they have one, number of movies rented at $1.80 a piece. A Text box should then display Total Rental Price, and if a member number was entered, a 10% discount is given (the total of the discount shows up in another text box) and after there discount is applied the Amount Due is displayed in yet another Text Box.
My boxes are named:
memberNumberBox
moviesRentedBox
rentalPriceBox = $1.80
totalPriceBox
discountBox
amountDueBox
This is all supposed to happed when the customer clicks on a calculation button named: Button1
This is what I have so far, but I don't even know if this is correct, as I am getting 1 error relating to a name not being declared. Please help and clue me in to where to start!
Public Class Bonanza
Private Sub memberNumberBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles memberNumberBox.TextChanged
[CODE]...
View 3 Replies
Dec 11, 2011
I am building an application that accepts input entered into textboxes, then checks the input for negative values, etc. before writing it to a file. If the data does not meet the conditions, a message box pops up letting the user know. The problem I am having is that after it checks the data and displays the message box, it continues to save the input to the file anyway. How do I make it only write to the file if all the data meets my conditions?
View 1 Replies
Oct 4, 2009
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.
View 9 Replies
Mar 14, 2010
I am writing a program to interface with a PlusDeck 2c Cassette Player.The device communicates through the serial port.
View 8 Replies
Jul 9, 2011
Im writing a program to download a file from a official website every Sunday. The adress of this site keeps changing. Does anyone know how I can link to this address?
[URL]
I've highlighted the part of the adress that changes. As you can see, it's a date, but not nessesarily the current date. It could be yesterday, or the day before. I've tried something like this:
Dim link
link = "http:www.fiskeridir.no/content/download/4641/30774/version/254/file/Register-internett-*.xlsx"
This doesn't work.
View 4 Replies
Sep 5, 2008
I am writing a program to login and read information off of specific web pages.I have gotten serveral working already, but I'm having a problem with this one.
<input name="DL_AUTH_USERNAME" type="text" size=10 style="font-size:9px;font-family:arial">Password:<input name="DL_AUTH_PASSWORD" type="password" style="font-size:9px;font-family:arial"><input type="hidden" name="next" value="/"></span><input type="submit" value="Go" class="button">
For some reason I can get it to load username and password but I cannot figure how to get it to click the go button.
View 4 Replies
Nov 11, 2010
I'm writing a program which has to perform several operations on data exported from a CAD software.The amount of data to be processed is huge and even by simplifying the program at maximum it will still take about 10-15 minutes for average models.
The operations are performed on an array from the first to the last element. Let's say for a list of 10 elements (as example) that I start from element 1 and I finish when element 10 has been computed. I thus thought that since I'm working on a 8 processor machine would be convenient to make use of multi-threading. My idea is, for the case of 10 elements, to make thread1 working from 1 to 5 and make thread2 working from 6 to 10.I already wrote a working code for a 2 thread process which is working, but I want to extend the number of threads and eventually decide in function of the threads available. The basic structure is given below:
[Code]...
View 9 Replies
Jan 18, 2012
I am writing a program that will display numerous labels in English and Spanish. The problem is I have the formatting correct and labels aligned for English, but when I hit the button for Spanish the labels on the left overlap the labels on the right. I did set the text on the Spanish side to include 10 spaces before the text, which does align it properly, however there has to be a better way to do it. I tried padding the label on the form which works good, but I would like the padding to only take effect when the selected language is Spanish. Once English is selected I would like the formattting to go back to normal.
View 11 Replies
Jul 12, 2009
My application creates a file by writing to System.AppDomain.CurrentDomain.BaseDirectory() & "data/" & filename...Now this works fine usually, but I just added a setup utility to the app, so now it installs to the program files directory. It installs correctly and creates the data folder, however when it tries to write the file it gets an exception "unauthorized access".
View 3 Replies
Oct 11, 2009
I'm writing a program which plays audio using a windows media player control. It's quite basic but I'm running into a problem.
Soundplayer.Ctlcontrols.play()
Sleep(3000)
For some reason when this appears in my code, the sound doesn't start playing until AFTER the sleep. I have music running in the background, using another windows media player control, that continues playing just fine.
Basically, I want nothing else to happen for the duration of the sound, hence the sleep, so how can I make it so my sound starts playing BEFORE the sleep?
View 7 Replies
Feb 8, 2010
Well, i was thinking of making a Tetravex solving program in order to practice my code writing skills (language will propably be Visual Basic) and I need help finding an algorithm for solving it. For those that don't know what tetravex is see this http:[url]... . The only algorithm I can come up with is the brute force way, place a tile randomly in one corner and try every possible tile next to it and continue the same process, if it reaches a dead end revert to a previous state and place a different tile.
View 4 Replies
Nov 11, 2009
I'm writing a program that need to use handwriting. I have mouse pen with USB interface(buy from Genius, MousePen i608). My idea is that I want to record employee's sign with picture box from my attended form. And then save in MS.access. But I have no idea how to connect my external device and vb.net 2005. how to connect those devices?
View 1 Replies
Oct 3, 2010
I am writing a program that has to print an alert message in a textbox if the user inputs invalid data. Invalid data would be a negative number. The textbox is the same textbox as the result would be in provided they input valid data. Here is what I have but it will not print the alert.
[code]...
View 7 Replies
Dec 1, 2008
I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.
View 14 Replies
Sep 9, 2009
I am writing a program using Visual Basic 2005 in Visual studio 2005. I created a Setup project and added it to my solution using the setup wizard. I did all this on a Vista based computer. Will the install work on a Windows 98 system.
View 3 Replies
Apr 21, 2011
Write a program that requests a color as input in a text box and then determines whether or not the color is in the text file. The program should use the Boolean-valued Function procedure IsCrayola that returns the value True if the color in the text box is a Crayola color.
*I am to use a file named Colors.txt
View 1 Replies