Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Hide dialog window when dialup Ras commection

Posted on 2000-03-06
7
Medium Priority
?
261 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 600 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Technology Partners: 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Suggested Courses

876 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