Rajesh, here is a copy of my thread, you may have your answers already, this is what I am try to do, if you have better idea, I'd appreciate if you can share it with me.
**************************************************************************
I am trying to develop a simple "debugging tool" to be able to run on the user's machine. By hitting an F-key, it pops up an edit box to enter command, the results display in a window. I would like to make this program to run on any active form. So far I've made it to work in develop environment, but it does not work when I run .EXE from outside of VFP. One thing I noticed is that when I run .EXE, no Form object is created in memory, when I try to add edit box to an active form dynamically, I get "object xxx not found".
>
>Here is my code:
>
>FormName=_Screen.ActiveForm.Name && NAME OF THE ACTIVE FORM
>&FormName..AddObject('DiagCmd','_editbox')
>WITH &FormName..DiagCmd
> .Height = 24
> .Left = 12
> .Top = 13
> .Width = 432
> .SelectedForeColor = RGB(255,255,255)
> .SelectedBackColor = RGB(0,0,0)
> .ControlSource = "DiagCmdTxt"
> .Name = "DiagCmd"
> .Visible = .T.
>ENDWITH
>
>
>Any idea? Thanks in advance!
Previous
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement