2 Replies - 481 Views - Last Post: 06 May 2012 - 09:07 AM Rate Topic: -----

#1 TheKillerVirus  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-May 12

Compiling Forms !

Posted 06 May 2012 - 08:47 AM

i have a problem ;
i just write my code in form1.cs and i make a login screen in form2.cs ...each time i compile it compile form1.cs not form2.cs .... plz some 1 help thanks
Is This A Good Question/Topic? 0
  • +

Replies To: Compiling Forms !

#2 tlhIn`toq  Icon User is offline

  • Freelance developer
  • member icon

Reputation: 6195
  • View blog
  • Posts: 13,675
  • Joined: 02-June 10

Re: Compiling Forms !

Posted 06 May 2012 - 08:55 AM

This can't be stressed enough in today's world of cell phone messaging:
Don't use txt/sms/leet/T9 speak like: u no, u r, dnt, wut i m do-n, coz, al gud, b4, ny1, and so on like this guy:

dis not b d'hood dawg... You are sitting at a real keyboard with a real monitor, not a cell phone. You are not here texting your high school posse to come to your kegger after their shift at Taco Bell. You are here asking for help from senior coding professionals who graciously donate their valuable time to helping the next generation of coders with their chosen craft. Please try to show them, yourself and the industry some respect by writing at least at an eighth grade level. (IE: English not ebonics or SMS, real words, punctuation and so on). If you can't take your own problem/question seriously enough to write like an adult, then why would you expect anyone else to take it seriously?

When you write a post you are presenting yourself. Your writing style is all you have to show others who you are and what you stand for. When I see posts filled with lack of capitalization, SMS text like 'Urself', lack of punctuation and so on; what I see is someone who just doesn't care to make even an eighth grade presentation of themselves. I also see that you feel we are not worth the effort. Posts that look like this show that you don't feel the person you are talking to is worth speaking to as an adult. If you show this level of contempt or apathy towards someone you are asking for help how can you expect to be taken seriously or expect to receive that expert's fullest attention and time to help you?


i just write my code in form1.cs and i make a login screen in form2.cs ...each time i compile it compile form1.cs not form2.cs

I'm sure its compiling both forms. Are you saying that changes you are making aren't being updated in the form you see when the application runs?

Double check that you don't have multiple languages of the form. You might be making changes on the Russian version but looking at the English version for example.

You need to tell us more about what you are doing and the results you are see and what the problem is. And please, write the details like a grown up.

This post has been edited by tlhIn`toq: 06 May 2012 - 09:19 AM

Was This Post Helpful? 0
  • +
  • -

#3 Nerfpl  Icon User is offline

  • D.I.C Head

Reputation: 43
  • View blog
  • Posts: 165
  • Joined: 15-January 12

Re: Compiling Forms !

Posted 06 May 2012 - 09:07 AM

I'm guessing you mean the Form2 is not visible.

Your application have Program.cs which actually instantiates and runs Form1 by default
To show Form2 you need to either add it to Program.cs, or add it as child of Form1 and .Show() it from there.

Compilation is sort of translation to Computer language. If your Form2 would not compile due any reason your application could not be run and you would get errors.

This post has been edited by Nerfpl: 06 May 2012 - 09:09 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1