Click here to Skip to main content
15,887,304 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connecting 2 computers over Internet Pin
Igor120118-Jul-09 7:51
Igor120118-Jul-09 7:51 
GeneralRe: Connecting 2 computers over Internet Pin
lemycanh18-Jul-09 17:57
lemycanh18-Jul-09 17:57 
GeneralRe: Connecting 2 computers over Internet Pin
Igor120119-Jul-09 3:12
Igor120119-Jul-09 3:12 
QuestionAera Glass Button in C# Pin
Arnab Datta18-Jul-09 3:11
Arnab Datta18-Jul-09 3:11 
AnswerRe: Aera Glass Button in C# Pin
Rozis18-Jul-09 4:14
Rozis18-Jul-09 4:14 
GeneralRe: Aera Glass Button in C# Pin
Igor120118-Jul-09 4:53
Igor120118-Jul-09 4:53 
AnswerRe: Aera Glass Button in C# Pin
Igor12015-Aug-09 18:12
Igor12015-Aug-09 18:12 
QuestionWorking with multiple forms Pin
SimpleData18-Jul-09 2:21
SimpleData18-Jul-09 2:21 
Hi Let's assume that I have 2 forms, the main form and the form that main form opens (Form2).

In the first form I have a button - when pressed it opens Form2 and closes the main form -. It closes main form and opens Form2 with this code:

this.Hide();

using (Form2 _Form2 = new Form2())
{
   _Form2.ShowDialog();
   this.Dispose();
}

this.Close();


When I press that button main form closes and Form2 opens without a problem, but main form doesn't get destroyed. If main form is doing something on it's thread it keeps doing it at background. I want the main form to be completely destroyed. How can I do this?

Thanks.
AnswerRe: Working with multiple forms Pin
Luc Pattyn18-Jul-09 3:07
sitebuilderLuc Pattyn18-Jul-09 3:07 
GeneralRe: Working with multiple forms Pin
SimpleData18-Jul-09 3:15
SimpleData18-Jul-09 3:15 
GeneralRe: Working with multiple forms Pin
Luc Pattyn18-Jul-09 3:27
sitebuilderLuc Pattyn18-Jul-09 3:27 
GeneralRe: Working with multiple forms Pin
SimpleData18-Jul-09 3:35
SimpleData18-Jul-09 3:35 
GeneralRe: Working with multiple forms Pin
Luc Pattyn18-Jul-09 3:53
sitebuilderLuc Pattyn18-Jul-09 3:53 
GeneralRe: Working with multiple forms Pin
SimpleData18-Jul-09 4:14
SimpleData18-Jul-09 4:14 
QuestionAccess Database in Remote Server from LAN Pin
vasanth arivali18-Jul-09 1:58
vasanth arivali18-Jul-09 1:58 
AnswerRe: Access Database in Remote Server from LAN Pin
dan!sh 18-Jul-09 3:08
professional dan!sh 18-Jul-09 3:08 
AnswerRe: Access Database in Remote Server from LAN Pin
Monjurul Habib5-Jun-11 7:36
professionalMonjurul Habib5-Jun-11 7:36 
QuestionGet full HTML-code Pin
Martijn Verbakel18-Jul-09 0:28
Martijn Verbakel18-Jul-09 0:28 
AnswerRe: Get full HTML-code Pin
Mycroft Holmes18-Jul-09 0:47
professionalMycroft Holmes18-Jul-09 0:47 
GeneralRe: Get full HTML-code Pin
Martijn Verbakel18-Jul-09 0:51
Martijn Verbakel18-Jul-09 0:51 
QuestionHow do i know in which drive the operating system is installed in a c# application? Pin
CoderForEver17-Jul-09 23:20
CoderForEver17-Jul-09 23:20 
AnswerRe: How do i know in which drive the operating system is installed in a c# application? Pin
Luc Pattyn17-Jul-09 23:50
sitebuilderLuc Pattyn17-Jul-09 23:50 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
Baeltazor18-Jul-09 0:37
Baeltazor18-Jul-09 0:37 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
Luc Pattyn18-Jul-09 0:39
sitebuilderLuc Pattyn18-Jul-09 0:39 
JokeRe: How do i know in which drive the operating system is installed in a c# application? Pin
Mycroft Holmes18-Jul-09 0:49
professionalMycroft Holmes18-Jul-09 0:49 

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.