hi folks,
I am curently working in vb.net 2005. I am stuck at one technical
glitch. How to open another form and close the parent foem in vb.net.
I have tried every thing like me.close as well as i have tried using
dispose method also.
any help is appreciated.
Thank You. 4 5662
On Oct 11, 4:53 am, sajit <nayar.sa...@gm ail.comwrote:
hi folks,
I am curently working in vb.net 2005. I am stuck at one technical
glitch. How to open another form and close the parent foem in vb.net.
I have tried every thing like me.close as well as i have tried using
dispose method also.
any help is appreciated.
Thank You.
As in parent form, do you mean the calling form (Me)?
As in:
////////////
Dim form As New Form1()
form.Show()
Me.Close()
///////////
Thanks,
Seth Rowe
Sajit,
Your question depends totaly how you start your forms (about 12
posibilities).
However as you write it, it is impossible to close a calling object from a
detail object, what is happening in your situation.
Normally a called object will be garbaged when it goes out of scope.
If it is that you want to make your form invisible, then do that, that can
in different nice ways. You can even make it transparant from the first
version of dotnet on every Windows (NT based) OS by using the form opacity
property.
Cor
Cor Ligthert [MVP] wrote:
Sajit,
Your question depends totaly how you start your forms (about 12
posibilities).
However as you write it, it is impossible to close a calling object from a
detail object, what is happening in your situation.
Normally a called object will be garbaged when it goes out of scope.
If it is that you want to make your form invisible, then do that, that can
in different nice ways. You can even make it transparant from the first
version of dotnet on every Windows (NT based) OS by using the form opacity
property.
Cor
Could he not define the form in an invisible 1st form, as a public
shared variable?
That way if Form2 calls Form3, Form2 can be closed because Form1
actually has the object?
Miro
Miro,
He can do it in much more ways, however there is an inbuild Application run
in a form as you don't declare it seperatly. Therefore it is exactly as you
write.
Have a look at the answer from Armin, I don't know what it is now, but in
past he was as far as I remember me alway using the application run in a
seperated module.
Like others who are interested in this problem, have a look at that nice
answer from Armin some days ago. http://groups.google.com/group/micro...852687402957c2
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
by: Chandru |
last post by:
hi
I want to know how to pass values from different forms.
That is, i created one parent form. from there i opened
child form modeless way. Once i close the child form i
need some value from child form that to be transferred in
Parent form. thanks in advance.
|
by: Viper |
last post by:
.... say, like MS Word opens another instance of himself when you open
another document.
If you close the first 'Word', the second document remains alive. I can't
figure out how to do the same with
mySecondForm.Show();
myFirstForm.Close(); // also closes mySecondForm too
Thanks.
A lot.
|
by: Claudia Fong |
last post by:
Hi,
I have more than one forms in my program, and I would like to for
example, in form1, I will call form2 and in form2 it will call form3.
But the problem is when I call form2.Show, it does show the form2, but
how can I unload form1? If I put form1.close, it will close everything.
:(
|
by: Paul |
last post by:
Hi this is related to a previous post, hopefully just a bit clearer
description o the problem. I have a parent form that opens a new form (child
form) while still leaving the parent form open. Although the child form has a
close button (with java script) if the user navigates the parent form to
another form the child form is still open. Just wondering if there is a way
to close the child form when the user navigates away with the parent...
| |
by: Tony |
last post by:
Hi VB.Net Gurus.
Initial MDI Child form loads fine.
exp.
Dim objChild2 As New Form2()
objChild2.MdiParent = Me
objChild2.Show()
MDI Child unloads just fine.
Exp.
|
by: HongPuay |
last post by:
Hey guys,
I am developing a SMS application using VB.net recently.
I have a question here.
When I click one of the buttons in my parent form, I want its child form(named as PhoneBook) to be loaded.
Is my coding below correct?
|
by: jiaudheen |
last post by:
hi i have a multiline textbox and a button in parent form. in the child form i have text boxes,comboboxes,button. the thing is i click the button in the parent form ,the child form opens. i fill the text boxes,selct the value from combo box and click ok button in child form. on clicking these values shoud be passed to the multiline txt box of parent form and should displayed there...
can any one help with deatil c# code. i'm a begginer in...
|
by: dav61000 |
last post by:
I have a parent form that uses a Treeview Control and I would like to pass the node selected to a child form where the user will add update or delete the record selected using a dataset. Is there a way to pass the selected node as a parameter to the child form?
Here's my code thanks in advance!
Private Sub PopulateTreeView(ByVal inParentID As Integer, ByRef inTreeNode As TreeNode)
objConn.Open()
myReader =...
|
by: tirumalab |
last post by:
HI all,
How can i handle the events of the child form in the base form ,if child form is derived from base form . (C#).
Kindly tell me the same with Windows CE 5.0 using C#.
Thank you..
Regards,
Tirumala.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |