Detecting DELETE Key In VB 2008 Form?

Nov 24, 2009

how to detect when the "DEL" key has been pressed in a VB 2008 windows form?

View 5 Replies


ADVERTISEMENT

VS 2008 Detecting Mouseclick Outside The Form?

Apr 7, 2009

how can i detect mouseclick outside the form (for example desktop)

View 5 Replies

VS 2008 - Detecting Mouse Cursor Outside Form

Apr 1, 2009

I can detect the type of mouse cursor (normal, hand etc) inside the form but i need to detect it when the cursor is outside the form.

View 2 Replies

Detecting Keypress Outside The Form?

Mar 17, 2009

I need to find out how to detect keypress's outside of my form

View 1 Replies

Detecting A Mouse Click That Is Outside Of The Form?

Jul 13, 2009

i would like my form to dissappear when the user clicks outside the form in vb.net. how do i do this?

View 1 Replies

Detecting Victory In Separate Form?

Feb 24, 2009

In a project I'm working on, I have 3 separate mazes, a Splash Screen, and a Module for my global variable(gWin, to detect wins on the mazes). When you finish a maze, I'd like to get it so that it does not allow you to go back and redo a maze, to prevent cheating as I want a final screen to appear when they complete all 3 of the mazes. Is there a way that I can make a variable or something to be able to check if a maze was already completed then cause that maze to have it's .Enabled property set to false?

View 8 Replies

Forms :: Detecting If Form Is Active

Jun 2, 2011

I am new to vb.net and what I want to do is change the bg color if my form is active.
I have tried searches and try and fail but I cant figure it out

View 9 Replies

Detecting Items Under A Form - Pattern Matching?

Mar 26, 2009

Is there any way to detect the area under a form window. e.g I want to create a grid and use what's in that grid to match patterns.orIs there any way to take a screenshot of the area under a form?

I have been searching all over for something that will do this and the only thing I managed to find was [URL]..I do not however want it for this application (If I really wanted to cheat at a game I would buy the software). But this is a perfect example of the pattern matching I wish to achieve.Edit: OK scratch that... I have managed to take a csreenshot of the region under a form, now has anyone any experience in pattern matching images?

View 2 Replies

C# - Detecting The Form Move Event From Within A Child Control?

Jul 8, 2010

I am creating a user control where when a user clicks a button a popup window will show up with information. The popup window is driven by a toolStripDropDown so when it shows up it does 2 things

Does not move the other controls on the form around but displays over them That it can show the details outside the bounds of the user control itself without having to reserve the space ahead of time

Here is some code

Public Class Popup
Private treeViewHost As ToolStripControlHost
Private Shadows dropDown As ToolStripDropDown

[Code].....

Now my issue is as the form moves or resizes the Tooldropdown does not move relative. I understand that. When I try to capture the move event of the user control that event does not fire when the entire form moves. There has to be something I can capture because the controls in the container of the form move relative, what drives that? I tried wndproc but nothing fires during form move unless the form is repainted.

View 4 Replies

Credits-style Scrolling Textbox And Form Detecting A Enter Keypress?

Mar 8, 2012

I have two issues. The first is that I want to make a textbox scrolling similar to how credits scroll. I don't want it to move on the form, just to scrolling the text down a line/pixel. I thought I could do it with the "Lines" element, but I'm not exactly sure how to execute it.

The other problem is with my flash screen. Right now I have it set so when a button is click, it goes onto the main form. I don't want to use the button but rather have it so if Enter is pressed at any time, it'll go to the main form. All the solutions I've tried to use involve the "e.Keycode" code, but for some reason its unavailable.

View 11 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

VS 2008 - Detecting .NET Framework Version

Jan 13, 2010

I need to detect if any version of the .NET framework is installed as we are deploying a .NET 2.0 app via logon script (ie XCOPY deployment) to all PCs in our network. The .NET app will be set to start when a user logs in, so we need to determine if .NET 2.0 (or higher) is installed before we deploy the app otherwise the user will get an error each time they log in. Is there any sure fire way to detect .NET via vbscript or batch file? All of the results I have found on google don't seem to be that reliable.

I have recently written a program that detects installed programs in the same way that Add/Remove Programs does but the problem with this is that even Add/Remove Programs does not seem to show the .NET framework on all PCs that have got it installed (like my home PC for example, definitely has .NET 3.5 installed but its not in the Add/Remove Programs list).

View 9 Replies

VS 2008 : Detecting If WebBrowser Completed?

May 9, 2009

I want to create an If End statement like so...

If (webBrowser is finished loading) then
do some stuff
End If

and it needs be within Private Sub tags so it can't be

Private Sub webbrowser1_documentcompleted

View 3 Replies

VS 2008 Detecting A Mouse Click?

Sep 7, 2009

I need to know a way to detect if the mouse has been clicked anywhere on the screen. So as long the program I am making is open when the user clicks my program needs to do something. Please let me know as soon as possible if this is possible and how you do it.

View 5 Replies

VS 2008 Detecting Invalid Images?

Jan 12, 2010

I have a program that parses INI files (yes yes, I know, but I'm stuck with using them, not my own request), and it downloads external images (if the INI contains the path) to the program and cache's them.

Recently, I've run into a snag with the system. Most of the images use Imageshack for storage, but one of them has suddenly 404'd, and whenever I set it to the picturebox to the downloaded image, I get an out of memory error rather quickly (and the file itself is 1kb).

I guess I need to implement a checking system offline to find out if the image is actually an image or just a '404' text...but is there a way to not have to implement this clientside, and have it be checked when I download it?

[Code]...

View 1 Replies

VS 2008 Detecting Screen Saver

Mar 17, 2011

I have been playing about with the WM_SYSCOMMAND Message and more specifically with the SC_SCREENSAVE parameter which is a cool way to pick up when the screen saver is activated as seen below:[code] What I can't seem to find is if there is a way to detect when the screen saver comes off.

View 4 Replies

VS 2008 Detecting Where In A PictureBox Draw

Jun 14, 2012

I've come across involving a PictureBox.I am trying to create a quick Paint-like application, but I want something to happen in it. I want it so that when you draw or have drawn in a certain area of the PictureBox, you trigger events to happen (but they must only trigger once. This doesn't mean only one event can happen, it's just that each event can only happen once). How would this be possible to implement in my code I have now?[code]

View 5 Replies

[2008] Detecting A Print Cancellation?

Apr 11, 2010

While I print or preview a large bitmap, VB.NET show a small window with a cancel button.

I do I detect that the CANCEL button was pressed, so I can abort my PrintPage event before the current page is completely rendered?

View 5 Replies

Detecting Zerofill In MySQL Field With VS 2008?

Jul 27, 2011

Using .NET connector: [URL] A field is set in MySQL as:

decimal(6) zerofill not null

How can the "zerofill" flag be detected in VB?

View 1 Replies

VS 2008 Detecting A Windows Mobile Device

Nov 25, 2011

Im new to programming.I work for a research in Sri Lanka.In our research data is collected on windows mobile devices.I am the person who connects the devices(Known as JUNOs) and copy the data to the hard drive.But when Im not around others should copy the data.But they havent got IT knowledge.I want to create a simple software which detects the JUNOs when connected,show a message that a device is connected(Ex : JUNO1 is now connected),and then a button to copy and paste data to hard disk.(Ex: Press copy button to copy data)

View 4 Replies

VS 2008 Detecting Existing Web-browsers Installed?

Apr 6, 2009

3 things , 1. how can i detect all the existing web browsers installed on the computer (IE , Mozilla ect'...) and put it in a combobox or something like that. 2. after i detect and select a browser , how do i launch that specific one? 3. how can i know which one is the default browser

should i see if the browser file exists ? ( IE7.exe, ect'....) or is there a more simple way ?

View 2 Replies

VS 2008 Detecting If An Item On Listview Is Selected?

Jan 21, 2010

I have a listview, and when you right click, it shows some things. I need to make it see if an item on the listview is selected. Is there a way to do this?

Like, this doesn't work, but in code it would be like

If listview1.HasItemSelected = true then'code here end if

View 6 Replies

VS 2008 Detecting If User/password Are Correct For FTP?

May 22, 2011

Basically i want to send a created file over a local network via FTP. If the username/password/IP address is incorrect the application just crashes.

Is there anyway i can detect if the credentials are correct? etc.

Code I'm using to upload the created file is;

My.Computer.Network.UploadFile("C:lini.ftp", "ftp://" + ftpUser.Text + ":" + ftpPass.Text + "@" + ftpIP.Text + ":21/Usb0/launch.ini")

View 2 Replies

VS 2008 Detecting Mouse Clicks In A Control?

Sep 17, 2009

I would like the text in a button to display "hello" when it is first clicked, and "world" when it is clicked again. But I don't know how to write code to detect the second click.

==========================================================
Private Sub StartStopButton_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles StartStopButton.MouseClick
Button1.Text = "Hello"

[code]....

View 2 Replies

VS 2008 Listview Detecting ScrollBar Change

May 1, 2010

I've been using 'GetScrollInfo' to find the position of the scrollbar on a ListView and I can detect when it hits the bottom of the list. Is there anyway I can raise an event when the scrollbar changes? At the moment I have it working by using a timer but I would rather if possible create an event to fire my routine.

View 1 Replies

VS 2008 Detecting The 30 Minutes Interval In Time Scheduling

Feb 27, 2010

I have a problem in detecting the 30 minutes interval in time scheduling like for example i have a combobox(starting_time) and combobox2(endtime) and I select there 9:30-10:00 it has 30 minutes I want to show a message box that I should be 1 hour.

View 12 Replies

How To FileInfo Before, Delete Or SHIFT + DELETE, Process Final Delete Of File

Feb 13, 2011

How can be find out which file is going to delete when, user provides command like DELETE or SHIFT + DELETE or by programmatically gives DELETE command. Well I know about FileSystemWatcher Class, but this class doesn't provide information before delete...

View 1 Replies

Delete Row From SQL In .NET Form?

Jul 3, 2009

im trying to delete a row from a small table on SQL from within a form in my app.the one on msdn was a bit vague and i couldnt get it to work. i Also tried using command (as in example:[URL])but i cant get that to work, plus id rather not have the connection string there anyway, whats the point when im using table adpaters?I have a query on the dataset called UserDeleteQuery:

DELETE FROM Users
WHERE (ID = @ID)

View 3 Replies

Disable The Delete Key On VB Form?

May 26, 2009

This is a simple question, I am VB beginner. I was just wondering how I can disable the Delete Key on a form. Its simple question. I just want it completely disabled, preferably when the form is loaded.

View 4 Replies

How To Delete Form DataGrid

Aug 15, 2011

Using Visual Studio 2008, I have a form with a datagridview. I want to use a button called BTNDelete and I need help on deleting the selected row from the datagrid then update the datatable.

View 2 Replies







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