Solved

Hide dialog window when dialup Ras commection

Posted on 2000-03-06
7
249 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adding to a VBA? 6 92
VBA filters 2 81
Access Object Property from VBA Module in Excel 2010 2 45
Added a column screws up code 5 78
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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

739 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