Click here to Skip to main content
16,006,013 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPopupMenu BMPs... Pin
TAlvord15-Dec-04 10:47
TAlvord15-Dec-04 10:47 
GeneralRe: PopupMenu BMPs... Pin
Tom John15-Dec-04 22:40
Tom John15-Dec-04 22:40 
GeneralSwitching beteween forms in vb.net Pin
Ryan Coleman15-Dec-04 10:34
Ryan Coleman15-Dec-04 10:34 
GeneralRe: Switching beteween forms in vb.net Pin
Mekong River15-Dec-04 11:10
Mekong River15-Dec-04 11:10 
GeneralRe: Switching beteween forms in vb.net Pin
Zenly15-Dec-04 11:24
Zenly15-Dec-04 11:24 
GeneralRe: Switching beteween forms in vb.net Pin
Ryan Coleman15-Dec-04 13:23
Ryan Coleman15-Dec-04 13:23 
GeneralTest a connection to SQL Server Pin
marclenoir200515-Dec-04 10:18
marclenoir200515-Dec-04 10:18 
GeneralRe: Test a connection to SQL Server Pin
jonathan1517-Dec-04 2:56
jonathan1517-Dec-04 2:56 
This may help.
Set up your Connection in a module and set your connection object as public eg
Public cn As ADODB.Connection.

In a form set up another object to handle the connection object events (adodb objects provide events that you can use but it is not as simple as other objects)eg
Dim WithEvents cnevent As ADODB.Connection

at the form open event use the following to set the event raising object to your connection object:
Set cnevent = cn
Now you will find you have access to several connection events such as WillConnect, ConnectComplete and Disconnect.
If the form you do this in is an MDI parent then connection events in all child forms will be triggered in this form. You can also do the same for ADO recordset objects aswell.


Jon
GeneralInternal Domain Email Issues Pin
CitizenSoldier15-Dec-04 9:35
CitizenSoldier15-Dec-04 9:35 
GeneralFiles Closed but Not Really -- Database Error 16040 Pin
aubndez15-Dec-04 5:23
aubndez15-Dec-04 5:23 
GeneralForm creation crisis!!! Pin
carlos_rocha15-Dec-04 4:33
carlos_rocha15-Dec-04 4:33 
GeneralRe: Form creation crisis!!! Pin
Dennis C. Dietrich15-Dec-04 4:49
Dennis C. Dietrich15-Dec-04 4:49 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 5:18
carlos_rocha15-Dec-04 5:18 
GeneralRe: Form creation crisis!!! Pin
Dennis C. Dietrich15-Dec-04 5:51
Dennis C. Dietrich15-Dec-04 5:51 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 6:14
carlos_rocha15-Dec-04 6:14 
GeneralRe: Form creation crisis!!! Pin
Dennis C. Dietrich15-Dec-04 6:35
Dennis C. Dietrich15-Dec-04 6:35 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 6:43
carlos_rocha15-Dec-04 6:43 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 22:11
carlos_rocha15-Dec-04 22:11 
QuestionHow to add Icon Overlay in VB.Net Pin
Zenly15-Dec-04 3:56
Zenly15-Dec-04 3:56 
AnswerRe: How to add Icon Overlay in VB.Net Pin
Zenly16-Dec-04 6:14
Zenly16-Dec-04 6:14 
Generalfont like property Pin
Stumped115-Dec-04 3:21
sussStumped115-Dec-04 3:21 
GeneralRe: font like property Pin
OICU81215-Dec-04 16:52
OICU81215-Dec-04 16:52 
GeneralRe: font like property Pin
Stumped116-Dec-04 2:43
sussStumped116-Dec-04 2:43 
GeneralRe: font like property Pin
OICU81216-Dec-04 4:50
OICU81216-Dec-04 4:50 
GeneralHelp needed Pin
singhrajendra15-Dec-04 2:00
singhrajendra15-Dec-04 2:00 

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.