473,503 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OnResize method

Hello

Could somebody please explain the purpose of the following line of code

OnResize(EventArgs.Empty

Thanks and Best Regards
David Morris
Nov 20 '05 #1
3 1309
* =?Utf-8?B?RGF2aWQgTW9ycmlz?= <an*******@discussions.microsoft.com> scripsit:
Could somebody please explain the purpose of the following line of code?

OnResize(EventArgs.Empty)


Where is the method called?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
David Morris wrote:
Sorry I should've included this. The method is within the following
sub:

Private Sub RB_CheckedChanged(ByVal sender....,ByVal e...) Handles
rbPicture.CheckedChanged, rbText.CheckedChanged If
rbPicture.Checked Then Timer1.Interval = Picture_Interval
ElseIf rbText.Checked Then
Timer1.Interval = Text_Interval
End If

OnResize(EventArgs.Empty)
End Sub


It's part of standard programming pattern in .Net. Instead of raising an
event directly, a method is defined called On<Eventname> that raises the
event. This method is defined protected so it can also be used by child
classes to handle the event without the overhead of delegates.
So the call raises the Resize event. Why this codes wants to do that at this
point I don't know. ^_^

--
Sven Groot
Nov 20 '05 #3
Thanks for your help.
Nov 20 '05 #4

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

Similar topics

6
6979
by: The Plankmeister | last post by:
Hi... Is there a way of preventing the second firing of the onResize event in IE? It's an absolute bast. In the past few weeks I've come to realise how completely and utterly pants IE is. Shame...
2
9948
by: Bas | last post by:
Hello all, I'm trying to create a little script which will save the width of a certain frame into a database, so that every user still has his/her "own" frame width when logging back on. Now,...
4
1928
by: Ike | last post by:
Does javascript have on onresize() method? How can you implement that? Is it possible to cause things to repaint when resized? Thanks, Ike
4
2741
by: me54 | last post by:
does anyone know how to call some javascript function when firefox fire the onresize event? something like <body onresize="alert();"> doesn't work on forefox? thnx.
5
5902
by: jerars | last post by:
Hi! I have recently realized that some computer in my office have a different behavior when it comes to handle the onresize event in Internet explorer. I red a lot on this forum about this but I...
1
2719
by: Darrel Yurychuk | last post by:
I'm having a problem getting the window.onresize to work properly. Here is a simple test case I wrote: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">...
2
2015
by: FrankIsHere | last post by:
This should attach the event to the onresize of the window object, but when I try to resize the browser after executing the page it does not work... only after I refresh the page. But then of...
2
5198
by: yb | last post by:
I am attempting to modify the style of an element (its width) as the window is being resized, in firefox. Long story short, I've tried to use CSS but one particular part of the layout just won't...
0
7199
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
7074
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...
0
7273
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
7322
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...
0
7451
tracyyun
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...
1
5000
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...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
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 ...
0
374
bsmnconsultancy
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...

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.