Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# Resize Event Doesn't Fire
Message
From
10/04/2007 14:00:59
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01213996
Message ID:
01214060
Views:
11
I was just reading this article: http://www.codeproject.com/dotnet/ADONETOOP.asp. It doesn't do it exactly the way that I do it, but it will give you the basics.

>Ahh - The blind see.
>
>Can you point me to an example of getting and displaying data from SQL in C#?
>
>Thanks
>
>
>
>
>>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?
Very fitting: http://xkcd.com/386/
Previous
Reply
Map
View

Click here to load this message in the networking platform