p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > C# and C > C# 1.0 > C#
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 22nd, 2007, 12:37 PM
Authorized User
Points: 142, Level: 2
Points: 142, Level: 2 Points: 142, Level: 2 Points: 142, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2007
Location: , , USA.
Posts: 37
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to Open Existing Winform inside Tab Page

Dear all,
           I want to open my Existing WinForm Inside Tabpage.currently Winform opens as new window and now i want same form to be part of Tab Page of Tab Control.I know i can create User Control and load it but i want entire form with header and footer to be display inside Tab Page ?

Thanks,
Maulik

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old May 24th, 2007, 12:27 AM
Authorized User
 
Join Date: May 2006
Location: fayetteville, Arkansas, USA.
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to notrosh
Default

I am a little confused on your question. Are you wanting to dynamically add another tab page after an event is triggered or are you wanting to open up a new instance of a form inside a tabpage on a tab control.

I would either just add a new tab
or you could set one tab as a parent form and then open the new form up and set the tabpage as its parent form.

hope that helps.

-zd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old May 24th, 2007, 11:05 AM
Authorized User
Points: 142, Level: 2
Points: 142, Level: 2 Points: 142, Level: 2 Points: 142, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2007
Location: , , USA.
Posts: 37
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for reply.Yes i want open up a new instance of a form inside a tabpage on a tab control when user clicks on Action.Meanwhile searching, i found solution so posting it here..

ManageCustomerProfileView frmProfile = new ManageCustomerProfileView(MyController); // creating form instance. constructor i changed as per my reqs.
frmProfile.TopLevel = false; // This is most Important
frmProfile.SetDisplay();// setting form display style - Custome method
frmProfile.FormBorderStyle = FormBorderStyle.None;
frmProfile.Width = this.uTbPageProfile.Width;
maxTabControl.Tabs["Profile"].Visible = true;
maxTabControl.Tabs["Profile"].Selected = true;
this.uTbPageProfile.Controls.Add(frmProfilde);
frmProfile.Show();

        Above code adds my existing form inside Tabpage. i need to deal with added form events from main form as added form will act as control seems and not form i guess.

Thanks again.
Regards,
Maulik

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to open an existing query in VBA michael193nj Access VBA 4 March 26th, 2008 06:09 PM
WinForm Resizing instantiated form inside Tab Page maulik33 C# 4 June 13th, 2007 02:48 PM
Handling Non-Existing Web Files with Workbook.Open white_wulff Excel VBA 1 May 14th, 2007 04:07 PM
Chapter 2 Converting an Existing Page NJJim BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 5 November 6th, 2006 04:46 AM
Connect to existing access page Ronaldx Java Basics 0 November 9th, 2005 08:38 PM



All times are GMT -4. The time now is 01:03 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc