Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Please Help Me In Activex Control


Please Help Me In Activex Control

Author
Message
khalsainfotechs
khalsainfotechs
Forum God
Forum God (1.2K reputation)Forum God (1.2K reputation)Forum God (1.2K reputation)Forum God (1.2K reputation)Forum God (1.2K reputation)Forum God (1.2K reputation)Forum God (1.2K reputation)Forum God (1.2K reputation)Forum God (1.2K reputation)

Group: Forum Members
Posts: 4, Visits: 2
I am making active x control in that i put one form and funtion like show form

i want that when i put that ocx file in my project and call show function every time new form show but my problem is that i put two ocx in my project and my code are below

private sub cmd1_click()

ocx1.show

end if

private sub cmd2_click()

ocx2.show

end if

BUT IT SHOW SAME FORM EVERY TIME

PLS HELP

Khalsainfotech

true_innocent_hero
true_innocent_hero
Forum God
Forum God (1.7K reputation)Forum God (1.7K reputation)Forum God (1.7K reputation)Forum God (1.7K reputation)Forum God (1.7K reputation)Forum God (1.7K reputation)Forum God (1.7K reputation)Forum God (1.7K reputation)Forum God (1.7K reputation)

Group: Forum Members
Posts: 9, Visits: 28
Mr.

You must need to use the following...



Dim Form As New FormNameGoesHere

Form.Show



Add the above code in your OCX1.show method.

FormNameGoesHere means that, you must write here the name of form etc. Form1,,,,,



Now when ever you call the function



OCX1.Show it will show a new form.



Innocent

Innocent
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search