Click here to Skip to main content
15,915,600 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: printing form Pin
asha_s16-Apr-08 6:51
asha_s16-Apr-08 6:51 
GeneralRe: printing form Pin
Steven J Jowett16-Apr-08 12:16
Steven J Jowett16-Apr-08 12:16 
QuestionRe: printing form Pin
asha_s19-Apr-08 8:15
asha_s19-Apr-08 8:15 
GeneralRe: printing form Pin
Steven J Jowett20-Apr-08 11:12
Steven J Jowett20-Apr-08 11:12 
GeneralRe: printing form Pin
asha_s21-Apr-08 0:39
asha_s21-Apr-08 0:39 
GeneralPrinting Problem² [modified] Pin
Zaegra16-Apr-08 0:14
Zaegra16-Apr-08 0:14 
GeneralRe: Printing Problem² Pin
Chinners16-Apr-08 0:55
Chinners16-Apr-08 0:55 
GeneralRe: Printing Problem² Pin
Zaegra16-Apr-08 1:37
Zaegra16-Apr-08 1:37 
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 

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.