Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Open a Form in another form

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()
Spoiler (Click to View)
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.
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: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

[Image: 1zL3pDG.jpg]

Use the SetParent function.

PHP Code

<?php 
SetParent
(MyForm.Handle, FireFoxFormHandle); 
https://github.com/Washi1337

"I'll tell you this UDP joke, and I don't care if you will get it or not."
(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 ? 🤐


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by Ðr1psNov 9, 2015 03:56 PM 19 416 Nov 9, 2015 03:56 PM
Last Post: Ðr1ps
[.NET] by WildElephantApr 21, 2015 10:48 AM 7 177 Apr 21, 2015 10:48 AM
Last Post: nuk
[C#] by ShedletskyJan 4, 2015 04:26 PM 6 229 Jan 4, 2015 04:26 PM
Last Post: Shedletsky