Click here to Skip to main content
15,914,359 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connection Problem Pin
Rob Philpott9-Apr-09 6:07
Rob Philpott9-Apr-09 6:07 
GeneralRe: Connection Problem Pin
CodingYoshi9-Apr-09 6:26
CodingYoshi9-Apr-09 6:26 
GeneralRe: Connection Problem Pin
Rob Philpott9-Apr-09 6:34
Rob Philpott9-Apr-09 6:34 
GeneralRe: Connection Problem Pin
CodingYoshi9-Apr-09 6:36
CodingYoshi9-Apr-09 6:36 
GeneralRe: Connection Problem Pin
CodingYoshi9-Apr-09 9:25
CodingYoshi9-Apr-09 9:25 
QuestionReading ms Word table of contents with c# Pin
panoskatws9-Apr-09 4:51
panoskatws9-Apr-09 4:51 
QuestionBHO not working on IE7? Pin
svt gdwl9-Apr-09 3:43
svt gdwl9-Apr-09 3:43 
QuestionDelegates in C# Pin
al3xutzu009-Apr-09 3:38
al3xutzu009-Apr-09 3:38 
Hi Guys,

Quick question : I have 2 forms : FORM1 and FORM2. In FORM1 i am trying to implemen a PRINT PREVIW button to work like the PRINT PREVIW button in FORM2.
Here is the delegate, event Starter() and Subscriber() lines.

public delegate void DelegatPrintPreview(object sender, EventArgs e);
        public static event DelegatPrintPreview EvenimentDelegatPrintPreview;

        public static void StarterPrintPreview(object o, EventArgs ev)
        {
            if (EvenimentDelegatPrintPreview != null)
            {
                EvenimentDelegatPrintPreview(o, ev);
            }
        }
        public static void SubscribeToPrintPreview(DelegatPrintPreview pf)
        {
            EvenimentDelegatPrintPreview += new DelegatPrintPreview(pf);
        }



the question is : Where do i put the delegate(in the form with the same button or the other one )? and the same question with the Starter() and Subscriber() methods ?

Regards,
Alex

“Be the change you want to see in the world.”

AnswerRe: Delegates in C# Pin
Rob Philpott9-Apr-09 3:42
Rob Philpott9-Apr-09 3:42 
GeneralRe: Delegates in C# Pin
al3xutzu009-Apr-09 4:27
al3xutzu009-Apr-09 4:27 
GeneralRe: Delegates in C# Pin
S. Senthil Kumar9-Apr-09 4:58
S. Senthil Kumar9-Apr-09 4:58 
GeneralRe: Delegates in C# Pin
Rob Philpott9-Apr-09 5:18
Rob Philpott9-Apr-09 5:18 
QuestionHow to customize setup wizard in c#.net 3.5 windows application Pin
Narendra Reddy Vajrala9-Apr-09 3:35
Narendra Reddy Vajrala9-Apr-09 3:35 
AnswerRe: How to customize setup wizard in c#.net 3.5 windows application Pin
Dave Kreskowiak9-Apr-09 4:21
mveDave Kreskowiak9-Apr-09 4:21 
GeneralRe: How to customize setup wizard in c#.net 3.5 windows application Pin
Narendra Reddy Vajrala9-Apr-09 4:34
Narendra Reddy Vajrala9-Apr-09 4:34 
GeneralRe: How to customize setup wizard in c#.net 3.5 windows application Pin
Dave Kreskowiak9-Apr-09 6:50
mveDave Kreskowiak9-Apr-09 6:50 
QuestionInformation- Can we change the shape of button from Square to any other Pin
shomic.goyal9-Apr-09 3:02
shomic.goyal9-Apr-09 3:02 
AnswerRe: Information- Can we change the shape of button from Square to any other Pin
Nagy Vilmos9-Apr-09 3:12
professionalNagy Vilmos9-Apr-09 3:12 
AnswerRe: Information- Can we change the shape of button from Square to any other Pin
rahulsingi9-Nov-09 1:13
rahulsingi9-Nov-09 1:13 
QuestionFilling a Order Page Pin
Dirso9-Apr-09 3:01
Dirso9-Apr-09 3:01 
QuestionWorkflowMarkupSerializer doesn’t keep positions in a state machine workflow Pin
Win81289-Apr-09 2:53
Win81289-Apr-09 2:53 
AnswerRe: WorkflowMarkupSerializer doesn’t keep positions in a state machine workflow Pin
Win812810-Apr-09 1:40
Win812810-Apr-09 1:40 
Questionregular expressions Pin
xkrja9-Apr-09 1:22
xkrja9-Apr-09 1:22 
AnswerRe: regular expressions Pin
Ravadre9-Apr-09 2:01
Ravadre9-Apr-09 2:01 
GeneralRe: regular expressions Pin
xkrja9-Apr-09 2:16
xkrja9-Apr-09 2:16 

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.