Click here to Skip to main content
15,173,985 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# linq group by Pin
OriginalGriff5-Oct-12 0:19
mveOriginalGriff5-Oct-12 0:19 
GeneralRe: C# linq group by Pin
rachel_m5-Oct-12 3:48
Memberrachel_m5-Oct-12 3:48 
GeneralRe: C# linq group by Pin
OriginalGriff5-Oct-12 4:29
mveOriginalGriff5-Oct-12 4:29 
QuestionCrystal Reports : Database Login Prompt Issue Pin
Quam Chang4-Oct-12 17:36
MemberQuam Chang4-Oct-12 17:36 
AnswerRe: Crystal Reports : Database Login Prompt Issue Pin
AmbiguousName4-Oct-12 21:00
MemberAmbiguousName4-Oct-12 21:00 
QuestionAggregate data into 5 min interval Pin
bad_kid4-Oct-12 12:59
Memberbad_kid4-Oct-12 12:59 
QuestionC# linq Pin
rachel_m4-Oct-12 10:36
Memberrachel_m4-Oct-12 10:36 
Question.exe Reference Problem - maybe Pin
dirsow4-Oct-12 8:52
Memberdirsow4-Oct-12 8:52 
Hi,
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
C#
FrmRequestPwd.Show(true, "Solicite uma senha ao seu representante!");


C#
public partial class FrmRequestPwd : Form
{
    private FrmRequestPwd()
    {
        InitializeComponent();
    }

    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');
            frm.ShowDialog();
        }
    }

    private void btnOK_Click(object sender, EventArgs e)
    {
        Close();
    }
}

Thanks!
Dirso

AnswerRe: .exe Reference Problem - maybe Pin
Eddy Vluggen4-Oct-12 10:01
professionalEddy Vluggen4-Oct-12 10:01 
GeneralRe: .exe Reference Problem - maybe Pin
dirsow4-Oct-12 10:27
Memberdirsow4-Oct-12 10:27 
GeneralRe: .exe Reference Problem - maybe Pin
Eddy Vluggen4-Oct-12 10:34
professionalEddy Vluggen4-Oct-12 10:34 
GeneralRe: .exe Reference Problem - maybe Pin
dirsow4-Oct-12 10:41
Memberdirsow4-Oct-12 10:41 
AnswerRe: .exe Reference Problem - maybe Pin
Bernhard Hiller4-Oct-12 22:00
MemberBernhard Hiller4-Oct-12 22:00 
Questionhow to setting Four tier application in my application? Pin
somasundarapandian4-Oct-12 5:28
Membersomasundarapandian4-Oct-12 5:28 
AnswerRe: how to setting Four tier application in my application? Pin
Dave Kreskowiak4-Oct-12 7:45
mveDave Kreskowiak4-Oct-12 7:45 
QuestionRe: how to setting Four tier application in my application? Pin
Eddy Vluggen4-Oct-12 10:02
professionalEddy Vluggen4-Oct-12 10:02 
AnswerRe: how to setting Four tier application in my application? Pin
OriginalGriff4-Oct-12 10:34
mveOriginalGriff4-Oct-12 10:34 
Questionsqldatabaseconnectivity Pin
Member 94545634-Oct-12 5:05
MemberMember 94545634-Oct-12 5:05 
AnswerRe: sqldatabaseconnectivity Pin
Ravi Bhavnani4-Oct-12 5:31
professionalRavi Bhavnani4-Oct-12 5:31 
AnswerRe: sqldatabaseconnectivity Pin
Richard MacCutchan4-Oct-12 5:32
mveRichard MacCutchan4-Oct-12 5:32 
AnswerRe: sqldatabaseconnectivity Pin
palakshamb5-Oct-12 0:28
Memberpalakshamb5-Oct-12 0:28 
QuestionCan an Attribute class find out, to which class it is actually attached? Pin
Andy4114-Oct-12 3:42
MemberAndy4114-Oct-12 3:42 
AnswerRe: Can an Attribute class find out, to which class it is actually attached? Pin
Dave Kreskowiak4-Oct-12 7:56
mveDave Kreskowiak4-Oct-12 7:56 
GeneralRe: Can an Attribute class find out, to which class it is actually attached? Pin
Andy4114-Oct-12 21:05
MemberAndy4114-Oct-12 21:05 
AnswerRe: Can an Attribute class find out, to which class it is actually attached? Pin
BobJanova5-Oct-12 2:15
MemberBobJanova5-Oct-12 2:15 

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.