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

Search:

Type: Posts; User: Ch0pinZee

Search: Search took 0.01 seconds.

  1. 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
    394

    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
    326

    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
    353

    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
    353

    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
    783

    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
    1,936

    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
    1,936

    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
    1,936

    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
    1,936

    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
    1,936

    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. 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
    371

    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. 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
    371

    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
    359,349

    View Post

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

    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
    371

    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
    342

    Re: Editing computers security policy

    And you want to know this, because of course, you're trying to INCREASE its security level, RIGHT?
  24. 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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center