windows forms

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Apr 2008
Posts: 10
Reputation: srikanth.cpd is an unknown quantity at this point 
Solved Threads: 0
srikanth.cpd srikanth.cpd is offline Offline
Newbie Poster

windows forms

 
0
  #1
Mar 5th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1,169
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

Re: windows forms

 
0
  #2
Mar 6th, 2009
Take a look at this.

That explains it better than I can.
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 324
Reputation: sonia sardana has a little shameless behaviour in the past 
Solved Threads: 7
sonia sardana sonia sardana is offline Offline
Posting Whiz

Re: windows forms

 
0
  #3
Mar 6th, 2009
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...
  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
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 10
Reputation: srikanth.cpd is an unknown quantity at this point 
Solved Threads: 0
srikanth.cpd srikanth.cpd is offline Offline
Newbie Poster

Re: windows forms

 
0
  #4
Mar 7th, 2009
thank u sonia

my problem is resolved

thank u very much
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC