473,320 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

disab;e alt f4

can some one help me to disable alt+f4 using vb.net
i have a code to disable alt+f4 using vb6.i did convert it to vb.net .how ever code is showing some error which i am not able to fix it .
if any one has any bit of information please suggest me.


regards
priya
Nov 13 '06 #1
1 2498
Hansi65
13
Hi there,

I used the following method to disable the mouse wheel throughout my app:

Expand|Select|Wrap|Line Numbers
  1. 'prevents mousewheel from working within the whole prog ... 
  2. 'place this to your first forms load procedure
  3. Dim mMessageFilter As New CMessageFilter                                      
  4.  
  5.  
  6. Public Class CMessageFilter
  7.    '**********************************************************************************
  8.    'prevent mousewheel events from being passed to any form or control within program
  9.    '**********************************************************************************
  10.    Implements IMessageFilter
  11.  
  12.    Public Sub New()
  13.       Application.AddMessageFilter(Me)
  14.    End Sub
  15.  
  16.    Public Function PreFilterMessage(ByRef m As System.Windows.Forms.Message) As Boolean Implements System.Windows.Forms.IMessageFilter.PreFilterMessage
  17.       If m.Msg = 522 Then
  18.          Return True
  19.       End If
  20.    End Function
  21. End Class
Nov 15 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Matt | last post by:
what's the differences between readonly and disabled attribute?? When I do the post, it couldn't get both values <%= fname %>. any ideas?? <input type="text" name="fname" value="Joe" readOnly>...
0
by: Ouaes Jamali | last post by:
Hi all, I am trying to set the "Filter" property of directory search object so that the search returns only users that are not disabled in Active Directory? Currently the way i do this to make a...
3
by: Scott | last post by:
Relative newbie here, I'm looking to display the value of radio buttons and check boxes on the page before submission. So far I can do most of it. When "Hat" is checked there are to be no color...
4
by: Nick Zdunic | last post by:
Is there an example of using client side script to disable selection of some items in a drop down that I could follow. It would seem tricky as there are multiple drop downs in the GridView. I...
49
by: indiauday | last post by:
Hello friends, I am new user to this community. My problem is when I try to open registry editor by start> run > regedit, it displays this message. "Registry...
3
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post by:
The majority of pages on our site need authentication (forms auth against the aspnetdb database). I created an '~/auth' folder with its own config file forcing authentication for any pages in the...
4
by: akhilesh1982 | last post by:
How can fix this error{Regedit: Registry editing has been disabled by your administrator}
4
by: CyberSoftHari | last post by:
My system affected by “New Folder” Virus. Now I cannot get my regedit and taskmanager. I scanned my system with antivirus using AVG, Norton and virus removed but till no use. How can I get my...
25
by: pacpalm | last post by:
I am running Windows XP Home SP2. On the lower right side of the pop-up start menu there is normally a magnifying glass (icon) next to the word "search" in between links for "help and support" and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.