473,386 Members | 1,819 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,386 software developers and data experts.

Simple GUI with VB .NET - Help, this is an easy one...

Well, I hope it's easy. I'm making a GUI for user-centered design (the actual GUI is NOT the project, but it helps make it look good IE, this isn't for a grade). I've never used VB before, but I'm giving it a shot. Anyway, I'm running Visual Studio 2005 and all I need to know is:

How do you use buttons to make a transition from one form to another?

Here's the code, mine's in italics:

Private Sub registerNowButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles registerNowButton.Click

mainPage.ActiveForm().Hide()
registerNow.ActiveForm().Show()


End Sub


When I run the debugger, I click the button, the mainPage form goes away, but the registerNow form doesn't appear.

Then I get a null-pointer error at:
registerNow.ActiveForm().Show()

So, the registerNow form isn't initialized? That's my guess, but if knew what I was doing, I wouldn't have posted this.

Any help will be appreciated, thanks.
Jun 25 '07 #1
1 1214
Killer42
8,435 Expert 8TB
I use VB6, which is totally different in this area. But perhaps you need to Load the form first?
Jun 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Leroy | last post by:
I really need some help with showing pages of results from queries in say like groups of 20 with next and previous buttons or links. I'm having a lot of trouble figuring out the logic of such a...
0
by: unixman | last post by:
As usual, it is 2:00am, and I'm pulling my hair out, finally resorting to posting in the newsgroups for help. :) Simple problem, in theory. Given table "map": CREATE TABLE map ( entry_id...
16
by: Terry | last post by:
Hi, This is a newbie's question. I want to preload 4 images and only when all 4 images has been loaded into browser's cache, I want to start a slideshow() function. If images are not completed...
4
by: d.p. | last post by:
Hi all, I'm using MS Access 2003. Bare with me on this description....here's the situation: Imagine insurance, and working out premiums for different insured properties. The rates for calculating...
1
by: DJDoc | last post by:
2 things: 1) there any simple (and I mean REALLY simple cookie cutter) way to export a TEXT format or HTML format document or report out of a single ACCESS record? -Just take a record and...
51
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct...
8
by: A Trujillo | last post by:
Hi group, I am looking for a simple C# editor, I would like something as simple as Notepad or GetDiz but with the highliting tool. If someone could help it would be greatly appreciated. A...
4
by: Carsten Schmitt | last post by:
Hello, I want to draw a simple pixel (i.e. a red pixel in the center of the screen), which is always in the foreground - even when running a fullscreen application like a DirectX game. I need...
30
by: galiorenye | last post by:
Hi, Given this code: A** ppA = new A*; A *pA = NULL; for(int i = 0; i < 10; ++i) { pA = ppA; //do something with pA
6
kenobewan
by: kenobewan | last post by:
Congratulations! You are one of the few who realise that over 80% of errors are simple and easy to fix. It is important to realise this as it can save a lot of time. Time that could be wasted making...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.