Click here to Skip to main content
15,891,864 members
Home / Discussions / C#
   

C#

 
AnswerRe: QueryInterface call in .NET (C#) Pin
Andy Moore9-May-06 4:08
Andy Moore9-May-06 4:08 
QuestionBluetooth Application using C#.Net 2.0 Pin
coolsanjay9-May-06 3:02
coolsanjay9-May-06 3:02 
Questionmy ICryptoTransform class Pin
NaNg152419-May-06 1:35
NaNg152419-May-06 1:35 
QuestionI want to call a function when a new page in a word comes at runtime or can we trap the page break event at runtime in Office projects Pin
rohit_singh16799-May-06 1:18
rohit_singh16799-May-06 1:18 
QuestionHow to disable maximize/restore button of a MDI child form Pin
t800t89-May-06 1:14
t800t89-May-06 1:14 
AnswerRe: How to disable maximize/restore button of a MDI child form Pin
t800t89-May-06 1:30
t800t89-May-06 1:30 
Questionproblem when using 2 forms in a project Pin
dinhzap9-May-06 1:11
dinhzap9-May-06 1:11 
AnswerRe: problem when using 2 forms in a project Pin
NaNg152419-May-06 1:45
NaNg152419-May-06 1:45 
there is one BEST way which I recomend, without using static variables and distroying your code, simply, go to frmSecondForm.cs, and you will see a Constructor, simply add parameters in it, i'll give you the example and then explain:
public frmSecondForm(object myFirstVariable, string mySecondVariable, Form prevForm)

all you need to do, is to add before that private variables, and then simply placing them from the constructor to the variables, and there you go.

Why Form prevForm?
that's how you can control the last form either, when you want (as you want - your click event on btnShowFirstForm), you just do:
prevForm.Show();<br />
this.Close();

ofcourse in the first form, you can't do the close method, cuz it will close your whole program, because it's the main [first] form opened.

Hope I helped... NaNg
GeneralRe: problem when using 2 forms in a project Pin
dinhzap10-May-06 2:04
dinhzap10-May-06 2:04 
AnswerRe: problem when using 2 forms in a project Pin
albCode9-May-06 2:51
albCode9-May-06 2:51 
Questionkeyset does not exist Pin
V.thakur9-May-06 0:48
V.thakur9-May-06 0:48 
Newsjumping over versions Pin
ranandbe9-May-06 0:29
ranandbe9-May-06 0:29 
GeneralRe: jumping over versions Pin
CWIZO9-May-06 0:40
CWIZO9-May-06 0:40 
QuestionRe: jumping over versions Pin
ranandbe9-May-06 1:50
ranandbe9-May-06 1:50 
AnswerRe: jumping over versions Pin
Robert Rohde9-May-06 2:01
Robert Rohde9-May-06 2:01 
AnswerRe: jumping over versions Pin
CWIZO9-May-06 6:33
CWIZO9-May-06 6:33 
AnswerRe: How to paging datagrid? Pin
Stefan Troschuetz9-May-06 0:03
Stefan Troschuetz9-May-06 0:03 
QuestionHow to paging datagrid? Pin
Robert Wang19838-May-06 23:53
Robert Wang19838-May-06 23:53 
QuestionReturning AD values in C# Pin
lee.jones8-May-06 23:48
lee.jones8-May-06 23:48 
QuestionInstallation path needed Pin
Willem_Le_Roux8-May-06 23:38
Willem_Le_Roux8-May-06 23:38 
Questionhow to display selected items of a listbox into a datagrid at runtime Pin
narendrakumarp8-May-06 23:26
narendrakumarp8-May-06 23:26 
AnswerRe: how to display selected items of a listbox into a datagrid at runtime Pin
goyal manish8-May-06 23:59
goyal manish8-May-06 23:59 
GeneralRe: how to display selected items of a listbox into a datagrid at runtime Pin
nivasinfotech9-May-06 0:06
nivasinfotech9-May-06 0:06 
Questionthe exception can not be handled.... Pin
m.rastgar8-May-06 23:14
m.rastgar8-May-06 23:14 
QuestionImages in Richtextbox Pin
_mubashir8-May-06 22:59
_mubashir8-May-06 22:59 

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.