Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 18-10-2005, 11:07 PM   #1 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,495
Default VB Form window woes. added:: Component to datagrid !!!HELP!!

in VB.NET in any Form if i have a button and on its click if make a new form open, the new form opens but the old form does not close. i want the old form to close and the new form to be displayed.

how do i do this.


========================================

And after i click a menu item in a MDI container i have made a form open inside the MDI container. on clicking a button in the new form or the MDI container i want a new form (maximised) to open in the same MDI Container and the previous form to close. the new Form always opens when i try but the previous form does not close. how do i implement this?

Form2 newMDIChild1 = new Form2();
newMDIChild1.MdiParent = Form1();
newMDIChild1.Show();
is the command for opening new window in MDI container.....
__________________
mekalodu
iinfi is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 19-10-2005, 12:36 PM   #2 (permalink)
Broken In
 
shakti's Avatar
 
Join Date: Jun 2005
Location: visnagar
Posts: 120
Default

before ".show" use
".hide" or "unload" property.
try this and mail me
__________________
Mr. Infredible
shakti is offline  
Old 19-10-2005, 01:16 PM   #3 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,495
Default

ok i will try n let u know..thanks for ur help
__________________
mekalodu
iinfi is offline  
Old 21-10-2005, 12:40 AM   #4 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,495
Default

there is no unload option ...but the hide is working to some extent ......

-----------------------------------------------
in COM+ using VC# component what sud i do and what code sud i write in the component to retrieve data from a database and display it in a MDI Child Form in a datagrid. plz tell me the code also.
__________________
mekalodu
iinfi is offline  
Old 21-10-2005, 12:49 PM   #5 (permalink)
Human Spambot
 
tuxfan's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
Default

Do you want to come back to the same form or not? If yes, then use .hide otherwise use me.unload
__________________
:: Free hosting and free domain names available in special cases. Conditions apply ::
tuxfan is offline  
Old 21-10-2005, 03:25 PM   #6 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,495
Default

ok fine .... i got it ...
can u answer my second question ..
Quote:
in COM+ using VC# component what sud i do and what code sud i write in the component to retrieve data from a database and display it in a MDI Child Form in a datagrid. plz tell me the code also.
__________________
mekalodu
iinfi is offline  
Closed Thread

Bookmarks

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 10:26 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2