473,320 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

newbee question

Hi,

I have a real beginner question for u....
what i want to do is close a form when a new one opens.
At present when i run my application and arrive at the
main form, i press a button to display a second form, but
the 1st form is still in the background.

I tried to use me.close but this ends the whole
application. what am i doin wrong?
Jul 21 '05 #1
3 1182
Hi Alexia,

Call Hide() before showing new form.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"Alexia" <s@di> wrote in message
news:03****************************@phx.gbl...
Hi,

I have a real beginner question for u....
what i want to do is close a form when a new one opens.
At present when i run my application and arrive at the
main form, i press a button to display a second form, but
the 1st form is still in the background.

I tried to use me.close but this ends the whole
application. what am i doin wrong?

Jul 21 '05 #2
Hi,

thx for your help Miha. Just to confirm, do i write..

me.hide()
dim frm1 as new FORM1
frm1.show

Will this unload the form?
i.e if i close form2 after i hide form1 will the
application close?

-----Original Message-----
Hi Alexia,

Call Hide() before showing new form.

--
Miha Markic - RightHand .NET consulting & software developmentmiha at rthand com

"Alexia" <s@di> wrote in message
news:03****************************@phx.gbl...
Hi,

I have a real beginner question for u....
what i want to do is close a form when a new one opens.
At present when i run my application and arrive at the
main form, i press a button to display a second form, but the 1st form is still in the background.

I tried to use me.close but this ends the whole
application. what am i doin wrong?

.

Jul 21 '05 #3
Hi,

"Alexia" <an*******@discussions.microsoft.com> wrote in message
news:bf****************************@phx.gbl...
Hi,

thx for your help Miha. Just to confirm, do i write..

me.hide()
dim frm1 as new FORM1
frm1.show

Will this unload the form?
i.e if i close form2 after i hide form1 will the
application close?


No. It depends on Form1.
You'll have to close it.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Newbee | last post by:
Hi ! Let's say that this is the folder on the server: /web/firstDir/secondDir/images/image.gif where i have stored my pictures. I have tryed with apsolute and relative paths but i can't display...
2
by: Newbee Adam | last post by:
some said that .NET app can run on any program where rutime exists. What is "runtime" in this sense? will I have to install runtime or .net framework or .NET support on an xp machine for a...
4
by: PerryC | last post by:
All, 1. Do the following codes seem ok? 2. If so, then how do I pull the value of YOE1 and YOE2 into my report? (to do some further calculations) ...
2
by: Martin Hvidberg | last post by:
Dear list I have found a declaration like this: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #include "ectemp.h"
0
by: valmir cinquini | last post by:
i'm developing a faq session of our website and I'm facing some problems handling xml files and DataSet relations First off all, here's the structure of my xml file: <?xml version="1.0"?>...
9
by: EMW | last post by:
I have created a page in aspx and after a click on a button, a new page should open. How is this possible? I tried it doing it like in vb.NET with opening a new form, but it doesn't work. rg,...
1
by: Mark Fink | last post by:
Hi there, unfortunately I am new to Jython and my "Jython Essentials" book is still in the mail. I looked into the Jython API Doc but could not find the information. I am porting a Python...
2
by: IchBin | last post by:
I am trying to clean up my code. I have run it through tidy and now have the code below. The problem is that anytime I select a radio button I get the following error: Forbidden You don't have...
2
by: Mel | last post by:
I have a selection box with 3 values. what i need is to pass 3 urls to a function that has a switch statement and based on the selection index goes on one of the tree urls. Question is how do i...
0
by: Martin Arvidsson, Visual Systems AB | last post by:
Hi! I have a couple of newbee questions. I have a .aspx page with a couple of TextBoxes and a submit button. Now... When i press the submitbutton i want the data in the TextBoxes to be...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.