Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
QuestionWhat is my IP?? Pin
Sunil G 326-Nov-10 2:37
Sunil G 326-Nov-10 2:37 
AnswerRe: What is my IP?? Pin
harold aptroot26-Nov-10 2:45
harold aptroot26-Nov-10 2:45 
GeneralRe: What is my IP?? Pin
Sunil G 326-Nov-10 2:48
Sunil G 326-Nov-10 2:48 
GeneralRe: What is my IP?? Pin
monstale26-Nov-10 2:52
monstale26-Nov-10 2:52 
GeneralRe: What is my IP?? Pin
harold aptroot26-Nov-10 2:54
harold aptroot26-Nov-10 2:54 
AnswerRe: What is my IP?? Pin
Richard MacCutchan26-Nov-10 2:52
mveRichard MacCutchan26-Nov-10 2:52 
AnswerRe: What is my IP?? Pin
Luc Pattyn26-Nov-10 2:54
sitebuilderLuc Pattyn26-Nov-10 2:54 
GeneralRe: What is my IP?? Pin
RobK4104-Jun-11 19:20
RobK4104-Jun-11 19:20 
AnswerRe: What is my IP?? Pin
Luc Pattyn5-Jun-11 0:59
sitebuilderLuc Pattyn5-Jun-11 0:59 
AnswerRe: What is my IP?? Pin
Bernhard Hiller26-Nov-10 3:50
Bernhard Hiller26-Nov-10 3:50 
QuestionSerialPort Fire DataRecevie Pin
I Believe In GOD26-Nov-10 1:15
I Believe In GOD26-Nov-10 1:15 
AnswerRe: SerialPort Fire DataRecevie Pin
JF201526-Nov-10 1:40
JF201526-Nov-10 1:40 
GeneralRe: SerialPort Fire DataRecevie Pin
I Believe In GOD26-Nov-10 2:10
I Believe In GOD26-Nov-10 2:10 
AnswerRe: SerialPort Fire DataRecevie Pin
Luc Pattyn26-Nov-10 2:16
sitebuilderLuc Pattyn26-Nov-10 2:16 
GeneralRe: SerialPort Fire DataRecevie Pin
I Believe In GOD26-Nov-10 2:21
I Believe In GOD26-Nov-10 2:21 
GeneralRe: SerialPort Fire DataRecevie Pin
Richard MacCutchan26-Nov-10 2:54
mveRichard MacCutchan26-Nov-10 2:54 
Questiondirectshow dinamic format change problem Pin
Nematjon Rahmanov26-Nov-10 0:28
Nematjon Rahmanov26-Nov-10 0:28 
QuestionHow to use C++ Classes from C++ DLL in C#? Pin
bankey101025-Nov-10 22:44
bankey101025-Nov-10 22:44 
AnswerRe: How to use C++ Classes from C++ DLL in C#? Pin
Bernhard Hiller25-Nov-10 23:41
Bernhard Hiller25-Nov-10 23:41 
GeneralRe: How to use C++ Classes from C++ DLL in C#? Pin
bankey101025-Nov-10 23:57
bankey101025-Nov-10 23:57 
GeneralRe: How to use C++ Classes from C++ DLL in C#? Pin
JF201526-Nov-10 0:37
JF201526-Nov-10 0:37 
GeneralRe: How to use C++ Classes from C++ DLL in C#? Pin
Dave Kreskowiak26-Nov-10 6:16
mveDave Kreskowiak26-Nov-10 6:16 
QuestionMessagebox appearing behind uninstaller Pin
Jacob D Dixon25-Nov-10 17:32
Jacob D Dixon25-Nov-10 17:32 
So I am trying to give the user an option of removing registry keys when uninstalling my application (the installer is the windows installer with visual studio).

The problem is it appears the message box appears behind the uninstaller (sometimes). Here is what I am doing:

public CustomInstaller() : base()
{
    InitializeComponent();

    base.AfterUninstall += new InstallEventHandler(CustomInstaller_AfterUninstall);
}

public override void Uninstall(IDictionary savedState)
{
    base.Uninstall(savedState);
}

void CustomInstaller_AfterUninstall(object sender, InstallEventArgs e)
{
    // Ask to remove settings
    DialogResult result = MessageBox.Show("Do you want to remove all settings? (This is not reversible)", "Remove Settings",
        MessageBoxButtons.YesNo, MessageBoxIcon.Question);
    if (result == DialogResult.Yes)
    {
        try
        {
            Registry.LocalMachine.DeleteSubKeyTree(@"Software\JD Development");
        }
        catch (Exception ex)
        {
            MessageBox.Show("Unable to remove registry settings: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
    }

    // Delete the service
    Process.Start("sc", "delete JDAgent");
}

AnswerRe: Messagebox appearing behind uninstaller Pin
JF201525-Nov-10 21:33
JF201525-Nov-10 21:33 
GeneralRe: Messagebox appearing behind uninstaller Pin
Jacob D Dixon26-Nov-10 3:51
Jacob D Dixon26-Nov-10 3:51 

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.