VS 2008 : Monitor LPT Prints And Turn Them To The File?

Feb 26, 2010

Im currently working on application where i need to monitor LPT printer port for traffic. Now i need to found the way how to monitor LPT prints and turn them to the file. Anyone can help me out please. I have try to search on google and also here but not success, only what i found was example in VC++ but i need it in VB.NET or at least in C#.[URL]

View 1 Replies


ADVERTISEMENT

VB 2008 Code To Turn Off Monitor

Jan 26, 2010

I found many solutions in C++ however they seems fail to satisfy my requirement. I need code to turn off monitor when i'm away and if i want it to turn on, i must type specified key instead of any key press or mouse movement as usual.

View 5 Replies

C# - How To Turn Off A Monitor Using NET Code

Jun 3, 2011

How do I turn off a monitor using VB.NET code? OK, actually I found the C# solution. But I need the VB.NET solution. I have tried an online C# to VB.NET converter, but the converter is complaining that there are errors in it.How can the following C# code be translated to VB.NET?

[Code]...

View 2 Replies

VS 2005 Turn Monitor On/off?

Oct 17, 2009

I built a power saver program that makes the screen turn black when you're not standing over the keyboard, but it only makes the screen turn black and that probably won't save much (or any) power

View 7 Replies

VS 2010 : Turn A Monitor Off?

Jun 9, 2012

Public Declare Function PostMessage Lib "user32.dll" _
Alias "PostMessageA" _
(ByVal hwnd As IntPtr, _

[code]....

And here is the actual code to do the task:

PostMessage(Me.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 2&)

This puts the monitor into standby. Can I please have some help to modify the code to turn the monitor off, and also the code to turn it back on.

View 10 Replies

Turn Off Monitor From Command Line?

Nov 11, 2011

I will build a EXE file without form, this EXE file will turn off monitor, then invoke this EXE from command line.The turn off monitor code is below

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Private Const WM_SYSCOMMAND As Integer = &H112

[code]....

I want to know what about the MainHandle, because there is no the form in the EXE file (Me.Handles invalid), and only invoke the EXE from command line, in other words, there is no the invoke form (FindWindowA is invalid), how to write the MainHandle?

View 2 Replies

VS 2008 Get Username Accessing File With Folder Monitor?

Aug 27, 2009

How to use Folder Monitor (or something else) to get the username along with folder activity?

View 1 Replies

Printing :: VB 2008 Prints The Same Page Over And Over?

Feb 16, 2010

I have tried to create an amortization program The issue that I am having is that the program wants to print the same page over and over again. The first page of the printout runs through the "While loop" appropriately, but when the second page starts printing, it repeats the information that is on the first page. This is true of all subsequent pages I have included the printing portion of the code.

Private Sub cmdPrint_Click(ByValSystem.Object,System.EventArgs) Handles cmdPrint.Click 'Defines printed page

[code].....

View 1 Replies

Take A Screenshot = Turn It To Byte() - Send Through Tcp Connection Then Turn Back Into Image To Put In A Picture Box On Other Side?

Feb 11, 2012

My current code: Server: Imports System.IO Imports System.Text Imports System.Threading

[Code]...

View 9 Replies

Turn Off And Turn On Background Music In Program

Feb 17, 2012

Right now I can add background music in my program by using this code

My.Computer.Audio.Play(My.Resources.Music_3, AudioPlayMode.Background)

I can also turn it off and change the music by using this code

My.Computer.Audio.Stop()
My.Computer.Audio.Play(My.Resources.Another_Music, AudioPlayMode.BackgroundLoop)

Is it possible to pause the music then if I resume the music it will just continue the flow? I mean if I pause the background music in 33 seconds and the music has 50 seconds and I resume it will just continue playing in 33,34,35 etc.. seconds?

View 2 Replies

Turn Off Events And Then Turn Them Back On In Program?

Sep 1, 2009

I was wondering if their was a way to for me to turn off events and then turn them back on in my program or just queue them up until i am ready for them to be excuted. Kinda like how a OS turns on and off interupts. Is this one of those general programming no-nos?

View 1 Replies

Make A Process Monitor Tool With WMI That Monitor The Processes Created Or Deleted - Code Will Not Work

Sep 9, 2010

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,

CODE:

Code dowload:

CODE:

View 4 Replies

Monitor The Registry For Changes Similar To How Sysinternals Process Monitor ?

Jan 31, 2011

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

View 3 Replies

Turn Off File Dialog Features?

Aug 19, 2010

I using vs2008/vb. I want to provide my users with the ability view files in a specified directory and allow them to drag-drop to e-mail. I don't want to allow them to delete files in the directory or to even change directories. Is there a way to restrict the filedialog boxes to not allow deletes and directory changes?

View 3 Replies

How To Turn Screen Shots Into A Movie File

Jan 5, 2010

I made a program that makes screen shots and I want to turn the final project into a movie file.

View 2 Replies

Take A Byte Array And Turn It Into A Tiff File?

Feb 22, 2010

I am reading in files.....doc, pdf, rtf, and txt. I ready them into a byte array? is there way that I can take that array and store it in as a tiff file?

View 4 Replies

VS 2008 Turn String Into Name?

Apr 14, 2011

i'm working on a game where when your character (in a picture box) collides with anthother charachter (also in a picturebox), the character disappears. i want the computer to generate characters as you play. I'm trying to figure out how the computer will know if the player character has collided with a computer generated character. as the computer generates characters it puts their names in a list box. what i'm not sure how to do is pull the names out of the list box and have the computer check the location property of the picture box with the name that corresponds.

View 3 Replies

Monitor An Swf File?

Feb 7, 2011

I've a (challenge?) question for you, it's possible to monitor an swf embedded in a Form, so we can know when it stopped?[code]...

View 12 Replies

Monitor For A Change In A Csv Log File?

Nov 15, 2011

manage some equipment which adds a new record to a csv log file every 15 mins. Whenever the value in the fourth column in that log changes to or from 0 (regardless of what it changes to or from), I want to fire an email off (two different emails - one for the value changing to 0 - i.e. turning off, and a different email for it changing from 0 - i.e. turning on). Can anyone point me in the right direction for some code for that?

View 2 Replies

VS 2008 - Important To Turn Option Strict On ?

Oct 13, 2009

Why is it so important to turn option strict on? I admit I am not a professional programmer, but I have written a great number of useful applications...I am fairly well (although self) educated in object oriented programming... I even write programs for my business...I always have felt that I am missing some background theory that is probably really important (I have a grad degree in math, no comp sci)...I have never turned on Option Strict for any project I have ever written, and I guess I just want to know, theoretically why is it important?

View 10 Replies

VS 2008 Turn/off The Hidden Folder Option?

Oct 22, 2009

How would i make it so my application can turn/off the hidden folder option?

View 9 Replies

[2008] Programmatically Turn On/off The Backlight On Laptop?

Feb 10, 2009

1st. I want to programatically turn on/off the backlight on my laptop. I believe it can be done with the user32.dll, but I can't find the exact code.

2nd I want to programatically turn on/off my WiFi adaptor, just to interupt my internet connection for a few seconds.

View 4 Replies

Unusual File Monitor Results?

Oct 4, 2010

If i save a document called sheet.docx i get these results. How come its not displaying just the full path and dcoument? C:Documents and SettingsOwnerDesktopNew FolderSheet.docx as this is the entry i needhere is my code

vb
Private Sub fswDocumentDirectoryMonitor_Changed(ByVal sender As System.Object, ByVal e As System.IO.FileSystemEventArgs) Handles fswDocumentDirectoryMonitor.Changed

[code]....

View 5 Replies

VS 2008 - Turn On Caps Lock When Push Button

May 12, 2009

Im really bored an I can't think of another program to make but im going to give it a shot. Im trying to make a program that can turn on caps lock when you push button 1(Yes I know theres already a caps lock button on the keyboard Lol) and turn on off caps lock with button2. Im am also trying to see everytime i push button 3 it will hold shift down for as long as o dont let go of the left mouse button but when I let go of the left mouse button it will let go of button 3 and shift will be off O.o. Is there a way to do this?

View 1 Replies

VS 2008 What Should Turn Off To Make Them Stop Popping On Debugging

Jul 6, 2009

I have a small problem, When i Start Debugging my program a lot of windows popping up such as: Watch 1 - 4, Memory 1 - 4,Autos And Registers. What should I turn off to make them stop popping on debugging?

View 4 Replies

Start A Folder Monitor Service At Runtime And Pass On The Folder Path To Monitor?

May 27, 2010

I have the following windows service file:

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

View 2 Replies

Copy A File In The Background And Monitor Its Progress?

May 24, 2012

i am trying to figure out how to copy a file in the background and monitor its progress.

in VB6 i used the FileCopyEX API

so i wrote a quick application in VB6 that used the API, then opened it in VB2008, so it ran the upgrade wizard

i get one error message after the wizard runs

'UPGRADE_ISSUE: Declaring a parameter 'As Any' is not supported. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="FAE78A8D-8978-4FD4-8208-5B7324A8F795"'
Public Declare Function CopyFileEx Lib "kernel32.dll" Alias "CopyFileExA"(ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal lpProgressRoutine As Integer, ByRef lpData As Any, ByRef pbCancel As Integer, ByVal dwCopyFlags As Integer) As Integer

View 3 Replies

File I/O And Registry :: Shared Folder Monitor In .NET?

Jun 26, 2011

give me a function or class which have properties ?For example:I shared a folder (C:shared)

Dim clsObj as new clsSharedMonitor("C:shared")
'so that I can get its properties like:
clsObj.FullPath() 'Full Path of folder that client are accessing
clsObj.ClientIP() 'IP of computer which access to server

[code].....

View 6 Replies

VS 2010 Folder Monitor And File Conversion

May 11, 2012

I'm unsure if this should be in Office Automation or here, but I opted for here because I'm creating a VB.Net program to handle all of the office automation and my questions are a combination of the VB.net portion and some of the VBA formatting. At a high level I receive a file in email, put the attachment in a monitored folder, import the text file to excel, format the excel, and then email the excel file to a list of recipients. [code]Obviously the items above that are not complete are the bulk of the work, but I wanted to get some advice on what some of you think would be the best way to approach something like this. The import and formatting of the file are causing me some problems because I just can't decide what would be the most efficient way to do this. Having a template excel that contains all of the formatting already done for me and attempting to transition the data to this document (no clue if/how I can do this). Is it even feasible? Have the template already created and then import the text file to a new excel file, then transition that data to the excel template?

Something I thought about, in terms of formatting the document, was to record a macro of me doing all of the formatting that I'm going to need and then attempt to convert that macro into my vb.net code, but I'm not sure if that will work. I will need to verify that the text file comes in the EXACT format every time correct?

View 1 Replies

VS 2008 - Creating Remote To Turn Up / Down System Volume Via WiFi

Oct 28, 2009

I am working on a little project for my phone creating some sort of remote to turn up/down my system volume via wifi. The phone will send data to a text field on the website lets say such as "vol up" and the vb app sitting on the computer will be constantly reading this text field for key words like "vol up", "vol down". when it see's a recognized command it reacts by turning the volume up and so on. And one more thing: Is it possible to have a vb app that uses http? E.g., sits on port 80 itself and can be accessed via local ip.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved