Hi, all
I have a question about VS 2005 IDE, I donn't know if
It is place to post my question,sorry
I have a class inherit form System.Windows.Forms.Form,
I want to override OnPaint method , In Project Class View,
I right click MyForm, but there is no Item about
"Override method" in the contex menu, In the form class property page,
I find "Paint" even, I know this is good and can use,
but I really want to know:
in VS2005, wheather there is a wizard to help developer override a method
of all it's parent class,
Thanks,
thanks for any advice!
--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/
_/ Nie Longhai , coder -_-|||
_/ Shanghai Xomi Instruments Co., Ltd.
_/ URL: http://www.xomi.cn
_/ Shanghai C&U Industrial Park
_/ Feng Cheng Town, Feng Xian District
_/ Shanghai, 201411
_/ Phone:86-21-57513966-807
_/ Fax:86-21-57513636
_/ Mobile:13162055440
_/ Email:Ni***@xomi.cn ,co****@163.com
_/
_/ Profession & Focus
_/ High precision semiconductor metrology system vendor.
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ 4 6109
On Mon, 29 May 2006 13:45:15 +0800, cok wrote: I have a class inherit form System.Windows.Forms.Form, I want to override OnPaint method , In Project Class View, I right click MyForm, but there is no Item about "Override method" in the contex menu, In the form class property page, I find "Paint" even, I know this is good and can use, but I really want to know: in VS2005, wheather there is a wizard to help developer override a method of all it's parent class,
In your class, type protected override and Intellisense will pop up with
the list of methods that you can override.
Hi Mehdi
so many thanks to you ^^
"Mehdi" <vi****@REMOVEME.gmail.com>
??????:12*****************************@40tude.net. .. On Mon, 29 May 2006 13:45:15 +0800, cok wrote:
I have a class inherit form System.Windows.Forms.Form, I want to override OnPaint method , In Project Class View, I right click MyForm, but there is no Item about "Override method" in the contex menu, In the form class property page, I find "Paint" even, I know this is good and can use, but I really want to know: in VS2005, wheather there is a wizard to help developer override a method of all it's parent class,
In your class, type protected override and Intellisense will pop up with the list of methods that you can override.
Add the following method to your Form code:
protected override void OnPaint(PaintEventArgs e)
{
}
By the time you type "override" the Intellisense should be starting to kick
in, providing a list of overridable methods to choose from.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
This is, by definition, not that.
"cok" <co****@163.com> wrote in message
news:uQ**************@TK2MSFTNGP03.phx.gbl... Hi, all
I have a question about VS 2005 IDE, I donn't know if It is place to post my question,sorry
I have a class inherit form System.Windows.Forms.Form, I want to override OnPaint method , In Project Class View, I right click MyForm, but there is no Item about "Override method" in the contex menu, In the form class property page, I find "Paint" even, I know this is good and can use, but I really want to know: in VS2005, wheather there is a wizard to help developer override a method of all it's parent class,
Thanks,
thanks for any advice!
-- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ _/ Nie Longhai , coder -_-||| _/ Shanghai Xomi Instruments Co., Ltd. _/ URL: http://www.xomi.cn _/ Shanghai C&U Industrial Park _/ Feng Cheng Town, Feng Xian District _/ Shanghai, 201411 _/ Phone:86-21-57513966-807 _/ Fax:86-21-57513636 _/ Mobile:13162055440 _/ Email:Ni***@xomi.cn ,co****@163.com _/ _/ Profession & Focus _/ High precision semiconductor metrology system vendor. _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Hi ,Kevin
thank you very much
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> дÈëÏûÏ¢ÐÂÎÅ:uT**************@TK2MSFTNGP05.phx.gbl ... Add the following method to your Form code:
protected override void OnPaint(PaintEventArgs e) { }
By the time you type "override" the Intellisense should be starting to kick in, providing a list of overridable methods to choose from.
-- HTH,
Kevin Spencer Microsoft MVP Professional Numbskull
This is, by definition, not that.
"cok" <co****@163.com> wrote in message news:uQ**************@TK2MSFTNGP03.phx.gbl... Hi, all
I have a question about VS 2005 IDE, I donn't know if It is place to post my question,sorry
I have a class inherit form System.Windows.Forms.Form, I want to override OnPaint method , In Project Class View, I right click MyForm, but there is no Item about "Override method" in the contex menu, In the form class property page, I find "Paint" even, I know this is good and can use, but I really want to know: in VS2005, wheather there is a wizard to help developer override a method of all it's parent class,
Thanks,
thanks for any advice!
-- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ _/ Nie Longhai , coder -_-||| _/ Shanghai Xomi Instruments Co., Ltd. _/ URL: http://www.xomi.cn _/ Shanghai C&U Industrial Park _/ Feng Cheng Town, Feng Xian District _/ Shanghai, 201411 _/ Phone:86-21-57513966-807 _/ Fax:86-21-57513636 _/ Mobile:13162055440 _/ Email:Ni***@xomi.cn ,co****@163.com _/ _/ Profession & Focus _/ High precision semiconductor metrology system vendor. _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JPRoot |
last post by:
Hi
I use the following syntax to have events inherited from base to child classes which works nicely (virtual and override keyword on events). But I am wondering if it is a "supported" way of using...
|
by: Xarky |
last post by:
Hi,
I am overriding the method given to draw ellipses on my window,
using the following code. My problem is that I have a button that
every time it is pressed, a variable is inremented,...
|
by: bhavin |
last post by:
Hi,
Can someone point me to some good best practices kind of documentation on
use of events compared to method overriding.
Ex. In Windows Forms when should i have an event handler for Paint, and...
|
by: Richard |
last post by:
I have a requirement to put a GDI style circle or rectangle border around
the selected row of a datagrid/ It will overlap into the row above and below
the selected row. Doing this in a the OnPaint...
|
by: Brian Henry |
last post by:
I want to rewrite the panel control to include some things, but need to call
its base onpaint event... when i try to do mybase.onpaint in the code below
in the overriden sub it wont let me, whys...
| |
by: Jon Slaughter |
last post by:
I'm trying to override the toolstripcontainer class to "skin" it and handle
some other things. The problem I'm having is that the container contains the
toolstrippanels
...
|
by: Your_Persona |
last post by:
Is there a way to get effect1 with the method in effect2?
/////////////////////////////////////////////////////////////////////////////////////////////
using System;
using...
|
by: zacks |
last post by:
Forgive me if this has been already asked an answered, I did do a
search both here and in VS2005 Help, but I can't find the answer to my
question.
I am developing an MDI application that is a...
|
by: sean |
last post by:
I'm trying to create "rubber-band" rectangles by overriding the
OnPaint method to place rectangles on top of all graphic controls, but
when I call Me.Invalidate() (when the user moves the mouse),...
|
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,...
|
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...
| |
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
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...
|
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 ...
|
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...
| |