Click here to Skip to main content
15,909,897 members
Home / Discussions / C#
   

C#

 
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 
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 
10x for the advice Rob. My delegate works just as it is. The issue is that Form1 is the first that starts when i run the program . In form 2 i have the button to print ( with the code). To avoid copying the same code in Form1, i wanted to create a delegate. So i created it in Form2 and also subscribed the print preview method to in in Form2. I made it but it only works when i start Fom1 and then start form2 and close it. Then i can use the button in Form1 for print preview.
This is because when i use the starter method in Form1 for the button in the Menu Strip i run it like this :

private void printPreviewToolStripMenuItem_Click(object sender, EventArgs e)
{
    Form2.StarterPrintPreview(sender, e);
}




So it needs form2 started once in order to run...and i am struggling with this to make it work Frown | :(

PS:I declared the Methods in Form2 STATIC but i can't see them in form1.i need to call them using FORM2

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

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 
GeneralRe: regular expressions Pin
Ravadre9-Apr-09 3:21
Ravadre9-Apr-09 3:21 
GeneralRe: regular expressions Pin
xkrja9-Apr-09 3:25
xkrja9-Apr-09 3:25 

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.