473,320 Members | 1,694 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.

running a form from another

Hi I have asked about this before but still could not get a good answer..I
created form1 and added form2 to the project then added some buttons to
form2..now I want to run form2 from form1.I wrote the following in the
form-load event of form1:
dim frm as new form2
form2.show
this will load the form2 but with no controls on it at all and without the
properties i specified for it
I am using VS2003 pro
thanks
Nov 20 '05 #1
5 851
Hi,

Try this.

Dim frm as new Form2
frm.Show

Ken
-----------------------
"Omar Alawna" <om*********@hotmail.com> wrote in message
news:ur**************@TK2MSFTNGP10.phx.gbl...
Hi I have asked about this before but still could not get a good answer..I
created form1 and added form2 to the project then added some buttons to
form2..now I want to run form2 from form1.I wrote the following in the
form-load event of form1:
dim frm as new form2
form2.show
this will load the form2 but with no controls on it at all and without the
properties i specified for it
I am using VS2003 pro
thanks

Nov 20 '05 #2
* "Omar Alawna" <om*********@hotmail.com> scripsit:
Hi I have asked about this before but still could not get a good answer..I
created form1 and added form2 to the project then added some buttons to
form2..now I want to run form2 from form1.I wrote the following in the
form-load event of form1:
dim frm as new form2
form2.show
this will load the form2 but with no controls on it at all and without the
properties i specified for it
I am using VS2003 pro


As I asked previously: Does this even occur in a blank project?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
* hi***************@gmx.at (Herfried K. Wagner [MVP]) scripsit:
dim frm as new form2
form2.show


Should read:

\\\
Dim frm As New Form2()
frm.Show()
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4


thank you..it is working now with this code
dim frm as new form2
frm.show()
i trried this before did not work i reinstalled vs2003 it is working
now..sorry for disturbing
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #5
* Omar Alawna <om*********@hotmail.com> scripsit:
thank you..it is working now with this code
dim frm as new form2
frm.show()
i trried this before did not work i reinstalled vs2003 it is working
now..sorry for disturbing


Interesting phenomena.

;->

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6

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

Similar topics

7
by: Christopher Brandsdal | last post by:
Hi! I have a problem running my code on 2000 server and iis5.0. The code runs perfectly on my localhost (xp iis5.1) but when i run it on 2000 server iis5.0 I get this error: ...
4
by: James Greig | last post by:
hello people, i'm just learning javascript, could someone point me in the direction of an example of the following, or give me some clues as to how it might be done: what i would like to do...
1
by: Marc | last post by:
I want to write a C#/ASP.NET application where a user can go to a web page, start running a job, close their browser, and then come back later and see the results. The purpose for this application is...
0
by: Walter G | last post by:
I have a VB.Net application that can be executed with parameters. If parameters are received, the I execute a function that will open a form within the application. On top of that, I'd like to...
1
by: Dan | last post by:
Good Day, I have a Windows Service that is responsible for processing somes files. One method of the service invokes another method which may take a while to complete its work. Something like...
4
by: Randy | last post by:
Hi, ok, I found a way to connect to a running instance of an (external) Internet Explorer and access - for example - the html source. That works fine! But now I have running application with...
7
by: MgGuigg | last post by:
Hello all, This is my first time posting a question to this forum, so here is hoping I am following protocol. I am scraping the rust off my old Basic programming skills, and have just recently...
9
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my...
4
by: Jono | last post by:
Hi Everyone, As it says in the title, I'm looking for a way to display a page while long running operations are performed on the server. Ideally, I'd like some way to push the current request...
7
by: =?Utf-8?B?U2hpdmEgUmFtYW5p?= | last post by:
I have a windows application with multiple forms & another web application. Now I need a parent EXE or Application which need to act as a container to these application. Example : My existing Web...
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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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...
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)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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.