Click here to Skip to main content
15,843,319 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connecting 2 computers over Internet Pin
Igor120118-Jul-09 8:51
Igor120118-Jul-09 8:51 
GeneralRe: Connecting 2 computers over Internet Pin
lemycanh18-Jul-09 18:57
lemycanh18-Jul-09 18:57 
GeneralRe: Connecting 2 computers over Internet Pin
Igor120119-Jul-09 4:12
Igor120119-Jul-09 4:12 
QuestionAera Glass Button in C# Pin
Arnab Datta18-Jul-09 4:11
Arnab Datta18-Jul-09 4:11 
AnswerRe: Aera Glass Button in C# Pin
Rozis18-Jul-09 5:14
Rozis18-Jul-09 5:14 
GeneralRe: Aera Glass Button in C# Pin
Igor120118-Jul-09 5:53
Igor120118-Jul-09 5:53 
AnswerRe: Aera Glass Button in C# Pin
Igor12015-Aug-09 19:12
Igor12015-Aug-09 19:12 
QuestionWorking with multiple forms Pin
SimpleData18-Jul-09 3:21
SimpleData18-Jul-09 3: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 4:07
sitebuilderLuc Pattyn18-Jul-09 4:07 
GeneralRe: Working with multiple forms Pin
SimpleData18-Jul-09 4:15
SimpleData18-Jul-09 4:15 
GeneralRe: Working with multiple forms Pin
Luc Pattyn18-Jul-09 4:27
sitebuilderLuc Pattyn18-Jul-09 4:27 
GeneralRe: Working with multiple forms Pin
SimpleData18-Jul-09 4:35
SimpleData18-Jul-09 4:35 
GeneralRe: Working with multiple forms Pin
Luc Pattyn18-Jul-09 4:53
sitebuilderLuc Pattyn18-Jul-09 4:53 
GeneralRe: Working with multiple forms Pin
SimpleData18-Jul-09 5:14
SimpleData18-Jul-09 5:14 
QuestionAccess Database in Remote Server from LAN Pin
vasanth arivali18-Jul-09 2:58
vasanth arivali18-Jul-09 2:58 
AnswerRe: Access Database in Remote Server from LAN Pin
dan!sh 18-Jul-09 4:08
professional dan!sh 18-Jul-09 4:08 
AnswerRe: Access Database in Remote Server from LAN Pin
Monjurul Habib5-Jun-11 8:36
professionalMonjurul Habib5-Jun-11 8:36 
QuestionGet full HTML-code Pin
Martijn Verbakel18-Jul-09 1:28
Martijn Verbakel18-Jul-09 1:28 
AnswerRe: Get full HTML-code Pin
Mycroft Holmes18-Jul-09 1:47
professionalMycroft Holmes18-Jul-09 1:47 
GeneralRe: Get full HTML-code Pin
Martijn Verbakel18-Jul-09 1:51
Martijn Verbakel18-Jul-09 1:51 
QuestionHow do i know in which drive the operating system is installed in a c# application? Pin
CoderForEver18-Jul-09 0:20
CoderForEver18-Jul-09 0:20 
AnswerRe: How do i know in which drive the operating system is installed in a c# application? Pin
Luc Pattyn18-Jul-09 0:50
sitebuilderLuc Pattyn18-Jul-09 0:50 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
Baeltazor18-Jul-09 1:37
Baeltazor18-Jul-09 1:37 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
Luc Pattyn18-Jul-09 1:39
sitebuilderLuc Pattyn18-Jul-09 1:39 
JokeRe: How do i know in which drive the operating system is installed in a c# application? Pin
Mycroft Holmes18-Jul-09 1:49
professionalMycroft Holmes18-Jul-09 1: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.