VS 2010 Detecting Printers On Remote Pc?

Mar 16, 2012

I need to list printers on a remote pc and am gettings errors trying to use wmi code but I am open to another way of doing this,

Private Sub DetectPrntrs()
Dim strComputer As String
Dim colPrinters As String

[code]....

I get the error:'Name' is not a member of 'Char'.

View 5 Replies


ADVERTISEMENT

VS 2010 Listing ALL Remote Printers

May 14, 2012

I have this working but only shows printers for the current user I think, I need to see a list of all printers installed on a remote pc for all users.I think I need to use the reg keys but all samples I fnd want only for one user and seem to be vbscript not VB code..[code]

View 2 Replies

Local And Network Printers For ALL Users On A Remote Pc?

May 30, 2012

I have this partially working but only shows printers for one user, need all local and network printers mapped for ALL users on a remote pc so I can migrate them, I know I need to do some sort of for each method but not sure what will work

[Code]...

View 1 Replies

C# - Detecting Remote Desktop Connection?

Jun 10, 2009

Is there anyway, in a program, to detect if a program is being run from inside a remote desktop session or if the program is being run normal in .NET 2.0? What I'm trying to do is, I create a timeclock application which will clock a person in and out and keep track. But this particular person, I suspect, is remoting into their computer at work, from home, and clocking in and out.

View 5 Replies

Detecting Local Computer Name Etc On Remote Desktop Session

Nov 13, 2009

I have a VB.net 2008 Windows forms application which runs on W2k3 server and is accessed by 15 Remote Desktop users I would like to be able to store information such as the default printer for each RDC session plus other info To be able to do this I need to know the local computer name (or some other identifier) so I can store computer specific information (such as default printer) how I can get info about the RDC session from VB

View 1 Replies

Vbscript - Remove Old Printers - Add New Printers

Sep 23, 2009

Trying to write a Vbscript. Actually, I'm trying to modify an existing script that I found on the internet. I basically need the script to run on workstations, delete printers from our old print server (master), and install the corresponding printer from our new print server (dc01). I should also mention that the printer names have changes slightly. So far, the script does a great job of deleting printers from Master, but none of the corresponding dc01 printers are installed.

Here's the code:

CODE:

View 1 Replies

VS 2010 VB 2010: Detecting String In Between 2 Characters?

Apr 17, 2010

detecting the string between 2 characters, EG " is the starting character anything the user types is the string" is the ending character
like this:

" <user text> "

I need it done so it changes the syntax. I am using a RTB to change the syntax.Here is my code.word is the list it needs to be added to, NOT rwrd

Private Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
Dim words As New List(Of String)
Dim rwrd As New List(Of String)

[code]....

View 7 Replies

VS 2010 Detecting A Certain Sound?

Nov 6, 2011

I need my program to 'listen in' for a specific sound.

View 3 Replies

VS 2010 Detecting AT Command Port(s)?

Apr 22, 2012

looking for a way to detect all available AT Command ports on connected USB Mobile Modems.

I've tried messing with WMI a bit, but was only able to detect the HSBC ports, not the AT Command Ports which is nessassary to issue AT commands to the modems.

View 2 Replies

VS 2010 Detecting Button On A Tab Page

Apr 6, 2012

I have implemented tab control on an existing form by using form designer and copying button from an existing vb application. my goal is to run a piece of code when a button on a tab page is sellected. How do I go about implementing this? I can detect in the code which tab page was selected but not that the button on the page is sellected.

View 1 Replies

VS 2010 Detecting CPU, GPU, HDD Temps, Fan Speeds?

Mar 1, 2011

I'm wondering how I would go about getting CPU, GPU and HDD temperatures and fan speeds, is there an easy API for this? I have a feeling there isn't

View 6 Replies

VS 2010 Detecting If A Program Has Closed?

Aug 5, 2011

I have a program which when a button is clicked on a form sends the form to the back, so that Notepad can open on top, then it opens up notepad

Me.SendToBack()
System.Diagnostics.Process.Start("notepad.exe", myPath & "*********.txt")

Now what I want to do is to detect when the notepad has been closed then I can bring the form back to the front and I just do not know which commands to use for this to detect a program outside of VS 2010.

View 7 Replies

VS 2010 Detecting Laptop Lid Close

Nov 16, 2011

I've been searching this for quite a while now, but I've come up with very little so far. I need to figure out how to determine when a laptop lid has been closed so an execute an action when this occurs. But the power settings will be setup to where the laptop does not go into sleep or hibernate mode.

View 5 Replies

VS 2010 Detecting Lid Close Change

Dec 7, 2011

I've been attempting to determine if a notebook's lid has been closed when the power setting is set to "Do Nothing."I was able to get this to work by trapping the WM_POWERBROADCAST message, but it would only work when the computer when to sleep. I've tested this on many different notebooks and the results vary. Even when changing the power settings correctly, the results were fairly inconsistent.So I posted this question in General Developer and penegate offered a possible solution.[code] I'm thinking that maybe the message I'm trapping isn't correct, but I'm not 100% sure. When I Google that message, nothing comes up. Two links appear. The one on VBF and some German site. Nothing's on MSDN.

View 1 Replies

VS 2010 Detecting Mouse Clicks?

Jun 7, 2012

how do I make a textbox that counts every single mouse click made while the application is open?

Private Declare Function GetAsyncKeyState Lib "user32" (ByVal VKey As Long) As Integer
Private Sub WebBrowser1_MouseDown(ByVal Button As Integer)
Select Case Button

[code]......

View 2 Replies

VS 2010 Detecting New Line In Datagridview?

May 20, 2012

I am trying to detect when the user selects a checkbox on the new line of a datagridview

I am using the following code but it doesn't detect the new line has been selected. When running debug IsNewRow shows as FALSE

Private Sub DataGridView1_CellContentClick(sender As System.Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick

[Code].....

View 3 Replies

VS 2010 Detecting Webbrowser State

Dec 19, 2010

I have the following code that goes to a webpage and is suppossed to wait until the webpage has fully loaded.[code]

View 4 Replies

VS 2010 Detecting When The Tab Key Is Pressed In A Textbox?

Jan 27, 2012

I thought it was simple but i guess it's not...How do I detect when the tab key is pressed in a textbox?I've tried the following code in KeyPress, KeyDown, Leave, etc. events but the tab is not detected.

View 6 Replies

VS 2010 - Detecting Mouse / Keypress Input

Dec 5, 2011

I am creating an application that creates scripts to move a mouse and to click where a user wishes to via pre-programmed code and to also press keys where required. I have the code to move a mouse and to manually click anywhere. What I am after is to detect when a mouse button is pressed and dragged and when keys are pressed.

I see that there is the following
MouseButtons.ToString
To detect when a mouse button is pressed, and have it looping in a timer. Is there a better way to do this? I would rather not use a timer. And is there a similar routine to detect which keys are pressed?

View 20 Replies

VS 2010 Detecting PrintScreen (PrtScn) Keypress?

May 13, 2011

I'm trying to detect the Printscreen keypress with the use of a timer. I can't useform1_keyup/down as the focus isn't always on the form.

View 4 Replies

Reading EXCEL In 2010 Detecting Blank Cells

May 16, 2012

My Visual Basic .Net 2010 application reads data from an EXCEL spreadsheet which will be generated by my "customers". The responses to Alkis last year (23 July 2011) has been a big help and got me over a hump in my application. Now I am down to the last issue - how do I detect a blank cell? Valid data is numeric, starts at a fixed cell (A5 to be specific), and will be continuous until it ends with blank cells. While blank cells appear to print a "zero", when I try to use zero as an end criteria I get a 'System.InvalidCastException'. When I put in a specific end value (-1) in the last cell all works fine but that, of course, is an invitation to a user error.What is the difference between "Value" and "Value2" and where might I find documentation that explains the difference? [code]

View 1 Replies

VS 2010 Detecting Mouse Position During Drag & Drop?

Feb 15, 2012

Is there any way of detecting the position where the Mouse Button is released during a Drag & Drop operation. I need to know whether the intended Drop position was not reached when the mouse button is released.

View 8 Replies

VS 2010 Windows API For Detecting A Mouse Click Anywhere Or On A Specific Program

Jan 4, 2011

I need to create a program that can run code each time the user clicks, I can't use windows forums since its on another program. If the code can detect global mouse clicks(system wide) or only on one program it's fine.

I've done some digging and it looks like windows API can solve my problem but i really suck at using windows API and it looks like SetWindowsHookEx() can solve my problem but i don't know how to use it correctly. This is the code from Pinvoke that I modified to hopefully work for a mouse click. i'm having trouble getting this to work.

Imports System.Runtime.InteropServices
Imports System.Windows.Forms
Module Module1
Sub Main()
Dim t As New MouseHook

[Code]...

View 5 Replies

Detecting Mouse Wheel Events When Form Does Not Have Focus In Visual Basic 2010

Aug 11, 2011

I want to make an auto log off feature, I want to detect if there is any user input, and if there isn't the user will be automatically logged off. So I want to know how to detect mouse wheel events when the form doesn't have focus.

View 1 Replies

Communicating With Printers?

Feb 3, 2009

is there a way through vb visual express 08 to ask a printer if it has toner or paper? im not to sure on how to communicate with printers in this way if it is at all possible.i am writing a program to display the status of the printer and this is key.

View 1 Replies

Get A List Of Printers?

Nov 28, 2009

When you go to the Start button and then "Printers and Faxes" and you see a list of the printer objects defined on that PC. In my App VB.Net app I want to be ale to use a drop down box to display this list of printers and allow the user to select one of them.So, Not necessarily a list of printers on the Intranet that the user is connected to, only on their personal PC.

View 1 Replies

Add And Remove Networked Printers?

Aug 27, 2011

How can i create a program using vb.net to add and remove networked printers?

View 2 Replies

Set The Printers Paper Orientation Using VB?

Jun 11, 2011

how to set the printers paper orientation using vb dot net

View 17 Replies

Set The Printers Paper Orientation?

Mar 10, 2009

how to set the printers paper orientation using vb dot net

View 1 Replies

Remote Assistance For VB 2010?

Mar 7, 2012

Ok, here is the scoop. I would like to know if someone would provide remote assistance in restoring contols for visual basic ultimate 2010. I have had this version for less than a week and the controls are dispapearing to make it function. I don't know how to restore functions yet, due to the fact of beginners luck.

View 2 Replies







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