Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Importing data from Excel to Database by program? Pin
Christian Graus12-Jan-06 10:55
protectorChristian Graus12-Jan-06 10:55 
GeneralRe: Importing data from Excel to Database by program? Pin
shiroamachi12-Jan-06 15:08
shiroamachi12-Jan-06 15:08 
GeneralRe: Importing data from Excel to Database by program? Pin
Christian Graus12-Jan-06 15:11
protectorChristian Graus12-Jan-06 15:11 
GeneralRe: Importing data from Excel to Database by program? Pin
shiroamachi12-Jan-06 15:28
shiroamachi12-Jan-06 15:28 
Questionmultiple controls firing one event from usercontrol Pin
Fu Manchu11-Jan-06 15:31
Fu Manchu11-Jan-06 15:31 
AnswerRe: multiple controls firing one event from usercontrol Pin
Christian Graus11-Jan-06 15:53
protectorChristian Graus11-Jan-06 15:53 
AnswerRe: multiple controls firing one event from usercontrol Pin
Dave Kreskowiak11-Jan-06 16:56
mveDave Kreskowiak11-Jan-06 16:56 
GeneralRe: multiple controls firing one event from usercontrol Pin
Fu Manchu23-Jan-06 10:36
Fu Manchu23-Jan-06 10:36 
Hi, i have been quite busy lately due to exams at uni, but i would just like to say thanks for your advice....

The following code is exactly what i needed

Add this code and some controls to a form and on each Mouse_Enter of any control the main event is triggered..excellentBig Grin | :-D

'Every control added to the form cause this event to be raised<br />
    WithEvents MyDummyControl As Button<br />
    Public Event MyEvent()   ' Declare an event.<br />
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        Try<br />
            Dim mycontrol As Control<br />
            'count number of controls<br />
            For x As Integer = 0 To Me.Controls.Count - 1<br />
                'Associate controls<br />
                mycontrol = Me.Controls.Item(x)<br />
                ' Associate an event handler with an event.<br />
                AddHandler mycontrol.MouseEnter, New EventHandler(AddressOf TriggerMyEvent)<br />
            Next<br />
            RaiseEvent MyEvent()   ' Raise an event.<br />
<br />
        Catch MyError As Exception<br />
            'dont do event<br />
        End Try<br />
    End Sub<br />
<br />
<br />
    Private Sub TriggerMyEvent(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyDummyControl.MouseEnter<br />
<br />
    End Sub


Thanks again
QuestionRemote Access Pin
soltec11-Jan-06 15:11
soltec11-Jan-06 15:11 
AnswerRe: Remote Access Pin
Dave Kreskowiak11-Jan-06 15:23
mveDave Kreskowiak11-Jan-06 15:23 
GeneralRe: Remote Access Pin
soltec6-Feb-06 4:49
soltec6-Feb-06 4:49 
QuestionAny Free solution to read pdf in application form? Pin
cylix200011-Jan-06 13:51
cylix200011-Jan-06 13:51 
AnswerRe: Any Free solution to read pdf in application form? Pin
Curtis Schlak.11-Jan-06 14:01
Curtis Schlak.11-Jan-06 14:01 
GeneralRe: Any Free solution to read pdf in application form? Pin
cylix200011-Jan-06 17:22
cylix200011-Jan-06 17:22 
GeneralRe: Any Free solution to read pdf in application form? Pin
Curtis Schlak.12-Jan-06 2:01
Curtis Schlak.12-Jan-06 2:01 
GeneralRe: Any Free solution to read pdf in application form? Pin
cylix200012-Jan-06 14:47
cylix200012-Jan-06 14:47 
GeneralRe: Any Free solution to read pdf in application form? Pin
Curtis Schlak.13-Jan-06 1:39
Curtis Schlak.13-Jan-06 1:39 
Questionevent handler & textbox problem Pin
andrewke111-Jan-06 12:36
andrewke111-Jan-06 12:36 
AnswerRe: event handler & textbox problem Pin
Christian Graus11-Jan-06 13:08
protectorChristian Graus11-Jan-06 13:08 
GeneralRe: event handler & textbox problem Pin
Joshua Quick11-Jan-06 13:21
Joshua Quick11-Jan-06 13:21 
GeneralRe: event handler & textbox problem Pin
Christian Graus11-Jan-06 13:23
protectorChristian Graus11-Jan-06 13:23 
GeneralRe: event handler & textbox problem Pin
Joshua Quick11-Jan-06 13:30
Joshua Quick11-Jan-06 13:30 
GeneralRe: event handler & textbox problem Pin
andrewke111-Jan-06 13:38
andrewke111-Jan-06 13:38 
GeneralRe: event handler &amp; textbox problem Pin
Christian Graus11-Jan-06 13:43
protectorChristian Graus11-Jan-06 13:43 
GeneralRe: event handler &amp; textbox problem Pin
Dave Kreskowiak11-Jan-06 15:20
mveDave Kreskowiak11-Jan-06 15:20 

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.