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

C#

 
AnswerRe: Date Format dd/mm/yyyy in mysql Pin
Rob Graham1-Nov-06 9:39
Rob Graham1-Nov-06 9:39 
Questionhow to show/hide forms ? Pin
Ashraf zia1-Nov-06 8:59
Ashraf zia1-Nov-06 8:59 
AnswerRe: how to show/hide forms ? Pin
Pete O'Hanlon1-Nov-06 9:41
mvePete O'Hanlon1-Nov-06 9:41 
AnswerRe: how to show/hide forms ? Pin
Rahithi1-Nov-06 10:44
Rahithi1-Nov-06 10:44 
GeneralRe: how to show/hide forms ? Pin
Ashraf zia1-Nov-06 15:34
Ashraf zia1-Nov-06 15:34 
GeneralRe: how to show/hide forms ? Pin
Rahithi2-Nov-06 4:08
Rahithi2-Nov-06 4:08 
AnswerRe: how to show/hide forms ? Pin
Haseeb Mukhtar1-Nov-06 19:15
Haseeb Mukhtar1-Nov-06 19:15 
AnswerRe: how to show/hide forms ? Pin
quiteSmart1-Nov-06 20:03
quiteSmart1-Nov-06 20:03 
hi,

You can do this by just overriding the constructor of the form that you want to open the last. In overriding the constructor put in it as an argument an instance of type first form (the one that contains the botton). For example, let us say that the last form to open is lastForm and the first one is firstForm.

You write the constructor of lastForm as follows:

public viod lastForm( firstForm first )<br />
{<br />
      <br />
      InitialyseComponent();<br />
      first.dispose();<br />
}


and when calling the last form through the botton, you initialyze a new form and give it as an argument a reference to the current form:

private void button1_click( sender object, e )<br />
{<br />
      lastForm last = new lastForm(this);<br />
      last.show();<br />
      <br />
}



hope it helps

Jamil Abou Khalil
AnswerRe: how to show/hide forms ? Pin
shaz jazz1-Nov-06 20:08
shaz jazz1-Nov-06 20:08 
QuestionPropertyInfo SetValue doesn't work for custom objects. Pin
Matt Casto1-Nov-06 8:00
Matt Casto1-Nov-06 8:00 
AnswerRe: PropertyInfo SetValue doesn't work for custom objects. Pin
Xint01-Nov-06 8:43
Xint01-Nov-06 8:43 
GeneralRe: PropertyInfo SetValue doesn't work for custom objects. Pin
Matt Casto1-Nov-06 8:57
Matt Casto1-Nov-06 8:57 
QuestionSteganography Pin
Musharaf Zaheer Qureshi1-Nov-06 7:05
Musharaf Zaheer Qureshi1-Nov-06 7:05 
AnswerRe: Steganography Pin
led mike1-Nov-06 7:48
led mike1-Nov-06 7:48 
AnswerRe: Steganography Pin
Eric Dahlvang1-Nov-06 12:25
Eric Dahlvang1-Nov-06 12:25 
QuestionDouble / String Conversion Problem Pin
Rick van Woudenberg1-Nov-06 6:41
Rick van Woudenberg1-Nov-06 6:41 
AnswerRe: Double / String Conversion Problem Pin
led mike1-Nov-06 7:54
led mike1-Nov-06 7:54 
AnswerRe: Double / String Conversion Problem Pin
Luc Pattyn1-Nov-06 7:59
sitebuilderLuc Pattyn1-Nov-06 7:59 
AnswerRe: Double / String Conversion Problem Pin
Rick van Woudenberg1-Nov-06 11:20
Rick van Woudenberg1-Nov-06 11:20 
GeneralRe: Double / String Conversion Problem Pin
Stefan Troschuetz1-Nov-06 21:44
Stefan Troschuetz1-Nov-06 21:44 
AnswerRe: Double / String Conversion Problem Pin
Martin#1-Nov-06 23:15
Martin#1-Nov-06 23:15 
Questionorg.pdfbox Pin
Member19781-Nov-06 6:21
Member19781-Nov-06 6:21 
QuestionDisable desktop short cuts Pin
aseef1-Nov-06 6:04
aseef1-Nov-06 6:04 
AnswerRe: Disable desktop short cuts Pin
Judah Gabriel Himango1-Nov-06 13:14
sponsorJudah Gabriel Himango1-Nov-06 13:14 
Questionredirect to another form Pin
minibansal1-Nov-06 5:52
minibansal1-Nov-06 5:52 

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.