Tech2 Forums - Powered by vBulletin

Need help in C# windows application

This is a topic on Need help in C# windows application within the Programmers Corner forums, part of the Technology category; Im a newbie in Visual studio C# and just started making windows form applications.How do i access a variable from ...

Results 1 to 2 of 2
  1. #1
    Uber Newbie
    Join Date
    Nov 2011
    Posts
    4
    Liked
    0 times
    Reputation points
    0

    Need help in C# windows application

    Im a newbie in Visual studio C# and just started making windows form applications.How do i access a variable from one form(say Form1) like a string or any other variable from another form(say Form2)?please help.also please suggest a good C# text book that is meant for C# windows form applications.thanks.

  2. #2
    Moderator coolpcguy's Avatar
    Join Date
    Mar 2007
    Location
    Bangalore
    Posts
    627
    Liked
    99 times
    Reputation points
    71

    Re: Need help in C# windows application

    Pass it as a parameter when you're calling form2 & add it as a constructor in form2.

    http://stackoverflow.com/q/5928071/92837
    also please suggest a good C# text book that is meant for C# windows form applications.
    Head First C# http://shop.oreilly.com/product/9780596514822.do
    Moderator at Super User, Web Apps Stack Exchange|Gamer|Drunk Coder|Music Lover|Maniac twitterer|Personal Blog|About Me
    Gadgets - HP Envy 14 / i5 520M / 8 GB / 128GB SSD / 1TB Seagate GoFlex | D-Link DGL 4500 | Denon AH-C360| Klipsch S4a| Fiio E5 | Samsung Galaxy SII | Dell U2312HM

    My Gear :HP Envy 14 / i5 520M / 8GB / 500GB HDD / 1TB Seagate GoFlex | Google Cr-48 | D-Link DGL 4500 | Denon AH-C360| Klipsch Image S4a | Fiio E5 | iPhone 3GS| Galaxy S II | Dell U2312HM| X-tatic 5.1 Gaming Headset | Logitech G400 Optical Mouse

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •