473,668 Members | 2,755 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

show new form

i was sure that in vb6 the syntax to open a form via a button was
"form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?

Thanks!!!

Mar 7 '07 #1
7 2051
"jlab13" <jo*******@gmai l.comschrieb:
>i was sure that in vb6 the syntax to open a form via a button was
"form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?
It should work in VS 2005.

However, you can explicitly instantiate the form too:

\\\
Dim f As New FooForm()
f.Show()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Mar 7 '07 #2
On Mar 7, 7:39 am, "jlab13" <johnla...@gmai l.comwrote:
i was sure that in vb6 the syntax to open a form via a button was
"form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?
Firstly, you must not approach your projects in VB.Net as you did with
VB6. Even though they share the same name and a similar syntax,
writing programs in VB.Net is very different from writing them in
VB6. You must think of VB.net as a totally new language.

Secondly, to show a form, you must first declare an instance of that
form and then call show:

Dim frm As New Form1
frm.Show

Mar 7 '07 #3
On Mar 7, 8:39 am, "jlab13" <johnla...@gmai l.comwrote:
i was sure that in vb6 the syntax to open a form via a button was
"form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?

Thanks!!!
The .Show method is the way to show a form in VS2005. You will need to
post more of your code, there is something else you are not doing.

Mar 7 '07 #4
On Mar 7, 9:08 am, z...@constructi on-imaging.com wrote:
On Mar 7, 8:39 am, "jlab13" <johnla...@gmai l.comwrote:
i was sure that in vb6 the syntax to open a form via a button was
"form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?
Thanks!!!

The .Show method is the way to show a form in VS2005. You will need to
post more of your code, there is something else you are not doing.
Thanks to all. Got it goin now with these tips. Trying to fly through
my VS book to learn changes from vb6 so pardon some of the dumb
questions!

Thanks again!

Mar 7 '07 #5
go back to vb6?

shit just worked back then; now we're stuck with bloatware

UNNECESSARY CHANGE IS NOT SEXY
UNNECESSARY CHANGE IS NOT ALLOWED
UNNECESSARY CHANGE IS NOT NECCESSARY

On Mar 7, 5:39 am, "jlab13" <johnla...@gmai l.comwrote:
i was sure that in vb6 the syntax to open a form via a button was
"form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?

Thanks!!!

Mar 7 '07 #6
Chris

shut the fuck up and stop making excuses for Microsoft

Microsoft killed the worlds most popular langauge

they can fuck off and change it back to be more like vb6
eat a mother fucking dick you goddamn NooB



On Mar 7, 6:08 am, "Chris Dunaway" <dunaw...@gmail .comwrote:
On Mar 7, 7:39 am, "jlab13" <johnla...@gmai l.comwrote:
i was sure that in vb6 the syntax to open a form via a button was
"form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?

Firstly, you must not approach your projects in VB.Net as you did with
VB6. Even though they share the same name and a similar syntax,
writing programs in VB.Net is very different from writing them in
VB6. You must think of VB.net as a totally new language.

Secondly, to show a form, you must first declare an instance of that
form and then call show:

Dim frm As New Form1
frm.Show

Mar 7 '07 #7
hey bud I can tell you right now-- it's just not worth the effort

vb6 works on every operating system; .net is bloatware

-Aaron

On Mar 7, 6:20 am, "jlab13" <johnla...@gmai l.comwrote:
On Mar 7, 9:08 am, z...@constructi on-imaging.com wrote:
On Mar 7, 8:39 am, "jlab13" <johnla...@gmai l.comwrote:
i was sure that in vb6 the syntax to open a form via a button was
"form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?
Thanks!!!
The .Show method is the way to show a form in VS2005. You will need to
post more of your code, there is something else you are not doing.

Thanks to all. Got it goin now with these tips. Trying to fly through
my VS book to learn changes from vb6 so pardon some of the dumb
questions!

Thanks again!

Mar 7 '07 #8

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

Similar topics

3
6714
by: dp | last post by:
I am new to VB.NET and I have a simple question. How do I show a form from a command button click event? The code I have below is not working. I am trying to show the form frmAgent. What am I missing? Private Sub cmdNewAgent_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdNewAgent.Click Dim frm1 As New frmAgent() frm1.Show() Me.Hide() End Sub
13
74075
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide Form1.Visible = False Load (Form1)
2
2503
by: Ajai Kumar .R | last post by:
Hai all, I've two or more forms on my app. My requirement is, Have to show the first form asa the user press a button have to hide the first form and show the second form. If the user press the escape key on second form, this should be hidded and should show the first form.... Can some one guide me how to achive this... (MUST USE SHOW & HIDE FORM PROPERTIES). I tried to achive this using the below code but when i check the Windows->Task...
20
2570
by: WindAndWaves | last post by:
Hi Gurus I was wondering if you can send me in the right direction: I have a table with about 300 rows. I want to make all of them invisible and when a user enters a code in a form then make selected ones visible. At the moment, I am doing it as follows: www.corstorphinehouse.com/d/avail.html
1
11298
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus Allow Toolbar/Menu Changes Use Access Special Keys
0
1598
by: Homa | last post by:
Hi I'm working on a program that will have 3 forms: a main form, a status form and a sub-form. The main form and status form are always appear, and my sub-form is a singleton (for performance issue). As usual, I have two ways to display the sub-form: Show() and ShowDialog().
13
36630
by: Tim Smallwood | last post by:
Hi, This is probably a stupid question, but I can't seem to get a form to show / load? In the older versions of VB I'd use frmMyform.show / load myForm, etc? I looked at the help file and it showed me how to create a new form in code and then load it, but I want to load a form when a user clicks a button.. and hide the form that currently has focus..? I can't seem to find this simple task in the help file.. Any help would be greatly...
3
4039
by: yzi | last post by:
I have a list form and a detail form . Before, I open the List form, use form.showDialog(),then I click List Item and open the Detail Form by form.show(). now , user need when the list form show, auto open the first Item Detail . I add detail form.show() in list form.form_load event , but problem. some idea?? help me
22
3073
by: Zytan | last post by:
I have public methods in a form. The main form calls them, to update that form's display. This form is like a real-time view of data that is changing. But, the form may not exist (it is created / destroyed at user request). I can check form != null to prevent incorrect access. But, the form could disappear immediately after the check, before the method is run. Or someone could click 'close' when it's in the middle of an update. ...
4
2210
by: Delphiscn | last post by:
How to show a ABOUT Form???????? Hello Everyone: I use C# want to Create a Project. In my project. there are two forms. One is main form, and another is a about form. In the about form there are some information about my project. such as author's information, product support and so on. Now, I add a button in the main form, I want that if the user click the button. It will show the about form . In button's event . the code like this:
0
8462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8381
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,...
0
8797
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8583
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,...
0
7401
agi2029
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...
1
6209
isladogs
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...
0
5681
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();...
0
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.