Click here to Skip to main content
15,895,740 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Problem with reading a csv file Pin
Richard Andrew x6425-Nov-10 12:22
professionalRichard Andrew x6425-Nov-10 12:22 
QuestionStackTrace Pin
Jassim Rahma25-Nov-10 1:38
Jassim Rahma25-Nov-10 1:38 
AnswerRe: StackTrace Pin
Luc Pattyn25-Nov-10 1:46
sitebuilderLuc Pattyn25-Nov-10 1:46 
AnswerRe: StackTrace Pin
Keith Barrow25-Nov-10 1:48
professionalKeith Barrow25-Nov-10 1:48 
AnswerRe: StackTrace Pin
Pete O'Hanlon25-Nov-10 2:06
mvePete O'Hanlon25-Nov-10 2:06 
GeneralRe: StackTrace Pin
Bernhard Hiller25-Nov-10 23:47
Bernhard Hiller25-Nov-10 23:47 
QuestionHashTable or App.Config from db Pin
Jassim Rahma25-Nov-10 1:22
Jassim Rahma25-Nov-10 1:22 
AnswerRe: HashTable or App.Config from db Pin
Manfred Rudolf Bihy25-Nov-10 1:46
professionalManfred Rudolf Bihy25-Nov-10 1:46 

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.