Where can I find *comprehensive* information about events?
I've been all through Microsofts developer pages, through the
VS.NET help but I can't find comprehensive, details information
about them.
For example, I'm working with a TreeView control. I've set up
2 even handler methods, one for "AfterSelec t" and one for "Click".
In the "AfterSelec t" handler method, I can access the TreeView
object to get state information and work with member attributes.
However, in the "Click" handler method, when I try to access
the very same attribute (or method or collection) that I successfully
accessed in the "AfterSelec t" method, I get a null reference exception.
Why? I'm hoping someone could point me to a repository if (really
good) information that discusses events in detail.
Thanks for your time and assistance!
Christoph 1 1157
Hi, Christoph
I don't think you access same data in both methods. At least, doesn't seem
like that as per error you have. You can easily trace when which event
happens by adding Debug.Print or Console.WriteLi ne to the code and check
accesibility of data in debugger in both events.
And if you really need help, please strip down your code to the sample,
which can demonstrate the issue and post code here
HTH
Alex
"Christoph Boget" <jc*****@yahoo. com> wrote in message
news:u4******** ******@TK2MSFTN GP10.phx.gbl... Where can I find *comprehensive* information about events? I've been all through Microsofts developer pages, through the VS.NET help but I can't find comprehensive, details information about them. For example, I'm working with a TreeView control. I've set up 2 even handler methods, one for "AfterSelec t" and one for "Click". In the "AfterSelec t" handler method, I can access the TreeView object to get state information and work with member attributes. However, in the "Click" handler method, when I try to access the very same attribute (or method or collection) that I successfully accessed in the "AfterSelec t" method, I get a null reference exception. Why? I'm hoping someone could point me to a repository if (really good) information that discusses events in detail.
Thanks for your time and assistance!
Christoph
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Imogen |
last post by:
HI there,
I really hope you can help as this is driving me mad!
I am trying to set up a calender on my site for events and found a
neat looking script. All works except the events aren't being writting
to the array. The code section i think is important is below
***********
sql = "SELECT id, startDate, endDate, name FROM calendarEvent " & _
"WHERE ((startDate >= #" & searchStart & "# AND endDate <= #" &
|
by: Amir Hardon |
last post by:
I am dynamically adding rows to a table, and each row have a button which
removes it.
I have successfully implemented this for mozilla but I'm having troubles
with IE, here is how I did it:
Each new row's id is an index number, each button's name is the row's id,
and I'm adding this function as the click event listener for the button:
function removeline(event){
var row=document.getElementById("row" + event.target.name);
|
by: Mortel |
last post by:
Hi,
How I can get information from printer about count of copy pages, who's
print pages etc. I want monitoring printers and save that information to
file log. Maybe printer has any events to do that ?
Thank's for all.
Boniek
|
by: Mortel |
last post by:
Hi,
How I can get information from printer about count of copy pages, who's
print pages etc. I want monitoring printers and save that information to
file log. Maybe printer has any events to do that ?
Thank's for all.
Boniek
|
by: Robin Tucker |
last post by:
Hi there,
I would like to handle and "pass on" events occuring from items in a web
page hosted in the WebBrowser control. Does anyone have any information on
how to do this?
Thanks
| |
by: Elliot M. Rodriguez |
last post by:
I am having a heckuva time debugging this, or determining why my page is
behaving this way.
I have a search form, that when completed, returns a datagrid. When the user
selects a row (normal selectcommand button), i assign some session variables
and perform a rediect to a "more information" page. Neither page is using
Output Caching.
On the more information page, a button reads "new search". this clears the
session variables i set in...
|
by: Leszek Taratuta |
last post by:
Hello,
I have the following code:
// Load the MenuBar.ascx user control. The control defines SavePropertyEvent
event.
UserControl ctrl =
(UserControl)Page.LoadControl("~/MyApp/Controls/MenuBar.ascx");
// Get type information of the loaded user control.
|
by: creative1 |
last post by:
I get following error on page :
Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\desiorb\411.php:9) in C:\xampp\htdocs\desiorb\411.php on line 21
when I set a cookie on first page. Please help me fix it.
here is code fot both pages
411.php
<html>
<body>
<form action="411process.php" method="post">
Email adddress: <input type="text" name="email" />
Cell #: <input type="text" name="cell" />
|
by: raylopez99 |
last post by:
Keywords: scope resolution, passing classes between parent and child
forms, parameter constructor method, normal constructor, default
constructor, forward reference, sharing classes between forms.
Here is a newbie mistake that I found myself doing (as a newbie), and
that even a master programmer, the guru of this forum, Jon Skeet,
missed! (He knows this I'm sure, but just didn't think this was my
problem; LOL, I am needling him)
If...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |