Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: generate variables at runtime ? Pin
Luc Pattyn26-Feb-09 3:09
sitebuilderLuc Pattyn26-Feb-09 3:09 
GeneralRe: generate variables at runtime ? Pin
Mubeen.asim26-Feb-09 3:12
Mubeen.asim26-Feb-09 3:12 
AnswerRe: generate variables at runtime ? Pin
Luc Pattyn26-Feb-09 3:35
sitebuilderLuc Pattyn26-Feb-09 3:35 
GeneralRe: generate variables at runtime ? Pin
Mubeen.asim26-Feb-09 4:07
Mubeen.asim26-Feb-09 4:07 
QuestionGoing back to the calling object Pin
Muammar©25-Feb-09 22:54
Muammar©25-Feb-09 22:54 
AnswerRe: Going back to the calling object Pin
Xmen Real 25-Feb-09 23:05
professional Xmen Real 25-Feb-09 23:05 
AnswerRe: Going back to the calling object Pin
Shyam K Pananghat25-Feb-09 23:06
Shyam K Pananghat25-Feb-09 23:06 
AnswerRe: Going back to the calling object Pin
DaveyM6925-Feb-09 23:42
professionalDaveyM6925-Feb-09 23:42 
Use an event in the called form that the hidden form listens for. When the called form fires the event, the callee can unhide itself.

[Edit]Simple example using the FormClosed event - but it could be a custom event[/Edit]
using System;
using System.Windows.Forms;

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        Shown += new EventHandler(Form1_Shown);
    }

    void Form1_Shown(object sender, EventArgs e)
    {
        Form2 form2 = new Form2();
        form2.FormClosed += new FormClosedEventHandler(form2_FormClosed);
        form2.Show();
        Visible = false;
    }

    void form2_FormClosed(object sender, FormClosedEventArgs e)
    {
        Visible = true;
    }
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

QuestionTimezone Pin
yesu prakash25-Feb-09 22:54
yesu prakash25-Feb-09 22:54 
AnswerRe: Timezone Pin
ABitSmart25-Feb-09 23:32
ABitSmart25-Feb-09 23:32 
QuestionHow to split a DataTable Pin
Member 455443325-Feb-09 22:41
Member 455443325-Feb-09 22:41 
AnswerRe: Split data from database Pin
Xmen Real 25-Feb-09 23:08
professional Xmen Real 25-Feb-09 23:08 
GeneralHow to split a DataTable Pin
Member 455443325-Feb-09 23:20
Member 455443325-Feb-09 23:20 
GeneralRe: Split data from database Pin
Xmen Real 25-Feb-09 23:27
professional Xmen Real 25-Feb-09 23:27 
QuestionKeyBoard event when form is not active? Pin
Frozzeg25-Feb-09 22:39
Frozzeg25-Feb-09 22:39 
AnswerRe: KeyBoard event when form is not active? Pin
Shyam K Pananghat25-Feb-09 22:48
Shyam K Pananghat25-Feb-09 22:48 
Answer[Message Deleted] [modified] Pin
sanforjackass25-Feb-09 23:08
sanforjackass25-Feb-09 23:08 
GeneralRe: KeyBoard event when form is not active? Pin
Xmen Real 25-Feb-09 23:10
professional Xmen Real 25-Feb-09 23:10 
AnswerRe: KeyBoard event when form is not active? Pin
Muammar©26-Feb-09 1:39
Muammar©26-Feb-09 1:39 
Questiongraphs in c# Pin
lost_in_code25-Feb-09 22:27
lost_in_code25-Feb-09 22:27 
AnswerRe: graphs in c# Pin
Member 455443325-Feb-09 22:37
Member 455443325-Feb-09 22:37 
Questioncalling a class in main method Pin
aratireddy25-Feb-09 22:08
aratireddy25-Feb-09 22:08 
AnswerRe: calling a class in main method Pin
Cracked-Down25-Feb-09 22:14
Cracked-Down25-Feb-09 22:14 
QuestionEye tracing algorithm Pin
sanforjackass25-Feb-09 21:28
sanforjackass25-Feb-09 21:28 
AnswerRe: Eye tracing algorithm Pin
CPallini25-Feb-09 22:07
mveCPallini25-Feb-09 22:07 

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.