VS 2010 - Application To Be Able To Listen For When The Esc Key Is Pressed?

Jan 30, 2010

I would like my application to be able to listen for when the Esc key is pressed, then close the application. I have been searching Google but all I am getting is when in texboxes and thing of that nature, not a global key press.

View 4 Replies


ADVERTISEMENT

Make An Application To Listen In On A UDP Port

Mar 29, 2012

I am trying to make an application to listen in on a UDP port - the issue is that there is something already there. Here is the scenario: On port 5060 is a SIP-based softphone, it is listening for incoming calls. The application I am writing is also listening on port 5060 to receive the packets (which will then be parsed to extract the caller ID and various other statistics)

[Code]...

View 3 Replies

VS 2010 - Listen For On Certain UDP Port

Aug 6, 2011

I am doing a little project before I get onto some more complicated stuff and I am trying to become more fimilar with ports. Basically the issue at hand is that I am not too sure how to listen for on a certian UDP port.

View 3 Replies

Know If The Windows Run Key Pressed - Application Active

Jul 14, 2009

I want to know if the Windows Run key pressed. How can it be possible? What's the constant or ascii code for this key? The second: How can I know if the program, I wanted to use, is activated? What's the correct func. for this?

View 2 Replies

Interface And Graphics :: Set A Button So That When It Is Pressed / It Stays In Pressed Down Graphic State

Aug 14, 2008

How can I set a button, so that when it is pressed, it stays in the pressed down graphic state. Then when pressed again it returns to the normal not-pressed visual.Make a button stay like this until pressed again: url....

View 3 Replies

C# - Make A Ctrl+Tab When Pressed Works Like Tab When Pressed In A MultiLine TextBox?

Oct 17, 2011

I have a TextBox and set the MiltiLine property to true and AcceptsTab property to false.When the TextBox has focus and i press Tab it works fine and the next control get the focus, but when i press Ctrl+Tab it works as if AcceptsTab property is set to true and makes a tab character into the TextBox.The reason i press Ctrl+Tab.. when switching between forms in my MDI application.Now how to make a Ctrl+Tab when pressed works like Tab when pressed in a MultiLine TextBox?

View 1 Replies

Small Windows Application That Displays A .chm Help File When F1 Is Pressed

Mar 7, 2009

I have a small Windows Application that displays a .chm Help File when F1 is pressed. What I would like to do is to close the Help Display programatically for example when a Reset Button is clicked and the Form is 'Reset'.

View 2 Replies

VS 2010 Keys Pressed

Oct 1, 2010

How can to Know If the key is pressed and according to act?

View 9 Replies

VS 2008 : Write A Small Application That Is Able To Read What Button Is Pressed On The Gamepad?

Sep 13, 2009

I have this gamepad: [URL]I want to write a small application that is able to read what button is pressed on the gamepad.I've seen this thread:[URL]but this does not read the input of the controller, it only initialize it.[URL]

View 7 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 E.KeyCode - Determining Which Was Pressed

Nov 10, 2011

I'm trying to determine when the 'Left' and 'Right' keys are pressed, for keys that have a counter part. Like, Shift, Alt and Control. But it doesn't seem like any the counter parts have a unique KeyCode or KeyData. If I press the right or the left keys, I get the same KeyCode each time:

[Code]....

View 8 Replies

VS 2010 - Make An Event When A Button Is Long Pressed ?

Mar 12, 2012

Is there a way in VB.NET to make an event when a button is long pressed? Like one thing happens when you only click it and another thing happens when you long click it ..

View 3 Replies

VS 2010 Button Click Causing Enter Key Being Pressed?

Feb 14, 2012

I'm creating a web browser and I was wondering how I could make a button click cause the enter key to be pressed after without having to do it yourself on the keyboard.

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
End Sub

View 2 Replies

VS 2010 How To Retrieve That A Button Is Pressed In A Existing Program

Oct 28, 2010

i have a program called Vip Task Manager.This program lets me set up task which others have to complete.When they are done with a task they have to mark it "completed" and make a report on what they have done and used to perform this task.Vip Task Manager has a button which directs them to an upload form, now when they press the "open" button I would like this to happen: Open a certain report making program I made myself.When they finished writing their report and press save, the program saves this report on a dedicated network HDD (.txt file) and closes itself.Then add the file or link to the upload form in Vip Task Manager.What it all comes down to is that they dont have to minimize Vip task manager, open the report making software, save it, go to vip task manager, press upload, press open, look where this file is saved, select it, and upload it.now, typed in red is whats already been taken care of.The rest, I have no idea where to begin to be honest.First I want to find out how to retrieve that a button is pressed in a existing program. (dont know which code it is written in and it is not open source)

View 10 Replies

VS 2010 Snippet Of Code In Which The Computer Displays A Message About Every 20 Seconds Until A Key Is Pressed?

Nov 16, 2010

I need an example snippet of code in which the computer displays a message about every 20 seconds until a key is pressed.

View 3 Replies

VS 2005 Check When "Cancel" Button Or Exiting Application (X) Is Pressed?

Jan 25, 2010

I am trying to do the following check to see if the user presses the Cancel button or the exit application (X). But for some reason it is not working. Can anyone let me know what am I doing wrong?

CheckCancel
If NewStationInfo.CancelButton.DialogResult = Windows.Forms.DialogResult.OK Then
do sometheing

[code].....

View 4 Replies

TCP Listen On Any IP?

Mar 11, 2010

I am trying to make a TCP chat program, but instead of having people enter in the ip of the computer they wish to talk to everytime, i would like the program to be able to listen on all ip addresses, so that it will provide for a better user experience, and that i can have chat rooms with multiple people joining. I have the code working with entering in ips, however, when i use the IPAddress.any command it will not send messages.

View 3 Replies

.NET: Listen For Keypresses?

Apr 17, 2012

I found the code linked below on on of Microsoft's websites for listening for keypresses, however I can't seem to ge thte code to respond?

View 5 Replies

Listen For The 'End Sub Event'?

May 26, 2009

This is my first post, so hopefully I'm asking it in the correct place.

Currently I have two subs where the first calls the second.

Sub Sub1()
'some code
Call Sub2(x)
End Sub
Sub Sub2()
'some code
End Sub

This means that Sub1 does not end until after Sub2 is complete.I need to have Sub2 run after Sub1 has ended. In my case Sub1 is triggered from an application event, so calling the two subs from another 'parent' sub would not work.Is there a way that I can listen for the 'End Sub Event' of a sub?I am currently working in VBA but will be heading to .net shortly so I'll take whatever flavour of code people can help with.

View 1 Replies

Listen To A TCP Port

Apr 27, 2011

I have a program running on a machine on the local network that serves data on port 23. I'd like to be able to listen for data on this port, and add the data to a listbox when and if it comes in. Idealy this would run async. I sort of gotten this to work using the following: [code]

View 6 Replies

Listen To IP On Network?

Dec 6, 2011

I have barcode reader work by rs232 , i using converter from rs232 to TCP/IP to make it connect by TCP/IP, Now barcode send data on this Ip "192.168.0.125" on local network and the IP port is 50000 How i can listen to this ip to read the data send to this ip?

View 8 Replies

Using TCP To Listen For Connections

Dec 17, 2010

I am developing an Application that uses TCP To listen for connections, and then when a message is sent to the server and then it alerts the IP that is running the server. (Lets say the server is on a iPhone, and some how the iPhone gets a text message, which alerts a tcp server running in the background via a .jar, it would send the owner of the iPhone a message on the computer telling it it has a text. This is just an example though, but I think it gets the general idea across. I've been trying to do this, and I can connect to a TCP Server (using 127.0.0.1:8888 for testing purposes, will move to a solid IP and Port later). I can start the server (its still buggy and under development) but i don't know how to connect to the server via an application, and when a certain message is received to alert the IP Running the server.

My Server Code is:
Dim serverSocket As New TcpListener(8888)
Dim clientSocket As TcpClient
Dim infiniteCounter As Integer
Dim counter As Integer
serverSocket.Start()
[Code] .....

Now I know that to connect you'd do something like
Code:
Dim clientSocket As New System.Net.Sockets.TcpClient()
Dim serverStream As NetworkStream
clientSocket.Connect("127.0.0.1", 8888)
serverStream = clientSocket.GetStream()
And I know I would have to use some sort of Byte() method to send/receive messages, but I am at a loss on how to set it all up.

View 3 Replies

Listen To A TCP Port Which Is Already Being Listened By Another App

May 19, 2011

I've a plugin which always listening to the port 6002, and i have an ASP.net application which sending messages to the same port and receiving the reply from the plugin on the same port,Sending is working fine, and the plugin sends a reply on the same port but i don't know how to catch this reply, when i try to listen to the same port using Tcplistener the start method throws this exception : Only one usage of each socket address (protocol/network address/port) is normally permitted,

View 4 Replies

String Or Textbox To Listen?

Mar 21, 2011

I would like to know if it's possible that when an event occurs, a string variable begins to listen (so when a key is pressed, its value is appended to the string) until another event occurs.

EDIT:I would like to make it other way:When the event occurs, I want a textbox to activate as if i double-clicked it (althougt it would be invissible, i olny want the textbox to make an event happen when the text changes using that text)

View 3 Replies

Get An Object To Listen For Its Property's Event?

Dec 15, 2009

I have an object of type SomeObject, with an event StatusChanged. I have a property in SomeObject of type Status also with an event StatusChanged. Within a private function in SomeObject, I would like to run some logic (including firing the StatusChanged event) in the event that Status has fired its StatusChanged event. I have been away from events for a while so it's a bit cloudy to me. How do I do this?

I'm writing in ASP.NET/VB.NET EDIT Ok, in the event that I can't do the above, how would I get the outer object (SomeObject) to fire its StatusChanged event when the inner object (Status) fires its StatusChanged event?

View 1 Replies

Listen For Outlook Email Notification?

May 26, 2011

Currently I am doing a project that requires me to "listen" for new emails coming in MS Outlook. I have code that currently works to do everything else with the emails, but I'm not sure of the API/VB code (this is MS Access 2010 which uses VBA 7.0 running on a 64-Bit Windows machine) that will listen for new emails.

View 3 Replies

Listen To Events From A Windows Service?

May 10, 2011

Not surer if I know exactly how to ask or phrase this questions/discussion.I have a windows service that listens to a COM port for GPS data and send the information out through a UDP port to a listening application (VB6 app). I have a UI front end for the service that I would like to listen or watch the data and do some other things with the data.

The service raises an event in which I would like to have my UI listen to. Now I'm guessing that since my UI is on one thread and the service is on another, if I add a handler to the event, it may never pick it up.

Therefore, I am wondering how can I listen to the events from a sperate UI application. I heard a lot about Remoting, but my concern is configuration; our end users are not technical at all and not sure what is involved...and I'm not that familair with Remoting.

View 1 Replies

Listen To Left And Right Arrow Key On The Keyboard?

Aug 17, 2009

I am trying to use m.WParam to separate the event raised by left arrow key "<-" and right arrow key "->", but somehow m.WParam always = 0. How can i separate the event raised when the user press left or right arrow key?

[code]...

View 1 Replies

Make A Winsock Listen On A Particular Port?

Sep 12, 2009

This must be really obvious, but how do I make a winsock listen to a specific port (recieve data?)

View 2 Replies

RFC - Listen For Connecting Clients Using TcpListener?

Oct 8, 2011

I posted this code in another thread as an example of how to listen for connecting clients using TcpListener.it is a small part of a larger project, its all my own work,

Imports System.Net
Imports System.Net.Sockets
Public Class Server[code].....

View 2 Replies







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