Click here to Skip to main content
11,648,094 members (71,236 online)
   

C#

 
GeneralRe: Basic Polymorphism Problem Pin
DaveyM694-Oct-12 22:18
mentorDaveyM694-Oct-12 22:18 
AnswerRe: Basic Polymorphism Problem Pin
BobJanova5-Oct-12 0:52
memberBobJanova5-Oct-12 0:52 
GeneralRe: Basic Polymorphism Problem Pin
DaveyM695-Oct-12 1:19
mentorDaveyM695-Oct-12 1:19 
GeneralRe: Basic Polymorphism Problem Pin
BobJanova5-Oct-12 3:04
memberBobJanova5-Oct-12 3:04 
QuestionC# linq group by Pin
rachel_m4-Oct-12 17:43
memberrachel_m4-Oct-12 17:43 
AnswerRe: C# linq group by Pin
OriginalGriff4-Oct-12 23:19
mvpOriginalGriff4-Oct-12 23:19 
GeneralRe: C# linq group by Pin
rachel_m5-Oct-12 2:48
memberrachel_m5-Oct-12 2:48 
GeneralRe: C# linq group by Pin
OriginalGriff5-Oct-12 3:29
mvpOriginalGriff5-Oct-12 3:29 
QuestionCrystal Reports : Database Login Prompt Issue Pin
Quam Chang4-Oct-12 16:36
memberQuam Chang4-Oct-12 16:36 
AnswerRe: Crystal Reports : Database Login Prompt Issue Pin
AmbiguousName4-Oct-12 20:00
memberAmbiguousName4-Oct-12 20:00 
QuestionAggregate data into 5 min interval Pin
Member 94707244-Oct-12 11:59
memberMember 94707244-Oct-12 11:59 
QuestionC# linq Pin
rachel_m4-Oct-12 9:36
memberrachel_m4-Oct-12 9:36 
AnswerRe: C# linq Pin
Collin Jasnoch4-Oct-12 10:00
memberCollin Jasnoch4-Oct-12 10:00 
Question.exe Reference Problem - maybe Pin
dirsow4-Oct-12 7:52
memberdirsow4-Oct-12 7: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
FrmRequestPwd.Show(true, "Solicite uma senha ao seu representante!");

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 9:01
memberEddy Vluggen4-Oct-12 9:01 
GeneralRe: .exe Reference Problem - maybe Pin
dirsow4-Oct-12 9:27
memberdirsow4-Oct-12 9:27 
GeneralRe: .exe Reference Problem - maybe Pin
Eddy Vluggen4-Oct-12 9:34
memberEddy Vluggen4-Oct-12 9:34 
GeneralRe: .exe Reference Problem - maybe Pin
dirsow4-Oct-12 9:41
memberdirsow4-Oct-12 9:41 
AnswerRe: .exe Reference Problem - maybe Pin
Bernhard Hiller4-Oct-12 21:00
memberBernhard Hiller4-Oct-12 21:00 
Questionhow to setting Four tier application in my application? Pin
somasundarapandian4-Oct-12 4:28
membersomasundarapandian4-Oct-12 4:28 
AnswerRe: how to setting Four tier application in my application? Pin
Dave Kreskowiak4-Oct-12 6:45
mvpDave Kreskowiak4-Oct-12 6:45 
QuestionRe: how to setting Four tier application in my application? Pin
Eddy Vluggen4-Oct-12 9:02
memberEddy Vluggen4-Oct-12 9:02 
AnswerRe: how to setting Four tier application in my application? Pin
OriginalGriff4-Oct-12 9:34
mvpOriginalGriff4-Oct-12 9:34 
Questionsqldatabaseconnectivity Pin
Member 94545634-Oct-12 4:05
memberMember 94545634-Oct-12 4:05 
AnswerRe: sqldatabaseconnectivity Pin
Ravi Bhavnani4-Oct-12 4:31
memberRavi Bhavnani4-Oct-12 4:31 
AnswerRe: sqldatabaseconnectivity Pin
Richard MacCutchan4-Oct-12 4:32
mvpRichard MacCutchan4-Oct-12 4:32 
AnswerRe: sqldatabaseconnectivity Pin
palakshamb4-Oct-12 23:28
memberpalakshamb4-Oct-12 23:28 
QuestionCan an Attribute class find out, to which class it is actually attached? Pin
Andy4114-Oct-12 2:42
memberAndy4114-Oct-12 2:42 
AnswerRe: Can an Attribute class find out, to which class it is actually attached? Pin
Dave Kreskowiak4-Oct-12 6:56
mvpDave Kreskowiak4-Oct-12 6:56 
GeneralRe: Can an Attribute class find out, to which class it is actually attached? Pin
Andy4114-Oct-12 20:05
memberAndy4114-Oct-12 20:05 
AnswerRe: Can an Attribute class find out, to which class it is actually attached? Pin
BobJanova5-Oct-12 1:15
memberBobJanova5-Oct-12 1:15 
GeneralRe: Can an Attribute class find out, to which class it is actually attached? Pin
Andy4116-Oct-12 2:25
memberAndy4116-Oct-12 2:25 
QuestionReturning Object From HashTable Pin
AmbiguousName4-Oct-12 1:10
memberAmbiguousName4-Oct-12 1:10 
AnswerRe: Returning Object From HashTable Pin
Smart Arab4-Oct-12 1:54
memberSmart Arab4-Oct-12 1:54 
AnswerRe: Returning Object From HashTable Pin
Member 94836444-Oct-12 1:59
memberMember 94836444-Oct-12 1:59 
AnswerRe: Returning Object From HashTable Pin
Manfred R. Bihy4-Oct-12 2:22
mvpManfred R. Bihy4-Oct-12 2:22 
AnswerRe: Returning Object From HashTable Pin
Bernhard Hiller4-Oct-12 21:05
memberBernhard Hiller4-Oct-12 21:05 
Questionbusiness process management Pin
sag4prog4-Oct-12 1:04
membersag4prog4-Oct-12 1:04 
AnswerRe: BUSINESS PROCESS MANAGEMENT Pin
OriginalGriff4-Oct-12 9:34
mvpOriginalGriff4-Oct-12 9:34 
QuestionC# Pin
S Akshay4-Oct-12 0:19
memberS Akshay4-Oct-12 0:19 
AnswerRe: C# Pin
Eddy Vluggen4-Oct-12 0:42
memberEddy Vluggen4-Oct-12 0:42 
QuestionJQUERY in C# Pin
JabbarJahambana3-Oct-12 22:00
memberJabbarJahambana3-Oct-12 22:00 
AnswerRe: JQUERY in C# Pin
Pete O'Hanlon3-Oct-12 22:30
protectorPete O'Hanlon3-Oct-12 22:30 
AnswerRe: JQUERY in C# Pin
palakshamb4-Oct-12 23:42
memberpalakshamb4-Oct-12 23:42 
QuestionTagLibSharp help needed Pin
joost.versteegen3-Oct-12 20:42
memberjoost.versteegen3-Oct-12 20:42 
AnswerRe: TagLibSharp help needed Pin
Smart Arab3-Oct-12 21:18
memberSmart Arab3-Oct-12 21:18 
AnswerRe: TagLibSharp help needed Pin
joost.versteegen3-Oct-12 21:41
memberjoost.versteegen3-Oct-12 21:41 
QuestionEquation on c# Pin
sabuhi_asad3-Oct-12 20:41
membersabuhi_asad3-Oct-12 20:41 
AnswerRe: Equation on c# Pin
Richard MacCutchan3-Oct-12 21:41
mvpRichard MacCutchan3-Oct-12 21:41 
QuestionImplementing Private Inheritence Pin
AmbiguousName3-Oct-12 19:07
memberAmbiguousName3-Oct-12 19:07 

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
Web01 | 2.8.150804.4 | Last Updated 4 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid