Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Tuesday, November 26, 2024
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
11/26/2024 9:26:14 AM
slxdeveloper.com Community Forums
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the
code of conduct
for posting guidelines.
Forums RSS Feed
Back to Forum List
|
Back to Controls
|
New Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: HELP! Trying to dynamically hide / show panel on form through onload event of form...getting: Object reference not set to an instance of an object.
Dennis Putnam
Posts: 2
HELP! Trying to dynamically hide / show panel on form through onload event of form...getting: Object reference not set to an instance of an object.
Posted: 22 May 09 9:17 AM
I am new to SLX, and am trying to dynamically hide / show a panel on a form in the onload event of my form.
I have added the panel to the form, and added a couple of fields in the panel, but when I try to reference the panel in the code snippet as follows:
form.pnlArchitect.Visible = False
I get the following runtime error:
Object reference not set to an instance of an object.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 49: form.dtPresentation.Caption = ""
Line 50:
Line 51: form.pnlArchitect.Visible = False
Line 52:
Line 53:
Can you guys offer any help? Any assistance would be greatly appreciated!
thank you,
Dennis Putnam
[
Reply
][
Quote
]
John H. Hedges
Posts: 62
Re: HELP! Trying to dynamically hide / show panel on form through onload event of form...getting: Object reference not set to an instance of an object.
Posted: 23 May 09 11:28 AM
This is a regular ActiveForm, not a .NET form... correct?
You shouldn't need the "form" qualifier at all, but is the name of the form actually "form", or is it something like "Form1" or "frmWhatever"...?
[
Reply
][
Quote
]
RJ Samp
Posts: 973
Re: HELP! Trying to dynamically hide / show panel on form through onload event of form...getting: Object reference not set to an instance of an object.
Posted: 02 Jun 09 3:19 PM
1. Add an event to the form itself. example OnChange
2. reference the control on the form and make it visible true or false.
Sub AXFormChange(Sender)
pnlOne.Visible = True
pklTest.Visible = True
END SUB
We use this all of the time.....works like a charm.
[
Reply
][
Quote
]
Page 1 of 1
You can subscribe to receive a daily forum digest in your
user profile
. View the site
code of conduct
for posting guidelines.
Forum RSS Feed
-
Subscribe to the forum RSS feed to keep on top of the latest forum activity!
slxdeveloper.com is brought to you courtesy of
Ryan Farley
&
Customer FX Corporation
.
This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.
code of conduct
|
page cache (param): 11/26/2024 9:35:25 AM