i'm building my own monitoring system. I have allot but i'm stuck at 1 point: I wanna have a list of events out of the event viewer, it polls every 30 min.i have this:
Dim eventLogApp As New System.Diagnostics.EventLog("Application")
Dim eventLogEntry As System.Diagnostics.EventLogEntry
Dim eventCntr As Integer = 1[code]....
but this is way to heavy for a poll of every 30 min. Because is checks the WHOLE event viewer.What i want.. just the latest 5 or 10 events from the event viewer to reduce the load..
I recently created an event in event viewer to allow my VB.NET application to run when I start my PC up. Unfortunately, I don't remember how I did it and the thread I got the advice from has been deleted. Can someone explain to me how I could locate the event and delete it? As I don't want it to run on startup anymore.
I'm trying to create a stand alone app for general troubleshooting purpose. So here is my question. I managed to create scripts on generating System information etc. Now i need sripts to Export Event Veiwer Logs (Application and Security) to a Notepad. I used to do with command prompt using batch files like "wevtutil qe Application /c:50000 /rd:true /f:text > c:Event.txt " and also driverquery > c:Driver.txt not sure how to implement in VB ?I'm using VS 2010. And I tried this script but Command Window pops up i want to disable that if possible.[code]...
I want to be able to search the windows event log (security) on our 2008 DC to find out when a certain user logged in. Using the system.diagnostics.eventlog namespace I can search and view information based on the event Id(4624) but I cannot work out how to display the login name of the user.
I am using grid with image column. When user's click image to opened up image(jpg,jpeg,bmp,gif) via a image and fax viewer (i.e by the operating system). i have try to open but it's open in IE
Currently I'm working on a piece of code that involves using the Crystal Reports Viewer to export .RPT files to PDF. My problem is that the code works on literally everything except the website I'm planning to eventually put it on.
When placed on the website it throws back the error "Failed to open the connection." which I believe is connected to the SQL Server connection that's formed in order to read data for the report itself.
The code itself is solid and works when used in a separate console application I built to test it whether said code is run on my local machine or on the server itself. It even runs when I test the website in Visual Studio's virtual host.
I've narrowed it down to being some sort of permissions issue, but I am not knowledgeable enough in the various permissions settings to figure out which ones specifically apply to this situation. It's worth mentioning that other pages on the website are directly connecting to the same database, but they are doing so directly through Linq instead of going through the Crystal Report Viewer.
So does anybody know which settings I need to modify in order to fix the connection error.An added note: One of the other suggestions is to make sure there's an ODBC DNS in place that matches the one being used by the code. I have created such a DNS already.
I have a tumbnail Control box. Everytime my pictures load i click it will show in Image Viewer or photoshop can i view it in picture box instead of open a new window in other application?
FormA contain a textbox for user to enter their name and a button. When the user click the button, it will show the FormB which contain the CrystalReportViewer. I would like to to display the name which the user enter in the textbox on FormA on the CyrstalReportViewer.
The question is, how do I pass the textbox value to the Crystal Report Viewer The secondary question is how I am going to display the value on the Crystal Report Viewer.For you information, I am using VB.net.
this event works ok, but the problem is that I don't know what field was clicked. Should I use objectinfo or something else? VB.net won't recognize for example e.objectinfo.
I have created a simple framework for a Windows service in VB.NET Express 2008. It enables a timer which then writes to the event log every 6 seconds until the service is stopped. This works fine. I adapted that framework into something further. It is using Windows sockets. Well, I haven't finished that part yet and I just want it to write to the event log successfully but I can't even get it to do that now. I am trying to write an event in the OnStart event. The service is being started successfully, according to the standard event log, but my custom events are not getting there. I don't understand why as I am using the same code for that as I was before.
I have use VS2005, I have open windows explorer from code. when i click on search button it open New windows, and in this I click on All files and folders in Look in : combo by default C: and D: drives are set.
How do I open a Windows 7 Library like Documents, Pictures, Music, Videos and all other custom libraries from my app? I tried opening explorer.exe LibrariesDocuments but it doesn't work.
I try to add a "Microsoft Office Document Imaging Viewer Control 12.0" control to a form and i'm getting the next exeption: An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I have try to register the next files which throws an exeption when I try to do it:
Possible Duplicate: Crystal Reports vs ReportViewer Pros/Cons? what is the difference between MS Report Viewer and Crystal Report Viewer? I need to display some basic info. from my database and donot want to install any additional programs on client's computer to run the report.
produce VB script which looks at a particular folder and gets the name of the latest file. I have a folder which holds database backups and I need a script that gives me the full name of the most recent backup (file name consists of a date and time stamp). This file name will then need to be used in a variable within SSIS.
How do I get a file's directory when open with or send to event happens?I want it like media player, the application can get the file name & path when the user runs it with Open With.