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

VB.Net WinForm usercontrol

(Type your message here)

--------------------------------
From: josh quisling
user control problem
New to VB.NET

I have an application with 2 usercontrols on a Form called Main

Login and PhoneLog

When the app runs the phonelog is not visable and the login is.

I am able to login and hide the login control but the phonelog control will not change to visable.

I think this is a lack of the proper reference somewhere but I'm not sure.
I get an error on the Debug for this line of code inside the Login control.

****The Following code is from the Usercontrol Login:*******
Public Function AuthOK()
Me.Hide()
Dim frmMain As Main
frmMain.PhoneLog1.Visible = True '**** This code breaks

End Function

*****************************************
This is the Error:
An unhandled exception of type 'System.NullReferenceException' occurred in ManagementSystem.exe

Additional information: Object reference not set to an instance of an object.
*****************************************

Please Help
Josh

Here are my Imports and Inherits

Imports System
Imports System.Collections
Imports System.Configuration
Imports System.Data
Imports System.Data.SqlClient
Imports System.Security.Cryptography
Imports System.Text
Imports System.Text.RegularExpressions

Inherits System.Windows.Forms.UserControl

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>2uiyJSudAkawRqvcPr3XIA==</Id>
Nov 21 '05 #1
0 1667

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

Similar topics

1
by: Alex Bibiano | last post by:
I have a winform with a new property. The property type is UserControl. This is my code fro the property: private UserControl userControlDetalle; public UserControl UserControlDetalle { get...
0
by: Hilmar Demant | last post by:
Hi, i've experienced something weird, and its probably not an special ASP.NET-issue, but containing several techniques i think its adequate to post it here. Hopefully someone knows anything...
2
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation...
0
by: josh quisling via .NET 247 | last post by:
(Type your message here) -------------------------------- From: josh quisling user control problem New to VB.NET I have an application with 2 usercontrols on a Form called Main Login and...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
0
by: Syed Zaidi via .NET 247 | last post by:
I am working on a small project in which i want to develop acustom toolbar skeleton for handling database navigation. I havecreated a usercontrol consist of a toolbar inherits fromusercontrol and...
2
by: Steve | last post by:
This is a weird one. I have a series of "SmartParts" which are CAB (Composite Application Block) Views which are finally just UserControls (99% of the time) Anyway, I layout my UserControl in...
5
by: Guillaume BRAUX | last post by:
Hello, What I want to do is to add a userControl to a form class witch is a different class from the one the button is generated. For example, I want to instanciate a label in "class1" and add...
2
by: jyanmin.fang | last post by:
Hi, In my current project, I need to embed an .NET winform usercontrol in the aspx page (via <Objecttag). This winform usercontrol has an event called DoEvent (void DoEvent()). This winform...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.