Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# Resize Event Doesn't Fire
Message
From
10/04/2007 13:51:18
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01213996
Message ID:
01214051
Views:
11
How did you get the event handler method to begin with? Sounds like you just copied it from some example.

In Visual Studio, if you create the Event Handler methods in the Property Sheet, VS will automatically generate both the delegate and the event handler method. You need both.

When you have your form open in the Designer, go the Property Sheet, click on the Events icon instead of the Properties icon (it's a little lightning bolt) and find the resize event. Normally, you would just double-click on the event and the stuff gets generated for you. Since you already have the event handler method defined, you can just choose it from the dropdown list for the resize event.

~~Bonnie



>No. Nor do I have a clue.
>
>Explain please
>
>
>
>>You *do* have the delegate, right?
>>
>>this.Resize += new System.EventHandler(this.Desktop_Resize);
>>
>>
>>~~Bonnie
>>
>>
>>
>>
>>>I have no idea why this isn't working:
>>>
>>>When I resize the form, this event does not fire
>>>
>>>
>>>private void Desktop_Resize(object sender, System.EventArgs e)
>>>        {
>>>            lnkConnect.Left = this.Width - lnkConnect.Width - 5;
>>>        }
>>>
>>>
>>>
>>>Anyone wanna help out a newby?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform