943,737 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 627
  • VB.NET RSS
Mar 5th, 2009
0

windows forms

Expand Post »
Iam creating an application.
i have a main form
it has 5 buttons
i have created 5 more forms.
my aim is to show a particular form for every button
the form is opened in a new window

i dont want to open in a new window
it should be embed in the main form
when i click anthor button it will show the related form in place of previous form

plzzzzzzzz give me the solution
Thanks in advance
Reputation Points: 10
Solved Threads: 0
Newbie Poster
srikanth.cpd is offline Offline
10 posts
since Apr 2008
Mar 6th, 2009
0

Re: windows forms

Take a look at this.

That explains it better than I can.
Reputation Points: 817
Solved Threads: 32
Nearly a Posting Virtuoso
Duki is offline Offline
1,474 posts
since Jun 2006
Mar 6th, 2009
0

Re: windows forms

For this u can take 5 panels..Suppose u drag one panel on a form..Copy this panel & paste it 4 times...One above the other..To move b/w the panels...U can right click mouse on panel & click Send to Back...
VB.NET Syntax (Toggle Plain Text)
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2. Call makePanelVisible(True, False)
  3. End Sub
  4.  
  5.  
  6.  
  7. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  8. Call makePanelVisible(False, True)
  9. End Sub
  10.  
  11. Private Sub makePanelVisible(ByVal bPanel1 As Boolean, ByVal bpanel2 As Boolean)
  12. Panel1.Visible = bPanel1
  13. Panel2.Visible = bpanel2
  14. End Sub
Reputation Points: 0
Solved Threads: 8
Posting Whiz
sonia sardana is offline Offline
326 posts
since Mar 2008
Mar 7th, 2009
0

Re: windows forms

thank u sonia

my problem is resolved

thank u very much
Reputation Points: 10
Solved Threads: 0
Newbie Poster
srikanth.cpd is offline Offline
10 posts
since Apr 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Querystring validation
Next Thread in VB.NET Forum Timeline: vb.net setup file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC