Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
QuestionHow to step over the next control with GetNextControl(....,true).focus when the next control is not enabled Pin
fracalifa21-Jan-09 23:58
fracalifa21-Jan-09 23:58 
AnswerRe: How to step over the next control with GetNextControl(....,true).focus when the next control is not enabled Pin
DaveyM6922-Jan-09 0:37
professionalDaveyM6922-Jan-09 0:37 
GeneralRe: How to step over the next control with GetNextControl(....,true).focus when the next control is not enabled Pin
fracalifa22-Jan-09 0:59
fracalifa22-Jan-09 0:59 
AnswerRe: How to step over the next control with GetNextControl(....,true).focus when the next control is not enabled Pin
#realJSOP22-Jan-09 0:38
professional#realJSOP22-Jan-09 0:38 
AnswerRe: How to step over the next control with GetNextControl(....,true).focus when the next control is not enabled Pin
Wendelius22-Jan-09 0:43
mentorWendelius22-Jan-09 0:43 
Questioninterface: how to indicate there needs to be a default constructor? Pin
devvvy21-Jan-09 23:13
devvvy21-Jan-09 23:13 
AnswerRe: interface: how to indicate there needs to be a default constructor? Pin
DaveyM6921-Jan-09 23:25
professionalDaveyM6921-Jan-09 23:25 
AnswerRe: interface: how to indicate there needs to be a default constructor? Pin
Pete O'Hanlon21-Jan-09 23:38
mvePete O'Hanlon21-Jan-09 23:38 
You can't. An interface is a contract not an implementation. What you could do is create an abstract base class that inherits the interface and add a no-args constructor to it. If you mark the interface method as virtual in the implementation, then child classes can add their own processing. Example:
public interface IMyInterface
{
  void DoSomething(int count);
}

public abstract class MyBaseClass : IMyInterface
{
  public MyBaseClass()
  {
    DoSomething(0);
  }
  public virtual void DoSomething(int count)
  {
    Console.WriteLine("Called : {0}", count);
  }
}


"WPF has many lovers. It's a veritable porn star!" - Josh Smith

My blog | My articles | MoXAML PowerToys



AnswerRe: interface: how to indicate there needs to be a default constructor? Pin
Ennis Ray Lynch, Jr.22-Jan-09 2:56
Ennis Ray Lynch, Jr.22-Jan-09 2:56 
QuestionSaving form or panel as an object Pin
Naveed72721-Jan-09 22:44
Naveed72721-Jan-09 22:44 
AnswerRe: Saving form or panel as an object Pin
musefan21-Jan-09 22:52
musefan21-Jan-09 22:52 
GeneralRe: Saving form or panel as an object Pin
Naveed72721-Jan-09 22:54
Naveed72721-Jan-09 22:54 
GeneralRe: Saving form or panel as an object Pin
Dave Kreskowiak22-Jan-09 2:06
mveDave Kreskowiak22-Jan-09 2:06 
AnswerRe: Saving form or panel as an object Pin
DaveyM6921-Jan-09 23:15
professionalDaveyM6921-Jan-09 23:15 
GeneralRe: Saving form or panel as an object Pin
Naveed72721-Jan-09 23:19
Naveed72721-Jan-09 23:19 
GeneralRe: Saving form or panel as an object Pin
Tom Deketelaere21-Jan-09 23:27
professionalTom Deketelaere21-Jan-09 23:27 
GeneralRe: Saving form or panel as an object Pin
Naveed72721-Jan-09 23:35
Naveed72721-Jan-09 23:35 
GeneralRe: Saving form or panel as an object Pin
Tom Deketelaere21-Jan-09 23:59
professionalTom Deketelaere21-Jan-09 23:59 
GeneralRe: Saving form or panel as an object Pin
DaveyM6921-Jan-09 23:48
professionalDaveyM6921-Jan-09 23:48 
GeneralRe: Saving form or panel as an object Pin
Naveed72722-Jan-09 0:13
Naveed72722-Jan-09 0:13 
GeneralRe: Saving form or panel as an object Pin
DaveyM6922-Jan-09 0:40
professionalDaveyM6922-Jan-09 0:40 
AnswerRe: Saving form or panel as an object [modified] Pin
moon_stick22-Jan-09 0:11
moon_stick22-Jan-09 0:11 
GeneralRe: Saving form or panel as an object Pin
Naveed72722-Jan-09 1:20
Naveed72722-Jan-09 1:20 
QuestionHow to avoid stack overflow ? Pin
Spunky Coder21-Jan-09 22:13
Spunky Coder21-Jan-09 22:13 
AnswerRe: How to avoid stack overflow ? Pin
Pete O'Hanlon21-Jan-09 22:40
mvePete O'Hanlon21-Jan-09 22:40 

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.