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

C#

 
GeneralRe: ActiveFomr.Invoke Pin
thomaxz.tc10-Mar-09 4:15
thomaxz.tc10-Mar-09 4:15 
GeneralRe: ActiveFomr.Invoke Pin
Xmen Real 10-Mar-09 4:22
professional Xmen Real 10-Mar-09 4:22 
GeneralRe: ActiveFomr.Invoke [modified] Pin
thomaxz.tc10-Mar-09 4:27
thomaxz.tc10-Mar-09 4:27 
I don't get it, Base class? What do you mean?

Thsi i try to do is

Usb hid->MainForm (data arrived method)-> BuzzCmd (mainform)
-> BuzzCmd (frmAbout)
-> BuzzCmd (frm1)
-> BuzzCmd (frm2)
-> BuzzCmd (frm3)

depending on which one is active

Which i tried with

Form.ActiveForm.Invoke(new BuzzCmdDelegate(BuzzCmd),new object[] {1,1});

Which did'nt do as i have xped invoked on active form, but invoked on the form which the code was in.

Then you come with

((frm1)Form.ActiveForm).BuzzCmd(1,1);


I worked i then think what if i cast it to form

((Form)Form.ActiveForm).BuzzCmd(1,1);


But can't do that, because form doees not contain an medthoed BuzzCmd.



Edit:

Hmm, I try to make an form, with at virtual medthod, but wheni cast it to that, no form geet called, not the mainform, not the frmABout and not the Form1, when i try to overide i frmABout it says ther is no method to overide.

modified on Tuesday, March 10, 2009 10:44 AM

GeneralRe: ActiveFomr.Invoke Pin
thomaxz.tc10-Mar-09 5:00
thomaxz.tc10-Mar-09 5:00 
GeneralRe: ActiveFomr.Invoke Pin
Xmen Real 10-Mar-09 5:31
professional Xmen Real 10-Mar-09 5:31 
QuestionReversing letters in a word Pin
Johnny Jackson10-Mar-09 3:18
Johnny Jackson10-Mar-09 3:18 
AnswerRe: Reversing letters in a word Pin
dan!sh 10-Mar-09 3:20
professional dan!sh 10-Mar-09 3:20 
AnswerRe: Reversing letters in a word Pin
Xmen Real 10-Mar-09 3:51
professional Xmen Real 10-Mar-09 3:51 
AnswerRe: Reversing letters in a word PinPopular
PIEBALDconsult10-Mar-09 4:39
mvePIEBALDconsult10-Mar-09 4:39 
JokeRe: Reversing letters in a word Pin
Xmen Real 10-Mar-09 5:28
professional Xmen Real 10-Mar-09 5:28 
GeneralRe: Reversing letters in a word Pin
Nagy Vilmos10-Mar-09 5:37
professionalNagy Vilmos10-Mar-09 5:37 
GeneralRe: Reversing letters in a word Pin
Johnny Jackson10-Mar-09 19:13
Johnny Jackson10-Mar-09 19:13 
AnswerRe: Reversing letters in a word Pin
Pete O'Hanlon10-Mar-09 4:58
mvePete O'Hanlon10-Mar-09 4:58 
GeneralRe: Reversing letters in a word [modified] Pin
harold aptroot10-Mar-09 5:35
harold aptroot10-Mar-09 5:35 
GeneralRe: Reversing letters in a word Pin
Pete O'Hanlon10-Mar-09 11:03
mvePete O'Hanlon10-Mar-09 11:03 
GeneralRe: Reversing letters in a word Pin
harold aptroot10-Mar-09 11:09
harold aptroot10-Mar-09 11:09 
GeneralRe: Reversing letters in a word Pin
Johnny Jackson10-Mar-09 19:10
Johnny Jackson10-Mar-09 19:10 
QuestionRe: Reversing letters in a word Pin
Luc Pattyn10-Mar-09 7:57
sitebuilderLuc Pattyn10-Mar-09 7:57 
GeneralRe: Reversing letters in a word [modified] Pin
Johnny Jackson10-Mar-09 19:11
Johnny Jackson10-Mar-09 19:11 
AnswerRe: Reversing letters in a word Pin
Johnny Jackson11-Mar-09 1:38
Johnny Jackson11-Mar-09 1:38 
QuestionCryptoStream Length Pin
BalajiRamasamy10-Mar-09 2:59
BalajiRamasamy10-Mar-09 2:59 
AnswerRe: CryptoStream Length Pin
BalajiRamasamy10-Mar-09 4:48
BalajiRamasamy10-Mar-09 4:48 
Questionwhich API to use? Pin
Try10-Mar-09 2:57
Try10-Mar-09 2:57 
AnswerRe: which API to use? Pin
Calin Tatar10-Mar-09 7:19
Calin Tatar10-Mar-09 7:19 
Answernobrainer Pin
Luc Pattyn10-Mar-09 8:04
sitebuilderLuc Pattyn10-Mar-09 8:04 

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.