Click here to Skip to main content
15,920,956 members
Home / Discussions / C#
   

C#

 
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 
QuestionProblem with reading a csv file Pin
benams25-Nov-10 5:33
benams25-Nov-10 5:33 
AnswerRe: Problem with reading a csv file Pin
Dave Kreskowiak25-Nov-10 5:54
mveDave Kreskowiak25-Nov-10 5:54 
AnswerRe: Problem with reading a csv file Pin
Luc Pattyn25-Nov-10 6:03
sitebuilderLuc Pattyn25-Nov-10 6:03 
GeneralRe: Problem with reading a csv file Pin
PIEBALDconsult25-Nov-10 6:51
mvePIEBALDconsult25-Nov-10 6:51 
GeneralRe: Problem with reading a csv file Pin
Luc Pattyn25-Nov-10 7:00
sitebuilderLuc Pattyn25-Nov-10 7:00 
AnswerRe: Problem with reading a csv file Pin
PIEBALDconsult25-Nov-10 6:52
mvePIEBALDconsult25-Nov-10 6:52 
GeneralRe: Problem with reading a csv file Pin
Mycroft Holmes25-Nov-10 12:10
professionalMycroft Holmes25-Nov-10 12:10 

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.