Click here to Skip to main content


QuestionAggregate data into 5 min interval PinmemberMember 94707244-Oct-12 11:59 
QuestionC# linq Pinmemberrachel_m4-Oct-12 9:36 
AnswerRe: C# linq PinmemberCollin Jasnoch4-Oct-12 10:00 
Question.exe Reference Problem - maybe Pinmemberdirsow4-Oct-12 7:52 
I made a software with several forms and a few of them have a private constructor and a public static method that is responsible for creating, initializing and showing it. Everything works fine within this application, but now I made another desktop application and I added a reference in this new application to the old one, so I could reuse all forms. Well, every form I call the constructor directly works fine (mdi forms for example), but those "special" classes with private constructors give me an error compiling in release mode, but weirdly it compiles fine in debug mode... Any ideas?
that's how i call
FrmRequestPwd.Show(true, "Solicite uma senha ao seu representante!");
    public partial class FrmRequestPwd : Form
        private FrmRequestPwd()
        public static void Show(bool isError, string msg)
            using (FrmRequestPwd frm = new FrmRequestPwd())
                frm.lblMsg.Text = msg;
                frm.Text = isError ? "Erro" : "Aviso";
                frm.txtSerialHD.Text = Kernel32Managed.GetVolumeSerial('C');
        private void btnOK_Click(object sender, EventArgs e)

AnswerRe: .exe Reference Problem - maybe PinmemberEddy Vluggen4-Oct-12 9:01 
GeneralRe: .exe Reference Problem - maybe Pinmemberdirsow4-Oct-12 9:27 
GeneralRe: .exe Reference Problem - maybe PinmemberEddy Vluggen4-Oct-12 9:34 
GeneralRe: .exe Reference Problem - maybe Pinmemberdirsow4-Oct-12 9:41 
AnswerRe: .exe Reference Problem - maybe PinmemberBernhard Hiller4-Oct-12 21:00 
Questionhow to setting Four tier application in my application? Pinmembersomasundarapandian4-Oct-12 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 30 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid