Click here to Skip to main content
15,796,179 members
Home / Discussions / C#
   

C#

 
GeneralRe: generate variables at runtime ? Pin
Luc Pattyn26-Feb-09 4:09
sitebuilderLuc Pattyn26-Feb-09 4:09 
GeneralRe: generate variables at runtime ? Pin
Mubeen.asim26-Feb-09 4:12
Mubeen.asim26-Feb-09 4:12 
AnswerRe: generate variables at runtime ? Pin
Luc Pattyn26-Feb-09 4:35
sitebuilderLuc Pattyn26-Feb-09 4:35 
GeneralRe: generate variables at runtime ? Pin
Mubeen.asim26-Feb-09 5:07
Mubeen.asim26-Feb-09 5:07 
QuestionGoing back to the calling object Pin
Muammar©25-Feb-09 23:54
Muammar©25-Feb-09 23:54 
AnswerRe: Going back to the calling object Pin
Xmen Real 26-Feb-09 0:05
professional Xmen Real 26-Feb-09 0:05 
AnswerRe: Going back to the calling object Pin
Shyam K Pananghat26-Feb-09 0:06
Shyam K Pananghat26-Feb-09 0:06 
AnswerRe: Going back to the calling object Pin
DaveyM6926-Feb-09 0:42
professionalDaveyM6926-Feb-09 0: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 23:54
yesu prakash25-Feb-09 23:54 
AnswerRe: Timezone Pin
ABitSmart26-Feb-09 0:32
ABitSmart26-Feb-09 0:32 
QuestionHow to split a DataTable Pin
Member 455443325-Feb-09 23:41
Member 455443325-Feb-09 23:41 
AnswerRe: Split data from database Pin
Xmen Real 26-Feb-09 0:08
professional Xmen Real 26-Feb-09 0:08 
GeneralHow to split a DataTable Pin
Member 455443326-Feb-09 0:20
Member 455443326-Feb-09 0:20 
GeneralRe: Split data from database Pin
Xmen Real 26-Feb-09 0:27
professional Xmen Real 26-Feb-09 0:27 
QuestionKeyBoard event when form is not active? Pin
Frozzeg25-Feb-09 23:39
Frozzeg25-Feb-09 23:39 
AnswerRe: KeyBoard event when form is not active? Pin
Shyam K Pananghat25-Feb-09 23:48
Shyam K Pananghat25-Feb-09 23:48 
Answer[Message Deleted] [modified] Pin
sanforjackass26-Feb-09 0:08
sanforjackass26-Feb-09 0:08 
GeneralRe: KeyBoard event when form is not active? Pin
Xmen Real 26-Feb-09 0:10
professional Xmen Real 26-Feb-09 0:10 
AnswerRe: KeyBoard event when form is not active? Pin
Muammar©26-Feb-09 2:39
Muammar©26-Feb-09 2:39 
Questiongraphs in c# Pin
lost_in_code25-Feb-09 23:27
lost_in_code25-Feb-09 23:27 
AnswerRe: graphs in c# Pin
Member 455443325-Feb-09 23:37
Member 455443325-Feb-09 23:37 
Questioncalling a class in main method Pin
aratireddy25-Feb-09 23:08
aratireddy25-Feb-09 23:08 
AnswerRe: calling a class in main method Pin
Cracked-Down25-Feb-09 23:14
Cracked-Down25-Feb-09 23:14 
QuestionEye tracing algorithm Pin
sanforjackass25-Feb-09 22:28
sanforjackass25-Feb-09 22:28 
AnswerRe: Eye tracing algorithm Pin
CPallini25-Feb-09 23:07
mveCPallini25-Feb-09 23: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.