CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Ch0pinZee

Search: Search took 0.03 seconds.

  1. Replies
    9
    Views
    1,065

    Re: Making my application a startup program?

    Surely someone must know...
  2. Re: printing out blank pages- error in code?

    Private Sub MenuItem18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem18.Click

    If PrintDialog1.ShowDialog = DialogResult.OK Then
    'showDialog...
  3. Replies
    1
    Views
    472

    Re: one little problem...

    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.
  4. Re: Does anyone know how to show zeros in decimal places (such as 1.00 or .90)?

    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...
  5. Re: Does anyone know how to show zeros in decimal places (such as 1.00 or .90)?

    FormatNumber(decSomeNumber,2)

    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.
  6. Replies
    2
    Views
    389

    Re: advise on a new program

    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...
  7. Thread: coding help

    by Ch0pinZee
    Replies
    2
    Views
    521

    Re: coding help

    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:



    Const...
  8. Thread: coding help

    by Ch0pinZee
    Replies
    2
    Views
    521

    Re: coding help

    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.
  9. Replies
    4
    Views
    963

    Re: Storing strings in dynamic array

    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...
  10. Replies
    16
    Views
    2,767

    Re: Capture Screen vs. Printing Forms

    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:

    ...
  11. Replies
    16
    Views
    2,767

    Re: Capture Screen vs. Printing Forms

    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...
  12. Re: DataGrid does strange things after subclassing it

    It may just be an issue with scope. Try using Public instead of Private, for example.
  13. Replies
    16
    Views
    2,767

    Re: Capture Screen vs. Printing Forms

    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...
  14. Replies
    16
    Views
    2,767

    Re: Capture Screen vs. Printing Forms

    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...
  15. Replies
    16
    Views
    2,767

    Re: Capture Screen vs. Printing Forms

    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.
  16. Replies
    9
    Views
    1,065

    Re: Making my application a startup program?

    So how do you do this? Like what would the code be for example?
  17. Replies
    4
    Views
    459

    Re: Detecting the name of an application?

    Well that was close... It is actually:

    System.Diagnostics.Process.GetCurrentProcess.ToString

    which formats the name of the process as a string. But you got me on the right track!
  18. Replies
    9
    Views
    1,065

    Re: Making my application a startup program?

    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.
  19. Replies
    4
    Views
    459

    Re: Detecting the name of an application?

    Well I feel awefully stupid for missing that, seeing as my application involves managing processes! I'll try it and see. Thanks!
  20. Replies
    1,291
    Views
    498,682

    Re: Who is the Sexiest Actress¿¿

    Natalie Portman gets my vote
  21. Replies
    2
    Views
    1,479

    Re: How to copy database with data from VB.Net

    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?
  22. Replies
    4
    Views
    459

    Detecting the name of an application?

    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...
  23. Replies
    1
    Views
    388

    Re: Editing computers security policy

    And you want to know this, because of course, you're trying to INCREASE its security level, RIGHT?
  24. Replies
    9
    Views
    1,065

    Making my application a startup program?

    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)...
Results 1 to 24 of 24





Click Here to Expand Forum to Full Width

Featured