Solved

Hide dialog window when dialup Ras commection

Posted on 2000-03-06
7
244 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
  • 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 Compile Compatibility Issue 4 115
Determine Range to Select 5 53
Excel - Save a copy of work book 13 89
MS SQL Update query with connected table data 3 41
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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

830 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