Type: Posts; User: Ch0pinZee
Search took 0.02 seconds.
February 7th, 2005, 01:38 AM
Surely someone must know...
February 7th, 2005, 01:34 AM
Private Sub MenuItem18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem18.Click
If PrintDialog1.ShowDialog = DialogResult.OK Then
February 6th, 2005, 11:36 AM
use a module-level variable for your running total. Running totals are accomplished useing the += operator. Like,
TotalSnowboards += 1
will add 1 to the current value of TotalSnowboards.
February 6th, 2005, 01:24 AM
Since the output from the format number function is a string, you can put it in the text property of your labels (or textboxes, if that's what you use). Here's an example:
Dim decInput As...
February 5th, 2005, 08:21 PM
which will convert it to a string also.
EDIT: Just for clarification, the "2" above is the number of decimal places you want to have in your number.
February 5th, 2005, 01:51 PM
There are los of options here. Personally I don't know how to make a program run from the system tray, but if you want you can make it run as a background process. This can be accomplished on the...
February 5th, 2005, 01:39 PM
Also you should be using variables to set the prices of the rentals rather than just hard-coding those numbers into your calulations. I would build the program like this:
February 5th, 2005, 01:18 PM
The first 5 lines of code are unnecessary because you can just use the intrinsic FormatCurrency() function which accomplishes the same thing, and converts your number to a string in the process.
February 4th, 2005, 03:15 PM
It might be helpful if you posted a screenshot of your form, and explained exactly what you want to have happen on the form when the user clicks purchase. If you do this I will probably for sure be...
February 4th, 2005, 03:06 PM
1. Yes, it will stay that way automatically, because when you formated the number it automatically converted it to a string.
2. Yes. At the beginning of the final string put in:
February 4th, 2005, 12:32 PM
Yes. My code above was incomplete, because I thought you'd get the idea. The complete code would be:
Private Function FormatData() As String
Dim strName As String
Dim strAge As String...
February 4th, 2005, 10:26 AM
It may just be an issue with scope. Try using Public instead of Private, for example.
February 4th, 2005, 10:14 AM
Use ConrolChars.NewLine for a carriage return. Just concatenate it with a string.
As far as creating bold text and changing fonts, you can't really do that with the code I gave you because it...
February 4th, 2005, 09:24 AM
You just have to write your own sub procedure that formats and prints all the information. Make a button at the very end of the form that says "print" or "submit" or whatever. In the code for that...
February 3rd, 2005, 08:57 PM
Just use a series of inherited forms instead, that the user has to click "next" through. Then at the end you can print all the forms in one print job.
February 3rd, 2005, 01:24 PM
So how do you do this? Like what would the code be for example?
February 2nd, 2005, 11:45 AM
Well that was close... It is actually:
which formats the name of the process as a string. But you got me on the right track!
February 2nd, 2005, 11:21 AM
Yes but I don't want the end user to have to copy the program to the startup folder themselves, I want the program to do it automatically during run time.
February 2nd, 2005, 11:14 AM
Well I feel awefully stupid for missing that, seeing as my application involves managing processes! I'll try it and see. Thanks!
February 2nd, 2005, 09:33 AM
Natalie Portman gets my vote
February 2nd, 2005, 09:04 AM
I'm not sure if I understand your question completely. You want to copy all the data from a particular database so you can export it to a different database progam?
February 2nd, 2005, 08:59 AM
How would you code a VB.net application to detect it's own name, even after the end-user has renamed it?
For example, say you write a quick program whose name is Cheez-It.exe, which when you...
February 2nd, 2005, 04:18 AM
And you want to know this, because of course, you're trying to INCREASE its security level, RIGHT?
February 2nd, 2005, 03:14 AM
I have just finished writing a program in Visual Basic.NET and would like for it to automatically make itself a startup program (one of the processes that starts automatically when Windows starts)...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.