Click here to Skip to main content
15,890,690 members
Home / Discussions / C#
   

C#

 
GeneralRe: Print Window Pin
PaulaM30-Sep-08 0:40
PaulaM30-Sep-08 0:40 
GeneralRe: Print Window Pin
leppie30-Sep-08 1:10
leppie30-Sep-08 1:10 
GeneralRe: Print Window Pin
Giorgi Dalakishvili30-Sep-08 0:52
mentorGiorgi Dalakishvili30-Sep-08 0:52 
QuestionWMI Pin
arkiboys30-Sep-08 0:06
arkiboys30-Sep-08 0:06 
QuestionHow to access a variable from other main form Pin
kk.tvm29-Sep-08 23:52
kk.tvm29-Sep-08 23:52 
AnswerRe: How to access a variable from other main form Pin
Pedram Behroozi30-Sep-08 2:01
Pedram Behroozi30-Sep-08 2:01 
AnswerRe: How to access a variable from other main form Pin
Guffa30-Sep-08 2:18
Guffa30-Sep-08 2:18 
AnswerRe: How to access a variable from other main form Pin
nelsonpaixao30-Sep-08 13:37
nelsonpaixao30-Sep-08 13:37 
you will have to use delegates!!! you´ll get used to it. Poke tongue | ;-P
or download an articles about parent/child form method

if you are using more than 1 form, better forget it.
Use the above method or fill main_form with usercontrols to load pages(here you use delegate).It works fine for me. Wink | ;)

see here an working exemple of delegates in action.
i trigger from usercontrol (with whatever event) a msg in form toolstrip_textbox

form
private void Form_Main_Load(object sender, EventArgs e)
{...
UserControl_RacePage_Child.Event_RacePageInfo += new UserControl_RacePage.Delegate_RacePageInfo(Page_Info);
...}

protected void Page_Info(string msg)
{ToolStripStatusLabel_MainInfo.Text = msg;}


usercontrol
public delegate void Delegate_RacePageInfo(string msg);
public event Delegate_RacePageInfo Event_RacePageInfo;

protected virtual void OnEvent_RacePageInfo(string msg)
{if (Event_RacePageInfo != null)
{ Event_RacePageInfo(msg); }}

// place this in whatever routine/method
protectec void button1_click(...)
{OnEvent_RacePageInfo("OK: Race added");}


nelsonpaixao@yahoo.com.br

trying to help & get help

QuestionHow to replace a string ($TITLE$) from html file ? Pin
DJ24529-Sep-08 23:09
DJ24529-Sep-08 23:09 
AnswerRe: How to replace a string ($TITLE$) from html file ? Pin
Maximilian Mayerl29-Sep-08 23:13
Maximilian Mayerl29-Sep-08 23:13 
QuestionNumber to Words Pin
cse.vidhya29-Sep-08 23:06
cse.vidhya29-Sep-08 23:06 
AnswerRe: Number to Words Pin
leppie29-Sep-08 23:32
leppie29-Sep-08 23:32 
AnswerRe: Number to Words Pin
Hum Dum30-Sep-08 0:30
Hum Dum30-Sep-08 0:30 
QuestionRegister remote object in Web.config Pin
Dextter29-Sep-08 23:03
Dextter29-Sep-08 23:03 
QuestionString Manipulation - Replace function Pin
omlac29-Sep-08 22:54
omlac29-Sep-08 22:54 
AnswerRe: String Manipulation - Replace function Pin
Giorgi Dalakishvili29-Sep-08 23:03
mentorGiorgi Dalakishvili29-Sep-08 23:03 
QuestionHow to Handle RollBack event in Setup and Deployment on VS2008 Pin
am 200929-Sep-08 22:43
am 200929-Sep-08 22:43 
QuestionGetting problem in C# Pin
bishwajeet29-Sep-08 22:30
bishwajeet29-Sep-08 22:30 
AnswerRe: Getting problem in C# Pin
Pete O'Hanlon30-Sep-08 2:07
mvePete O'Hanlon30-Sep-08 2:07 
GeneralRe: Getting problem in C# Pin
bishwajeet13-Oct-08 20:01
bishwajeet13-Oct-08 20:01 
QuestionCrystal Reports Problem Pin
Hossein Afyuoni29-Sep-08 22:28
Hossein Afyuoni29-Sep-08 22:28 
AnswerRe: Crystal Reports Problem Pin
Muhammad Shahid Farooq30-Sep-08 4:34
professionalMuhammad Shahid Farooq30-Sep-08 4:34 
GeneralRe: Crystal Reports Problem Pin
Hossein Afyuoni4-Oct-08 22:41
Hossein Afyuoni4-Oct-08 22:41 
QuestionC# and Unix Pin
Mbu00729-Sep-08 22:17
Mbu00729-Sep-08 22:17 
AnswerRe: C# and Unix Pin
Giorgi Dalakishvili29-Sep-08 22:25
mentorGiorgi Dalakishvili29-Sep-08 22: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.