This is sort of a tutorial and help at the same time.
i am using this code to open Form 2 in Form 1:
Code Dim newform As New Form2
newform.TopLevel = False
Me.Controls.Add(newform)
newform.Show()
![[Image: pqxH0Fu.png]](https://i.imgur.com/pqxH0Fu.png)
but is there a way to make this code with, lets say opening mozilla or something?
Yes, it is called an addon lol. You can't do it with your logic though.
Aug 5, 2014 02:26 PM
(This post was last modified: Aug 5, 2014 02:28 PM by Euras.)
I don't know what you mean by "opening mozilla". Do you mean if you click a button on your form, Firefox opens? If so then you would use the Process.Start() method.
By the way, this is not by any means a tutorial.
Aug 5, 2014 02:33 PM
(This post was last modified: Aug 5, 2014 02:35 PM by GHD124.)
(Aug 5, 2014 02:26 PM)Euras Wrote: I don't know what you mean by "opening mozilla". Do you mean if you click a button on your form, Firefox opens? If so then you would use the Process.Start() method.
By the way, this is not by any means a tutorial. i wanted to open the another program in my form, like i showed with that code.
(Aug 5, 2014 02:21 PM)Cairns Wrote: Yes, it is called an addon lol. You can't do it with your logic though.
thanks for that constructive and well thought out comment you posted there. it really helped me out and i would like to commend you for posting this comment on my thread. hope the HF community looks upon you with great respect and divinity because you sir are a the most intellectual and Dignified person i have ever met.
(Aug 5, 2014 02:33 PM)GHD124 Wrote: i wanted to open the another program in my form, like i showed with that code.
Yes but all that code is doing is showing Form2. In regards to Firefox, are you wanting to open the browser when you click a button, or are you talking about embedding the browser into your form?
Sorry but you need to clarify what you're wanting a little better.
(Aug 5, 2014 02:43 PM)Euras Wrote: Yes but all that code is doing is showing Form2. In regards to Firefox, are you wanting to open the browser when you click a button, or are you talking about embedding the browser into your form?
Sorry but you need to clarify what you're wanting a little better.
I would say it's quite clear it's the latter.
(Aug 5, 2014 02:43 PM)Euras Wrote: Yes but all that code is doing is showing Form2. In regards to Firefox, are you wanting to open the browser when you click a button, or are you talking about embedding the browser into your form?
Sorry but you need to clarify what you're wanting a little better. i would like to embed the browser into the form, thats a way better way of explaining it.
(Aug 5, 2014 02:47 PM)GHD124 Wrote: i would like to embed the browser into the form, thats a way better way of explaining it.
In that case, you might find this link useful:
https://developer.mozilla.org/en-US/docs...ng_Mozilla
(Aug 5, 2014 02:52 PM)Euras Wrote: In that case, you might find this link useful:
https://developer.mozilla.org/en-US/docs...ng_Mozilla
thanks this will help alot. i will post an update when i get this to work. 😖
Holy crap, wtf is with the horrible background, i think my iris just started to bleed... o.O
Why don't people only screenshot the relevant things anymore. So annoying.
(Aug 5, 2014 05:01 PM)Dispersia Wrote: Why don't people only screenshot the relevant things anymore. So annoying.
Welcome to the .Net Section 2014, where we screenshot everything except for relevant things.
/joke
Use the SetParent function.
PHP Code
<?php SetParent(MyForm.Handle, FireFoxFormHandle);
(Aug 5, 2014 04:45 PM)TheBarret Wrote: Holy crap, wtf is with the horrible background, i think my iris just started to bleed... o.O
its not a background its another form
(Aug 6, 2014 01:24 AM)GHD124 Wrote: its not a background its another form
Oh my bad, but whats the purpose of that app? give them seizures ? 🤐
|