473,383 Members | 1,813 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,383 software developers and data experts.

Not having Same Signature???

I'm using VB.net (2000 standard)

I've a ListBox with Checkboxes... I'm trying to figure out how to get the the
number of items checked as a User checks and un-checks them.

I can do this IF I have the User 'click' on the ListView (after checking
items) and use the LB SelectedIndexChanged event (to display the ItemCheck
event). But I want to get the ItemCheck 'while' a user it clicking the
checkboxes and NOT to have to click the ListView afterwards.

I'm stuck right now... when I try something like:

Private Sub lvProjDisplay_ItemCheck(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles lvProjDisplay.ItemCheck
ListBox1.Items.Add(lvProjDisplay.CheckedItems.Coun t)
End Sub

.... I get an error message on the end item of the Private Sub:

Method 'lvProjDisplay_ItemCheck' cannot handle Event 'ItemCheck' because they
do not have the same signature

I've tried a few other events... but the same situation...

Anyone know what the heck is going on?

Thanks!

JohnT
Nov 20 '05 #1
1 1756
Private Sub lvProjDisplay_ItemCheck(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles lvProjDisplay.ItemCheck


The method signature should be

Private Sub lvProjDisplay_ItemCheck(ByVal sender As System.Object,
ByVal e As ItemCheckEventArgs) Handles lvProjDisplay.ItemCheck

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: vincent_delft | last post by:
I've a simple python script that read a directory and put the files into a Zip file. I'm using the os.walk method to get the directory content, I'm creating ZipInfo objects and set "filename",...
0
by: Geir S Eidissen | last post by:
Task: Removing the Signature element from an enveloped-signature xml file. The signed xml file is like this (SP=space, LF=line feed (ascii 10)), signature contents is not shown here <doc>LF...
3
by: Charles Krug | last post by:
List: I'm trying to use the example files from Programming Python, 2nd Ed. I've copied them into c:\Python24\Examples\PP2E. Launching any of the examples programs by themselves seems to work...
1
by: JohnT | last post by:
I'm using VB.net (2000 standard) I've a ListBox with Checkboxes... I'm trying to figure out how to get the the number of items checked as a User checks and un-checks them. I can do this IF I...
2
by: S. Baumann | last post by:
Hello, I use a code very similar to that found in the MSDN sample attached to the class XmlDsigEnvelopedSignatureTransform (code attached below). The code works fine and produces somethink like...
0
by: David Mediavilla | last post by:
I am trying to check a SOAP signature with WSE 1.0 SP1, but with a certain transform I only get an "Unknown tranform" exception. The SOAP signature is like this: <ds:Signature>...
5
by: cbielich | last post by:
Here is my question. You know in Access 2000 if you Maximize a box all other boxes that are opened from that point on will be maximized if otherwise specified. What I want to be able to do is have...
14
by: MLH | last post by:
I have the following code to list query names in Access 2.0's Immediate Window. Currently, it lists names of all saved queries. Can you suggest a modification that will result in it listing only...
3
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
14
by: =?Utf-8?B?QUEyZTcyRQ==?= | last post by:
Am I correct in thinking that the <signatureof a function is its <syntax> i.e. the arguments and the order in which they are specified when calling the function?
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.