want to disable button of other application

bhavin12300

Active member
Joined
Sep 18, 2007
Messages
44
Programming Experience
Beginner
hi,
i am creating one X application from which i want to disable the button in Y application .

Y application have only one button on it.i just want to disable that button from X application.

i think that it is possible by getting handle of Y application process but after getting handle of that i don't know what to do so that i can disable that button from X application.

So can anyone help me what to do?
 
Hi

I created two forms
-Form 1 will open from 2 (with the button to disable)
-From 2 with the button to be disabled

i did the following code in a button event in form1

VB.NET:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        'Instance of form 2
        Dim frm2 As New Form2

        ' Disbale the button in form 2
        frm2.Form2Button.Enabled = False
        'Show form 2
        frm2.Show()
    End Sub

HTH
 
thank you for your reply
but i dont know whats there in application 2.
its a totally different application.i only have exe of that application.no source code for it.
so i cannt know its button name.
 
Well logically i dont see any sence in doing so.

But will be interested, as well, to know how to do so.

Sorry if it didnt help

gl
 
Back
Top