I am calling ODBC Administrator and OLEDB Connection String Builder from my code... I want these external windows to be opened modally... i remember i have done it before.. just lost now..

below is my code for ODBC Administrator

VB Code:
  1. Shell "rundll32.exe shell32.dll,Control_RunDLL odbccp32.cpl", vbHide
  2. Dim ret&
  3. ret = FindWindow(vbNullString, "ODBC Data Source Administrator")
  4. SetWindowPos ret, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE


and for OLEDB


VB Code:
  1. Dim X As New DataLinks
  2. Private Sub cmdBuild_Click(Index As Integer)
  3. Set myCon(Index) = X.PromptNew
  4. txtOLEDB(Index).Text = myCon(Index).connectionString
  5. End Sub

I want both of these window to open Modally so the user cannot work on my applicatoin until these forms are closed...

Any Ideas?