I am working on a program to turn on devices at times of day and days of week. I am designing it for 15 devices and each device has a file. The problem I have is monitoring all 15 files. I can monitor each one and it works for that device, but only the device file I have called. I used data binding to create the files and can display the files one at a time, but I need to monitor the info on all 15 files actively.
In VB.NET win Application, While using FileSystem.CopyDirectory to copy a directory to the destination path, it produces IOEXception was caught - "Couldnot complete operations on some files or directories".
I know how to monitor newly created files etc but what i want to do now is monitor firefox and IE when they close. my application is running in the bg and i need it to perform a command when the browser closes.
I want to be able to monitor a folder, and anytime a file is placed in it (in this case, a .jdf file) I want to edit a string within the file (it's just a text file), then save the file onto a network path and remove it from the hotfolder into a "done" folder.
I'm trying to monitor the creation of files from macros I have launched from VB.Net. The code below works and the event fires but nay code I insert in the OnChanged events gets this error:Error 7 Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.
The error message makes no sense to me. I just want to call a SUB() on the same form or make a call to me WP class as shown. How do I do that?
I am trying to use the filesystem watcher to monitor a folder on a ftp site for files added. Does anyone know how to do this? I have even read that the filesystem watcher was not meant for ftp's but rather local monitoring, which doesn't make sense to me.
I'm writing a program which has to perform several operations on data exported from a CAD software.The amount of data to be processed is huge and even by simplifying the program at maximum it will still take about 10-15 minutes for average models.
The operations are performed on an array from the first to the last element. Let's say for a list of 10 elements (as example) that I start from element 1 and I finish when element 10 has been computed. I thus thought that since I'm working on a 8 processor machine would be convenient to make use of multi-threading. My idea is, for the case of 10 elements, to make thread1 working from 1 to 5 and make thread2 working from 6 to 10.I already wrote a working code for a 2 thread process which is working, but I want to extend the number of threads and eventually decide in function of the threads available. The basic structure is given below:
I want to make a process monitor tool with WMI that monitor the processes created or deleted, but the code will not work. Note to reference System.Management,
Can I monitor the registry for changes similar to how sysinternals process monitor does it in VB? I have checked many different articles and C# samples but not come any closer to getting an answer, I would like to know if there an easier way (a VB sample perhaps)that you folks can share. Ultimately I'd like to be able monitor other things too like file system, processes etc but wonder most about how the registry can be done in VB...Would using system.management be a start? Or WMI? if so is there a nice VB sample..
is it possible to communicate with a bluetooth device? I have a fairly simple heart rate monitor which has a USB stick, which connects wirelessly to the monitor.
It utilizes a serial port (COM3), where I can communicate with it. I've tried all sorts of data formats to parse the incoming bytes, from ASCII to INT32 to string... Nothing.
Is it possible to monitor how much traffic my application has used? I'm interested to see how much data that has been sent and received over the internet from/to my own vb.net application.
actually i have to develop a project to monitor EDI/Edifact data that are send between different EPR systems.Different erp systems means also different database systems. So i have to develop an app to monitor up to 5 tables.These tables can be stored in SQL Server, Oracle, MySQL or DB2. What kind of data access do i have to use ? ODBC ? ADO.NET ?? I actually don't have an idea how to handle this.In the app (i have to write) there should be something like a "DB Configuration for EDI" and there i want to configure if it is SQL, MySQL or what ever that i have to access.In the different Databases all the tables have the same name (means in SQL there is a table called Actlog and in Mysql also a table called Actlog)How can i write my app that it is DB independent ??
How can i monitor the HTTP data (headers including raw html data) that is sent and recieved while a user browses with a web browser control in my application?
is there some way to capture the connection itself into a socket?
I am creating an application in vb.net in which many users can add, update, and modify data stored in sql, but one user at a time. Users have to login to the application and then they can start their work. I want to know how I can monitor their work after they log out, like which user updated the record and at which time.
Imports System.ServiceProcess Imports System.IO Public Class fswService
[Code].....
2 problems: first, intellisense error saying: 'fswService' is a type and cannot be used as an expression. second, I can not figure out a way to pass on to the service the path of the folder to watch (which is stored at My.Settings.userPath).
I am using an httpWebRequest in my windows app to download files from a webserver (sURL), to a local folder (fileDestination) as such: Public Function DownloadFile(ByVal sURL As String, _ ByVal fileDestination As String, _ ByVal WebRequestType As String) As Boolean Dim URLReq As HttpWebRequest Dim URLRes As HttpWebResponse [Code] .....
This works fine for the first few files. But then it starts giving the error: "operation has timed out" on the URLReq.GetResponse line.
I have a piece of hardware that is controlled via USB.There are 8 LEDs on the output byte. One LED per bit.I like to toggle the outputs based on selection of checkboxes and given frequency entered in TextBox.I inserted 8 checkboxes to allow me to select the desired LEDs to be on.I select the checkboxes to select the required LEDs.The checkbox gives me the byte value. XORing the byte value with 255I can see them toggling very fast. I have a while loop to blink forever until I click on stop button.The stop makes the seq=false and this should stop the blinking but it keeps going.How can I insert desired delay of flashing frequency in my output routine?How can I stop on demand to change pattern without exiting the program.
I am trying to add functionality to automatically click the receive button if the Form1 is loaded.Even when i did not attach it to the timer the bCheckmail.PerformClick() did not work - Ideally this application will be loaded and check mail every 15 min.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Code As Integer Dim Version As Integer
Ok heres my idea Start(button)> start timer1 countdown> keypress> start timer2 countdown> keypress2> if keypress2 happend twice> then keypress3> loop> end>I understand the science behind it but I fail to grasp the knowhow of the program lang if anyone knows how this could be done in VB Express.
I'm trying to make a simple program that keeps track of a list of phone directories. It offers the option of adding new names to the directory and deleting names already stored.I want the program to display a small unobtrusive message when a name is added or removed.For example, a label that shows "James Potter added to directory..."and then disappears after a few secondsGoing through th file mentions the timer but it seems like an awfully long winded way involving a new control and a new subroutine for every single timed event. I was wondering if there's an easier way, perhaps a single command like:
i have a datagridview and each row got link.. and i using timer and backgroundworker as downloading file.. the 1st file download, its perfect working.. but when its going to download 2nd link from datagridview, nothing happened.. even its said, "The operation has timed out"..
im trying to make a short term ordering system for my major work for year 12 , i need to know how to run a timer in a label and progressbar at the same time , run by selections by combo boxes in another form.
I am trying to use a timer and stopwatches to control timed events and it's not working. This should be easy to implement and I don't understand why it's not working.
Code: Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick 'hide label1 after 3 seconds.
When I push in my program button which read data from serial port, then when are here not data, it write this error which stop program:The operation has timed out.When I push in my program button to read data from serial port and when the data exists there, then is all OK...Please what can I do for eliminating this message = when are not data in serial port, then I want become NO DATA and when exists data in serial port then I write this data....Here is shorted program:
Private Sub program_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load Port1.PortName = "COM1"