Shell pulls up two windows

willisgt

Active Member
Licensed User
:sign0163:I've got a quick little snippet of code that's behaving oddly.

B4X:
   myArgs = "http://www.radtechs.org"

   Shell( "explorer.exe", myArgs )
It pulls up two Explorer windows when running on the desktop.

I'm running Windows XP w/.Net 1.1 and 2.0, Basic4PPC v.5.8.

Surely I'm not doing something wrong for once?

Gary

:sign0163:
 

willisgt

Active Member
Licensed User
I was doing something wrong. Again.

Solution:

If a button is created dynamically, it does not need an event added to it to handle a click event.

For instance, create a button called 'wubba'.

Create a subroutine called wubba_Click.

No need for an AddEvent for the click to be handled.

Oops.

Gary
 
Top