StrataFrame Forum

Using ShowGateway() Method

http://forum.strataframe.net/Topic5396.aspx

By James E Jernigan - 12/19/2006

I am working with the trial version of Strataframe.  I am working through trying to get basic functionality to work for a typical user application.  I am trying to use the ShowGateway() method to set up a main form selection screen for the user.

When I put the code from the help file into the AppMain.vb file, VS 2005 does not recognize the GatewayForm() object.  I get the squiggly lines under it and an error message box pops up.  I have attached a jpg screen shot of the code section and the error message.

Any thoughts or suggestions on what I need to do to correct the problem?

Thanks.

By StrataFrame Team - 12/19/2006

The sample from the help documentation assumes that you have a form in your application called GatewayForm.  The code within GatewayForm is not part of the help documentation, so you need to add a new form to your application called GatewayForm (or whatever name you want to give it) and create a new instance of that form and show it within the ShowGateway() method.
By James E Jernigan - 12/19/2006

I was thinking that the "GatewayForm" was part of the Strataframe environment like the security "Login" form ...  Maybe a SFGatewayForm for the future?  Any reference you could give me for a visual interface and code sample of what I would need to put into a Gateway Form?

Thanks for a speedy reply.

By Trent L. Taylor - 12/19/2006

Maybe a SFGatewayForm for the future? 

You can actually use any type of form here.  This is generally a menu type of interface.

Any reference you could give me for a visual interface and code sample of what I would need to put into a Gateway Form?

Honestly, most people do not have a gateway form.  A gateway is generally used when your product may direct a user several different places before logging in.  For example, our medical system had a gateway that had three options:

  1. Application
  2. Database Maintenance
  3. Exit

We no longer use this gateway as we handle our database maintenance a different way.  So we go straight to a login.

By James E Jernigan - 12/19/2006

Thanks, that information helps.  I was visualizing something like the "Switchboard" form that is used in some of our VS 2005 training materials ... something that was inside the application to decide which user screen to go to.   Sounds like the "Gateway" form was for a totally different purpose. Smile
By Trent L. Taylor - 12/19/2006

Sounds like the "Gateway" form was for a totally different purpose.

Exactly.  Smile