Click here to Skip to main content
15,886,919 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCapture screen as movie Pin
Mohammad Al Hoss15-Apr-08 22:29
Mohammad Al Hoss15-Apr-08 22:29 
GeneralRe: Capture screen as movie Pin
Dave Kreskowiak16-Apr-08 4:04
mveDave Kreskowiak16-Apr-08 4:04 
QuestionHow manage scroll position in listview without using API function. Pin
Coban_15-Apr-08 21:43
Coban_15-Apr-08 21:43 
AnswerRe: How manage scroll position in listview without using API function. Pin
Dave Kreskowiak16-Apr-08 3:59
mveDave Kreskowiak16-Apr-08 3:59 
GeneralRe: How manage scroll position in listview without using API function. Pin
Coban_16-Apr-08 4:42
Coban_16-Apr-08 4:42 
GeneralRe: How manage scroll position in listview without using API function. Pin
Dave Kreskowiak16-Apr-08 12:23
mveDave Kreskowiak16-Apr-08 12:23 
GeneralRe: How manage scroll position in listview without using API function. Pin
Coban_16-Apr-08 20:11
Coban_16-Apr-08 20:11 
GeneralRe: How manage scroll position in listview without using API function. Pin
Dave Kreskowiak17-Apr-08 2:47
mveDave Kreskowiak17-Apr-08 2: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 4:07
Coban_17-Apr-08 4:07 
Questionis any program that make exe file that work on computers without .netframework Pin
en.Mahdi15-Apr-08 21:02
en.Mahdi15-Apr-08 21:02 
GeneralRe: is any program that make exe file that work on computers without .netframework Pin
Christian Graus15-Apr-08 21:03
protectorChristian Graus15-Apr-08 21: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 21:14
N a v a n e e t h15-Apr-08 21:14 
AnswerRe: is any program that make exe file that work on computers without .netframework Pin
en.Mahdi16-Apr-08 1:43
en.Mahdi16-Apr-08 1:43 
GeneralRe: is any program that make exe file that work on computers without .netframework Pin
Dave Kreskowiak16-Apr-08 3:55
mveDave Kreskowiak16-Apr-08 3:55 
GeneralRe: is any program that make exe file that work on computers without .netframework Pin
~V~16-Apr-08 1:32
~V~16-Apr-08 1:32 
QuestionRegarding Windows Registry Pin
vijaylumar15-Apr-08 20:51
vijaylumar15-Apr-08 20:51 
GeneralRe: Regarding Windows Registry Pin
Ashfield16-Apr-08 0:51
Ashfield16-Apr-08 0:51 
GeneralRe: Regarding Windows Registry Pin
Dave Kreskowiak16-Apr-08 3:30
mveDave Kreskowiak16-Apr-08 3:30 
QuestionRe: Regarding Windows Registry Pin
vijaylumar16-Apr-08 18:54
vijaylumar16-Apr-08 18:54 
GeneralRe: Regarding Windows Registry Pin
Dave Kreskowiak17-Apr-08 1:31
mveDave Kreskowiak17-Apr-08 1:31 
Questionregarding creating Help File for vb.net 2.0 windows application Pin
vijaylumar15-Apr-08 20:08
vijaylumar15-Apr-08 20:08 
AnswerRe: regarding creating Help File for vb.net 2.0 windows application Pin
Arjun Marwaha15-Apr-08 20:42
Arjun Marwaha15-Apr-08 20:42 
GeneralRe: regarding creating Help File for vb.net 2.0 windows application Pin
Smithers-Jones15-Apr-08 23:32
Smithers-Jones15-Apr-08 23:32 
GeneralCRAXDRT.ConnectionPropertiesClass.getItem(String Name) "Error: Invalid Index" Pin
vbDigger'z15-Apr-08 19:32
vbDigger'z15-Apr-08 19:32 
GeneralRe: CRAXDRT.ConnectionPropertiesClass.getItem(String Name) "Error: Invalid Index" Pin
_Damian S_15-Apr-08 19:59
professional_Damian S_15-Apr-08 19: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.