Click here to Skip to main content
15,917,481 members
Home / Discussions / C#
   

C#

 
GeneralRe: how merge 2 PNG images in one Pin
iliyang16-Jun-05 0:38
iliyang16-Jun-05 0:38 
GeneralRe: how merge 2 PNG images in one Pin
Anonymous16-Jun-05 1:33
Anonymous16-Jun-05 1:33 
Generalunsafe code Pin
usbah15-Jun-05 22:05
usbah15-Jun-05 22:05 
GeneralRe: unsafe code Pin
Andrew Kirillov15-Jun-05 23:18
Andrew Kirillov15-Jun-05 23:18 
Generalerror Pin
fatidarya15-Jun-05 21:59
fatidarya15-Jun-05 21:59 
GeneralRe: error Pin
Dave Kreskowiak16-Jun-05 4:40
mveDave Kreskowiak16-Jun-05 4:40 
GeneralStart and use an external application Pin
Rey999915-Jun-05 21:53
Rey999915-Jun-05 21:53 
GeneralRe: Start and use an external application Pin
codeprojectin15-Jun-05 21:59
codeprojectin15-Jun-05 21:59 
GeneralRe: Start and use an external application Pin
Rey999915-Jun-05 23:33
Rey999915-Jun-05 23:33 
GeneralCSTA in C# Pin
yarns15-Jun-05 20:56
yarns15-Jun-05 20:56 
GeneralRe: CSTA in C# Pin
mav.northwind16-Jun-05 1:18
mav.northwind16-Jun-05 1:18 
GeneralRe: CSTA in C# Pin
Anonymous16-Jun-05 1:45
Anonymous16-Jun-05 1:45 
General"object" problem Pin
kakarato15-Jun-05 20:52
kakarato15-Jun-05 20:52 
GeneralRe: "object" problem Pin
Kai Radewald15-Jun-05 21:54
Kai Radewald15-Jun-05 21:54 
GeneralRe: "object" problem Pin
kakarato15-Jun-05 22:12
kakarato15-Jun-05 22:12 
Generalmerge column header of datagrid with C# Pin
dexom15-Jun-05 20:49
dexom15-Jun-05 20:49 
GeneralScanning pixels and storing Pin
Anonymous15-Jun-05 19:16
Anonymous15-Jun-05 19:16 
GeneralRe: Scanning pixels and storing Pin
Christian Graus15-Jun-05 19:24
protectorChristian Graus15-Jun-05 19:24 
Generalmonth year selection Pin
prgramya15-Jun-05 19:06
prgramya15-Jun-05 19:06 
GeneralRe: month year selection Pin
Christian Graus15-Jun-05 19:22
protectorChristian Graus15-Jun-05 19:22 
GeneralWindowsFormsParkingWindow problem Pin
seee sharp15-Jun-05 17:39
seee sharp15-Jun-05 17:39 
GeneralRe: WindowsFormsParkingWindow problem Pin
seee sharp12-Jul-05 18:15
seee sharp12-Jul-05 18:15 
GeneralOverride a method in a custom control. Pin
kakarato15-Jun-05 15:20
kakarato15-Jun-05 15:20 
I've write a button base class. In the click even't i put code below:

this.Enabled = false;
this.Clicked(); //is a public virtual method in the class.
this.Enabled = true;

So next time when i when i use the button control i just need to put all my code in the Clicked() method in the custom button control. But the proplem is how do i put the in the Clicked() method ? In VFP i just need to override the Clicked() method with mu on code. But in C# it seen like quit confusing for me. Please advice. Thanks.

Below is the complete class code.

public class stdTextBox:System.Windows.Forms.Button<br />
{<br />
    protected override void OnClick(EventArgs e)<br />
    {<br />
        this.Enabled = false;<br />
        this.clicked();<br />
        this.Enabled = true;<br />
    }<br />
    private void clicked()<br />
    {<br />
    }<br />
}<br />

GeneralRe: Override a method in a custom control. Pin
Christian Graus15-Jun-05 19:01
protectorChristian Graus15-Jun-05 19:01 
GeneralRe: Override a method in a custom control. Pin
kakarato15-Jun-05 19:02
kakarato15-Jun-05 19:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.