Wow...
Thanks man..
Saved me...
Works just as I needed it :)
Type: Posts; User: TheThinker
Wow...
Thanks man..
Saved me...
Works just as I needed it :)
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...
Works Perfectly...
My final code:
Load Sub:
Dim file = My.Application.CommandLineArgs(0)
Try
Thank you for replying..
I edited the code as you advised..
The Try Catch block catches this error:
The file format is not valid.
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 =...
Ok. Thanks, but what about the Error with the Rich Text Box, that's the main issue...
:)
< bump >
: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,...
I made a few changes (included the "Command line arguements"). Now the code is:
In frmMain (The main/ Startup form):
Public Sub CheckAssociation()
...
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,...
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...
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...
Thanks for the reply.
How do i "check the command line arguments"?
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...
Perfecto!!!
:cool:
Totally works in Windows 7,
Thanks a ton, again...
:D
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...
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...
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
...
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...
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...
Problem solved thanks to a reply in another thread...
Thanks anyways..
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...
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...
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...
Still waiting desperately for a reply...
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...
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”,...
Yes it does... Which is why I made use of the /
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.
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...
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...
I actually tried that as well.. but i couldn't figure out how to call the details for the appropriate (selected) bank.
Any ideas?
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...
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...
Switched to using the Stopwatch Class successfully.. Thanks to the Valuable Help from this Thread:
...
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.....
Thanks.. Quite Helpful..
How would I go about to appropriate call the Settings to be checked prior to loading the form without it giving me errors?
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..
...
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..