C# School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a C# Expert!

Join 307,217 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,614 people online right now. Registration is fast and FREE... Join Now!




C# Form For A Form

 

C# Form For A Form

systemerror

13 Sep, 2009 - 02:10 AM
Post #1

D.I.C Head
**

Joined: 15 Aug, 2009
Posts: 62


My Contributions
I have a problem I want this code to work but its not and i don't know the problem

CODE
Form2 NewForm2 = new Form2();
            NewForm2.ShowDialog();
            NewForm2.label1.Text = this.textBox1.Text;


The C# says the code is good but its not doing what I want it to do, from the form1 textbox1.text is suppose to come up on Form2 label1.text , can anyone please help me?

User is offlineProfile CardPM
+Quote Post


Posts in this topic
systemerror   C# Form For A Form   13 Sep, 2009 - 02:10 AM
janne_panne   Try to switch this: NewForm2.ShowDialog(...   13 Sep, 2009 - 03:12 AM

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 10:15PM

Live C# Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month