Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can I merge images from two different pictureboxes into one picturebox? Pin
Member 1075676119-Apr-14 19:29
Member 1075676119-Apr-14 19:29 
QuestionUser control Pin
john563220-Jul-09 2:26
john563220-Jul-09 2:26 
AnswerRe: User control Pin
musefan20-Jul-09 2:30
musefan20-Jul-09 2:30 
QuestionBlocking inheritance methods Pin
bonzaiholding20-Jul-09 1:53
bonzaiholding20-Jul-09 1:53 
AnswerRe: Blocking inheritance methods Pin
stancrm20-Jul-09 2:00
stancrm20-Jul-09 2:00 
GeneralRe: Blocking inheritance methods Pin
bonzaiholding20-Jul-09 2:28
bonzaiholding20-Jul-09 2:28 
GeneralRe: Blocking inheritance methods Pin
stancrm20-Jul-09 2:46
stancrm20-Jul-09 2:46 
GeneralRe: Blocking inheritance methods Pin
DaveyM6920-Jul-09 3:08
professionalDaveyM6920-Jul-09 3:08 
What you want isn't possible with standard inheritance as far as I can work out if I'm understanding you correctly.

If you want a common function between two classes, but with their own implementation, and an additional function in one (or more) of them, I would use an interface.
public interface IInterface
{
    void Func2();
}

public class A : IInterface
{
    public void Func2()
    {

    }
}

public class B : IInterface
{
    public void Func2()
    {

    }
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

GeneralRe: Blocking inheritance methods Pin
PIEBALDconsult20-Jul-09 6:35
mvePIEBALDconsult20-Jul-09 6:35 
GeneralRe: Blocking inheritance methods Pin
DaveyM6920-Jul-09 9:25
professionalDaveyM6920-Jul-09 9:25 
AnswerRe: Blocking inheritance methods [modified] Pin
PIEBALDconsult20-Jul-09 4:26
mvePIEBALDconsult20-Jul-09 4:26 
Questioncompressing bytes Pin
shekhar25839520-Jul-09 1:46
shekhar25839520-Jul-09 1:46 
AnswerRe: compressing bytes Pin
stancrm20-Jul-09 1:50
stancrm20-Jul-09 1:50 
GeneralRe: compressing bytes Pin
musefan20-Jul-09 2:15
musefan20-Jul-09 2:15 
QuestionMeasureString returning different heights for different types of text primitives Pin
Raghu56620-Jul-09 1:45
Raghu56620-Jul-09 1:45 
AnswerRe: MeasureString returning different heights for different types of text primitives Pin
Dave Kreskowiak20-Jul-09 4:30
mveDave Kreskowiak20-Jul-09 4:30 
GeneralRe: MeasureString returning different heights for different types of text primitives Pin
Raghu56621-Jul-09 2:43
Raghu56621-Jul-09 2:43 
GeneralRe: MeasureString returning different heights for different types of text primitives Pin
Dave Kreskowiak21-Jul-09 14:39
mveDave Kreskowiak21-Jul-09 14:39 
AnswerDo not SPAM PinPopular
Manas Bhardwaj20-Jul-09 0:52
professionalManas Bhardwaj20-Jul-09 0:52 
GeneralRe: Do not SPAM Pin
0x3c020-Jul-09 0:54
0x3c020-Jul-09 0:54 
QuestionHow to code in for USB to serial......sending and receiving communication Pin
pallaka20-Jul-09 0:11
pallaka20-Jul-09 0:11 
AnswerRe: How to code in for USB to serial......sending and receiving communication Pin
Luc Pattyn20-Jul-09 0:40
sitebuilderLuc Pattyn20-Jul-09 0:40 
QuestionEnterprise application Development (MCPD) Pin
Abdul Rahman Hamidy20-Jul-09 0:03
Abdul Rahman Hamidy20-Jul-09 0:03 
QuestionMulti client - Server application Pin
Tej Aj19-Jul-09 23:42
Tej Aj19-Jul-09 23:42 
AnswerRe: Multi client - Server application Pin
stancrm19-Jul-09 23:58
stancrm19-Jul-09 23:58 

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.