Search Results - VBForums

Search:

Type: Posts; User: TheThinker

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    26
    Views
    1,959

    Re: File Association Help

    Wow...
    Thanks man..

    Saved me...
    Works just as I needed it :)
  2. Replies
    26
    Views
    1,959

    Re: File Association Help

    The association problem has been fixed, the files open successfully, but a new Problem has arisen.

    All the buttons on my application that invoke the frmResultsViewer to be shown and display the...
  3. Replies
    26
    Views
    1,959

    Re: File Association Help

    Works Perfectly...

    My final code:

    Load Sub:



    Dim file = My.Application.CommandLineArgs(0)
    Try
  4. Replies
    26
    Views
    1,959

    Re: File Association Help

    Thank you for replying..

    I edited the code as you advised..

    The Try Catch block catches this error:


    The file format is not valid.
  5. Replies
    26
    Views
    1,959

    Re: File Association Help

    I am really sorry for replying very late, but here's the code for the frmResultsViewer_Load Sub:




    Left = (SystemInformation.WorkingArea.Size.Width - Size.Width)
    Top =...
  6. Replies
    26
    Views
    1,959

    Re: File Association Help

    Ok. Thanks, but what about the Error with the Rich Text Box, that's the main issue...
    :)
  7. Replies
    26
    Views
    1,959

    Re: File Association Help

    < bump >
  8. Replies
    26
    Views
    1,959

    Re: File Association Help

    :confused:
    What the rich text box contains initially is RTF, then I save the file as .tbx (My own File association) and the rtf is deleted.
    Any time the user loads the file it's in .tbx format,...
  9. Replies
    26
    Views
    1,959

    Re: File Association Help

    I made a few changes (included the "Command line arguements"). Now the code is:

    In frmMain (The main/ Startup form):



    Public Sub CheckAssociation()
    ...
  10. Replies
    26
    Views
    1,959

    Re: File Association Help

    ok. so I tried as you said.
    I ran the app from "RUN", The list box contains whatever i wrote after [appname.exe]

    I still don't get it, how does this relate to what I want to achieve?
    I'm sorry,...
  11. Replies
    26
    Views
    1,959

    Re: File Association Help

    I still don't get it..
    :'(
    I ran the code and the listbox is empty..




    To be honest, I got that piece of code from a Tutorial that I used to do the association.

    I made use of it since it...
  12. Replies
    26
    Views
    1,959

    Re: File Association Help

    Umm... I don't think so...
    A simple example would be helpful to understanding this, as I don't think I've ever used Command line arguments...
  13. Replies
    26
    Views
    1,959

    Re: File Association Help

    Thanks for the reply.

    How do i "check the command line arguments"?
  14. Replies
    26
    Views
    1,959

    File Association Help

    I am trying to create an association for my vb.net application.

    I've got two forms, of which the startup form is called "frmMain" and the other which has a rich textbox that displays results from...
  15. Replies
    11
    Views
    1,139

    Re: Append text to begining of text file

    Perfecto!!!
    :cool:

    Totally works in Windows 7,
    Thanks a ton, again...
    :D
  16. Replies
    11
    Views
    1,139

    Re: Append text to begining of text file

    Oh well... You know what they say, Something is better than nothing..
    Thanks a lot, once again...
    :D

    EDIT:
    p.StartInfo.WindowStyle = ProcessWindowStyle.Minimized

    The window won't stay...
  17. Replies
    11
    Views
    1,139

    Re: Append text to begining of text file

    Awesome....
    The code that you provided does exactly what I wanted to do.
    Just a very teeny bit of problem, if it's not too much to ask, Is there a way to hide the Command Window?

    I expected...
  18. Replies
    11
    Views
    1,139

    Re: Append text to begining of text file

    I tried out what you said, and came up with this:



    Shell("cmd /c ping 127.0.0.1 >C:\LocalHost.txt", vbHide)

    While IO.File.Exists("C:\LocalHost.txt") = False
    ...
  19. Replies
    11
    Views
    1,139

    Re: Append text to begining of text file

    Thanks for replying back,
    I just used the Ping as an example.
    What If I want to run another command (not ping), and the output is sent to a text file, but I want the First line of that text file...
  20. Replies
    11
    Views
    1,139

    Append text to begining of text file

    Hi,

    This runs the ping command and outputs the result to a text file called "Local Host.txt"


    Shell("cmd /c ping 127.0.0.1 >C:\""Local Host.txt""", vbHide)

    How can I know if the...
  21. Replies
    4
    Views
    776

    Re: View specific Event Log entry

    Problem solved thanks to a reply in another thread...
    Thanks anyways..
  22. Replies
    4
    Views
    391

    Re: Help with executing command from cmd

    There seemed to be a minor silly mistake in my code, i had forgotten to put a blank space after a quote mark which most probably caused the line of code to be unrecognized...
    it's now solved, thanks...
  23. Replies
    4
    Views
    391

    Re: Help with executing command from cmd

    Thanks for the reply, the code you provided seems to solve the error i was getting due to the quote marks, but it still won't write the output to the Text File (Last5.txt)
    It just creates an empty...
  24. Replies
    4
    Views
    391

    Help with executing command from cmd

    Hi,
    I am trying to execute this command from cmd when a button is clicked:


    wevtutil qe system "/q:*[System [(Level=2)]]" /f:text /c:5 /rd:True

    The problem is that I can't execute it...
  25. Replies
    4
    Views
    776

    Re: View specific Event Log entry

    Still waiting desperately for a reply...
  26. Replies
    4
    Views
    776

    Re: View specific Event Log entry

    Thanks for replying back.
    The code I got doesn't get accurate results.

    When I edit the code to give me Event Log Entries for "Error", it doesn't give me what I see in the Event Viewer.

    If It...
  27. Replies
    4
    Views
    776

    View specific Event Log entry

    Hi.
    I’m working on getting certain Event Log Entries from the Event Log.
    What I’d like to achieve is:
    A user can select which Event Log Entry Type he wants to view. E.g: “Error”, “Warning”,...
  28. Re: Running a DOS Command WITHOUT the Command window appearing

    Yes it does... Which is why I made use of the /
  29. Re: Running a DOS Command WITHOUT the Command window appearing

    So If i want to output the file to a folder tat doesn't exist, I'll have to create the Folder via MD/MKDIR
    Right?
    Thanks a lot.
  30. Re: Running a DOS Command WITHOUT the Command window appearing

    I was searching how to do this for quite some time... I was about to create a thread too..
    Thanks a lot...

    It'd be great if you could elaborate what /k is.
    Also what does the > before the...
  31. Replies
    4
    Views
    671

    Re: Get All RAM infos using WMI

    Oh. Sorry.. i didn't see that..
    I'll try it out asap and will let you know how it goes.

    Thanks man..

    [EDIT:
    Works Perfectly.. Just what I was looking to do...
    I'll be sure to include your...
  32. Replies
    4
    Views
    671

    Re: Get All RAM infos using WMI

    I actually tried that as well.. but i couldn't figure out how to call the details for the appropriate (selected) bank.

    Any ideas?
  33. Replies
    4
    Views
    671

    Get All RAM infos using WMI

    Hi.

    I've got the following code that Outputs the information about the RAM modules into Textboxes.



    Try
    Dim k As System.Management.ManagementObject
    'Dim...
  34. Replies
    16
    Views
    697

    Re: Help with Project (Saving and Updating)

    This is what I've got so far:

    Settings Form:


    Private Sub rbMistyRose_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles rbMistyRose.CheckedChanged
    If...
  35. Replies
    16
    Views
    697

    Re: Help with Project (Saving and Updating)

    Switched to using the Stopwatch Class successfully.. Thanks to the Valuable Help from this Thread:
    ...
  36. Replies
    23
    Views
    1,278

    VS 2010 Re: Stopwatch Application works? or not?

    Successfully switched from Timers to using Stopwatch Class, and it is definetly much more accurate and simpler.

    I'd appreciate a little help on this thread too.....
  37. Re: Retrieving & Viewing Attachments from Access 2007 or Later ACCDB Files

    Thanks.. Quite Helpful..
  38. Replies
    16
    Views
    697

    Re: Help with Project (Saving and Updating)

    How would I go about to appropriate call the Settings to be checked prior to loading the form without it giving me errors?
  39. Replies
    23
    Views
    1,278

    VS 2010 Re: Stopwatch Application works? or not?

    Thank you both for the Samples/Examples..

    Now I understand more than I did before... and it truly is much simpler and Accurate..

    I'll work on this and switch from Timers to Stopwatch class..
    ...
  40. Replies
    23
    Views
    1,278

    VS 2010 Re: Stopwatch Application works? or not?

    I'll try working on that..
    Thanks for the Feedback..
    :)

    *EDIT*
    I couldn't figure out how to achieve i



    Yes, I'm using a Timer..
Results 1 to 40 of 64
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.