Solved

Hide dialog window when dialup Ras commection

Posted on 2000-03-06
7
254 Views
Last Modified: 2008-02-26
When I try to connect to a remote access server (RAS) a dialog window appears after the dialing, asking me to enter username, password and domain, althougth I stated those parameters in code. How do I get rid of this window?
0
Comment
Question by:nireves
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 4

Accepted Solution

by:
Chizl earned 200 total points
ID: 2587716
It's the Async part that shows or not show the dialog..   Something like this..

If boolAsync Then
      'Asyncronous and ignoring RASDIALEXTENSIONS.
      'So that HWND is valid
      Load frmAsyncDial      
      lngRetCode = RasDial(ByVal APINULL, vbNullString, lprasdialparams, &HFFFFFFFF, frmAsyncDial.hWND, hRasConn)
Else
      'Syncronous and ignoring RASDIALEXTENSIONS.      
      Screen.MousePointer = vbHourglass      
      lngRetCode = RasDial(ByVal APINULL, vbNullString, lprasdialparams, APINULL, ByVal APINULL, hRasConn)
      Screen.MousePointer = vbDefault
End If
0
 

Author Comment

by:nireves
ID: 2595963
I already do it 'Syncronous', not 'Asyncronous '.
Still this window appears.
What's causing it's display?
0
 
LVL 4

Expert Comment

by:Chizl
ID: 2599408
I use:

Load frmAsyncDial
lngRetCode = RasDial(ByVal APINULL, vbNullString, lprasdialparams, &HFFFFFFFF, frmAsyncDial.hWND, hRasConn)

To show it and:

'Syncronous and ignoring RASDIALEXTENSIONS.
Screen.MousePointer = vbHourglass
lngRetCode = RasDial(ByVal APINULL, vbNullString, lprasdialparams, APINULL, ByVal APINULL, hRasConn)
Screen.MousePointer = vbDefault

To not show it.

0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 4

Expert Comment

by:Chizl
ID: 2599409
By the way If you go to http://www.karland.com/OurProducts/RAS32/ you will see and can get the DLL I wrote in VB using this code.  It gives you the option to display or not display the dialog.
0
 

Author Comment

by:nireves
ID: 2611585
Chizl,

Thanx for answering and sorry for the long delay in my response, I was unavailable...

But...

As I mentioned in my previous comment, I ALREADY do it Syncronously. There is nothing new here, I do it exactly the same as the code you wrote for not showing that window. But in my case the window DOES appear.

Any suggestions?
0
 
LVL 4

Expert Comment

by:Chizl
ID: 2614225
With the API I have :
&HFFFFFFFF, frmAsyncDial.hWND to show the dialog.. My own dialog..

The:
APINULL, ByVal APINULL
should make it not show up..

I'm not sure what the problem could be if it still shows up even with:
APINULL, ByVal APINULL as parm 4 and 5.

Humm.. I will look into it more.
0
 
LVL 4

Expert Comment

by:Chizl
ID: 2614231
Maybe you can pass in a hWnd of your own dialog, but make that dialog invisible (hide).  Trashy way to do it, but if nothing else works.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month4 days, left to enroll

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question