Click here to Skip to main content
15,843,325 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCapture screen as movie Pin
Mohammad Al Hoss15-Apr-08 23:29
Mohammad Al Hoss15-Apr-08 23:29 
GeneralRe: Capture screen as movie Pin
Dave Kreskowiak16-Apr-08 5:04
mveDave Kreskowiak16-Apr-08 5:04 
QuestionHow manage scroll position in listview without using API function. Pin
Coban_15-Apr-08 22:43
Coban_15-Apr-08 22:43 
AnswerRe: How manage scroll position in listview without using API function. Pin
Dave Kreskowiak16-Apr-08 4:59
mveDave Kreskowiak16-Apr-08 4:59 
GeneralRe: How manage scroll position in listview without using API function. Pin
Coban_16-Apr-08 5:42
Coban_16-Apr-08 5:42 
GeneralRe: How manage scroll position in listview without using API function. Pin
Dave Kreskowiak16-Apr-08 13:23
mveDave Kreskowiak16-Apr-08 13:23 
GeneralRe: How manage scroll position in listview without using API function. Pin
Coban_16-Apr-08 21:11
Coban_16-Apr-08 21:11 
GeneralRe: How manage scroll position in listview without using API function. Pin
Dave Kreskowiak17-Apr-08 3:47
mveDave Kreskowiak17-Apr-08 3:47 
The easiest way to declare an event with parameters in your control is:
Public Event MyEvent(ByVal sender As Object, ByVal arguments As MyEventArgs)

Of course, you're going to need a class called MyEventArgs that'll hold the parameters you pass to the event subscriber:
Public Class MyEventArgs
    ' This is not the proper way to do this, but it works for demo purposes...
 
    Public SomeValue As Integer
    Public OtherValue As Integer
 
    Public Sub New(ByVal someValue As Integer, ByVal otherValue As Integer)
        Me.SomeValue = someValue
        Me.OtherValue = otherValue
    End Sub
End Class

and, lastly, to raise the event from your control:
RaiseEvent MyEvent(Me, New MyEventArgs(123,321))

Seriously, pick up a book on VB.NET and work through it. Decalring events is covered in just about every book I've seen.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: How manage scroll position in listview without using API function. Pin
Coban_17-Apr-08 5:07
Coban_17-Apr-08 5:07 
Questionis any program that make exe file that work on computers without .netframework Pin
en.Mahdi15-Apr-08 22:02
en.Mahdi15-Apr-08 22:02 
GeneralRe: is any program that make exe file that work on computers without .netframework Pin
Christian Graus15-Apr-08 22:03
protectorChristian Graus15-Apr-08 22:03 
GeneralRe: is any program that make exe file that work on computers without .netframework Pin
N a v a n e e t h15-Apr-08 22:14
N a v a n e e t h15-Apr-08 22:14 
AnswerRe: is any program that make exe file that work on computers without .netframework Pin
en.Mahdi16-Apr-08 2:43
en.Mahdi16-Apr-08 2:43 
GeneralRe: is any program that make exe file that work on computers without .netframework Pin
Dave Kreskowiak16-Apr-08 4:55
mveDave Kreskowiak16-Apr-08 4:55 
GeneralRe: is any program that make exe file that work on computers without .netframework Pin
~V~16-Apr-08 2:32
~V~16-Apr-08 2:32 
QuestionRegarding Windows Registry Pin
vijaylumar15-Apr-08 21:51
vijaylumar15-Apr-08 21:51 
GeneralRe: Regarding Windows Registry Pin
Ashfield16-Apr-08 1:51
Ashfield16-Apr-08 1:51 
GeneralRe: Regarding Windows Registry Pin
Dave Kreskowiak16-Apr-08 4:30
mveDave Kreskowiak16-Apr-08 4:30 
QuestionRe: Regarding Windows Registry Pin
vijaylumar16-Apr-08 19:54
vijaylumar16-Apr-08 19:54 
GeneralRe: Regarding Windows Registry Pin
Dave Kreskowiak17-Apr-08 2:31
mveDave Kreskowiak17-Apr-08 2:31 
Questionregarding creating Help File for vb.net 2.0 windows application Pin
vijaylumar15-Apr-08 21:08
vijaylumar15-Apr-08 21:08 
AnswerRe: regarding creating Help File for vb.net 2.0 windows application Pin
Arjun Marwaha15-Apr-08 21:42
Arjun Marwaha15-Apr-08 21:42 
GeneralRe: regarding creating Help File for vb.net 2.0 windows application Pin
Smithers-Jones16-Apr-08 0:32
Smithers-Jones16-Apr-08 0:32 
GeneralCRAXDRT.ConnectionPropertiesClass.getItem(String Name) "Error: Invalid Index" Pin
vbDigger'z15-Apr-08 20:32
vbDigger'z15-Apr-08 20:32 
GeneralRe: CRAXDRT.ConnectionPropertiesClass.getItem(String Name) "Error: Invalid Index" Pin
_Damian S_15-Apr-08 20:59
professional_Damian S_15-Apr-08 20:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.