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

C#

 
GeneralRe: PolyLib Modifying the ToString method Pin
Ryano12113-Feb-11 7:43
Ryano12113-Feb-11 7:43 
AnswerRe: PolyLib Modifying the ToString method Pin
Luc Pattyn14-Feb-11 1:03
sitebuilderLuc Pattyn14-Feb-11 1:03 
GeneralRe: PolyLib Modifying the ToString method Pin
Ryano12114-Feb-11 2:22
Ryano12114-Feb-11 2:22 
GeneralMessage Removed Pin
14-Feb-11 2:24
Ryano12114-Feb-11 2:24 
GeneralRe: PolyLib Modifying the ToString method Pin
Luc Pattyn14-Feb-11 2:46
sitebuilderLuc Pattyn14-Feb-11 2:46 
Questionerror in passing value from one form to other Pin
aeman13-Feb-11 1:28
aeman13-Feb-11 1:28 
AnswerRe: error in passing value from one form to other Pin
Wendelius13-Feb-11 1:49
mentorWendelius13-Feb-11 1:49 
AnswerRe: error in passing value from one form to other Pin
Luc Pattyn13-Feb-11 1:52
sitebuilderLuc Pattyn13-Feb-11 1:52 
What the message says is this: (for some reason, not sure which) your app needs a Form1 constructor without parameters, and you only have a single constructor, one with a string parameter.

I have three pieces of advice for you:

1.
learn to use all available information; when using a debug build, a compile-time error as well as a run-time exception provides you with file name or class name, and line number information. So you can easily figure out where it is unhappy. The problem may exist at that very location, or it gets detected at that location but is located elsewhere.
In this case I bet it is pointing to something like Application.Run(new Form1()); in perhaps a file called Program.cs

2.
learn to properly post a question. Your problem description (what it does, what you hope it would do, what your overall goal is) is not so good (you may have noticed most of your posts so far have been down-voted by one or more people). Your usage of PRE tags is fine, however we have seen 10 generations of your code already; and it badly needs a clean up, so please remove all empty handlers, all commented code, all redundant empty lines; then show only the relevant part of it. Which you probably haven't this time, if my hunch is right.

3.
Stop your hip-hop experiments for a while; choose, buy and study an introductory book on C# and learn how to program in a structured way. It will teach you many things including the use of meaningful names (not: Form1, Form2, f), object orientation, proper code design, etc.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

QuestionPlease can someone do me a favour and run a C# test for me Pin
Dave Midgley12-Feb-11 23:49
Dave Midgley12-Feb-11 23:49 
AnswerRe: Please can someone do me a favour and run a C# test for me Pin
OriginalGriff13-Feb-11 0:36
mveOriginalGriff13-Feb-11 0:36 
GeneralRe: Please can someone do me a favour and run a C# test for me Pin
Dave Midgley13-Feb-11 6:05
Dave Midgley13-Feb-11 6:05 
GeneralRe: Please can someone do me a favour and run a C# test for me Pin
OriginalGriff13-Feb-11 6:08
mveOriginalGriff13-Feb-11 6:08 
AnswerRe: Please can someone do me a favour and run a C# test for me Pin
PIEBALDconsult13-Feb-11 3:22
mvePIEBALDconsult13-Feb-11 3:22 
GeneralRe: Please can someone do me a favour and run a C# test for me Pin
Dave Midgley13-Feb-11 6:06
Dave Midgley13-Feb-11 6:06 
GeneralRe: Please can someone do me a favour and run a C# test for me Pin
OriginalGriff13-Feb-11 6:09
mveOriginalGriff13-Feb-11 6:09 
GeneralRe: Please can someone do me a favour and run a C# test for me Pin
Richard MacCutchan13-Feb-11 6:24
mveRichard MacCutchan13-Feb-11 6:24 
GeneralRe: Please can someone do me a favour and run a C# test for me Pin
PIEBALDconsult13-Feb-11 14:58
mvePIEBALDconsult13-Feb-11 14:58 
AnswerRe: Please can someone do me a favour and run a C# test for me Pin
Dave Kreskowiak13-Feb-11 10:59
mveDave Kreskowiak13-Feb-11 10:59 
GeneralRe: Please can someone do me a favour and run a C# test for me Pin
Dave Midgley13-Feb-11 20:19
Dave Midgley13-Feb-11 20:19 
QuestionVariable to be Accessed throughout code [modified] Pin
MWRivera12-Feb-11 16:37
MWRivera12-Feb-11 16:37 
AnswerRe: Variable to be Accessed throughout code Pin
OriginalGriff12-Feb-11 21:21
mveOriginalGriff12-Feb-11 21:21 
GeneralRe: Variable to be Accessed throughout code Pin
MWRivera13-Feb-11 4:07
MWRivera13-Feb-11 4:07 
GeneralRe: Variable to be Accessed throughout code Pin
OriginalGriff13-Feb-11 5:42
mveOriginalGriff13-Feb-11 5:42 
GeneralRe: Variable to be Accessed throughout code Pin
MWRivera14-Feb-11 15:31
MWRivera14-Feb-11 15:31 
AnswerRe: Variable to be Accessed throughout code Pin
RichardGrimmer15-Feb-11 3:55
RichardGrimmer15-Feb-11 3:55 

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.