473,587 Members | 2,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form inside a panel - Windows CE

2 New Member
Hello,
I'm new to VB.NET, so my question may be basic for you.
I'm using MS Visual Studio 2008 (VB) to write an application that runs in Windows CE 5.0.
I have created a project for smart devices with one form (Form1) and I have added a second form (Form2).
In Form1 I have added a panel and a button and I want to display Form2 inside the panel when the user click the button.
This is the base, than I will add other buttons and other forms.
I have searched the web for an answer and in this community I found a post ("Form inside a panel" by Fabio Nov 20 '05) but it doesn't work for me because Form2 has not the property "TopLevel".
I usually write applications for desktop pc using Embarcadero C++ Builder and in that IDE is very easy to do such a thing, it's enough to set the panel as the parent of Form2 and you're done but here it doesn't seem to be so easy, at least for me.

Anybody can help me?

Thanks in advance

Stefano
Oct 29 '12 #1
2 2278
steveb
2 New Member
Hello again,
I have found a solution that for me seems to works.
Instead of adding a form (Form2) I add a UserControl1 and in the code of the button click I set the parent of the UserControl as the panel and I set its property Visible to True.
In this way I can add as many UserControls as I need and hide or show them as necessary.
I apologize if my question seemed rushed and the solution trivial.
Unfortunately I'm not familiar with Visual Studio and it was a coincidence to find a solution a few minutes after I wrote my question ...
Thanks anyway for your attention

Stefano
Oct 29 '12 #2
Frinavale
9,735 Recognized Expert Moderator Expert
Thank you for posting your solution :)

-Frinny
Oct 29 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
2254
by: Michael Riggio | last post by:
Is there a way to have a windows service instantiate a class that is a web service, which will then be accessible to clients via HTTP? Thanks, -Mike
1
465
by: SammyBar | last post by:
Hi all, I'd like to use html/xml/xsl for rendering views in a windows form client. I assume I should embed IE inside a windows form in order to show the form inside a MDI form. I should also capture events from the IE at the windows form level. Can you point me to any hints, sample code? Thanks in advance Sammy
2
12595
by: developer | last post by:
I have a form with a menu on the top. This menu show another form. I want to open this second form maximized inside the parent form just below the menu of the parent form. (Like Microsoft Word). How do i do that ? Thanks
11
75609
by: Fabio | last post by:
How Can I open a form inside a panel of other form? Is it possible??? Thanks in advance, Fabio
1
2150
by: Wolfgang | last post by:
I'm a Java developer relatively new to to VB .NET (and I don't know the old VB6 at all). I know how to draw lines, circles and other simple shapes on a form in VB.NET (using the onPaint event). Could someone out there please give me a simple example, or point me to a SIMPLE example that: 1) puts a given JPEG (or GIF, or TIF) image into a form or panel (or whatever other control is appropriate)
2
4281
by: Rich | last post by:
Greetings. I have a child form inside an MID parent form. The child form is wider than the MID parent form. The child form contains a number of textboxes which are positioned from left to right on the child form where the textbox on the right is not viewable because it extends beyond the right border of the MDI parent form. What I need to happen is when I tab through the textboxes - when I tab into the textbox on the right side of...
5
18404
by: Paul | last post by:
Is it possible to display a form inside another form? What component should I use?
0
1438
by: arunrsivaram | last post by:
Hi, I am using visual studio.net 2003 and I am working on a windows application project.I would like to know if it is possible to open a notepad inside a windows form.I tried both shell and process.start but by using this the notepad will start as an individual application.I want notepad to show inside a form or in a control inside the form. If any one can please help. Thanks ...
7
4840
by: =?Utf-8?B?U2hpdmEgUmFtYW5p?= | last post by:
I have a windows application with multiple forms & another web application. Now I need a parent EXE or Application which need to act as a container to these application. Example : My existing Web application : http://localhost/MyApp/Default.aspx My existing Win Application : existingWinApp.exe New Parent WinApp : NewWinApp.exe My new winapp will have a menu & below which I will have a form holder.
4
3532
by: secutos | last post by:
I am making a Map Editor for a 2D tile-based game. I would like to host two XNA controls inside the Windows Form - the first to render the map; the second to render the tileset. I used the code here to make the XNA control host inside the Windows Form. This all works very well - as long as there is only one XNA control inside the Windows Form. But I need two - one for the map; the second for the tileset. How can I run two XNA controls inside the...
0
8219
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.