Click here to Skip to main content
15,920,503 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rich Text Box Pin
rmedo15-Mar-05 1:00
rmedo15-Mar-05 1:00 
Generalrestricting entry in a text box Pin
ameto13-Mar-05 23:31
ameto13-Mar-05 23:31 
GeneralRe: restricting entry in a text box Pin
V.14-Mar-05 0:16
professionalV.14-Mar-05 0:16 
GeneralRe: restricting entry in a text box Pin
the last free name14-Mar-05 2:14
the last free name14-Mar-05 2:14 
GeneralRe: restricting entry in a text box Pin
S. Senthil Kumar14-Mar-05 16:39
S. Senthil Kumar14-Mar-05 16:39 
GeneralCHECKSUM VERIFYING FUNCTION Pin
maheshfour13-Mar-05 23:30
maheshfour13-Mar-05 23:30 
GeneralStartup Object C# Pin
Anonymous13-Mar-05 23:16
Anonymous13-Mar-05 23:16 
GeneralRe: Startup Object C# Pin
Colin Angus Mackay14-Mar-05 0:47
Colin Angus Mackay14-Mar-05 0:47 
Anonymous wrote:
I thought that I could point to the startup instance from Form1 by using 'f1' but this doesn't work

The reason that doesn't work is that your variable f1 is only valid within the scope of the Main() method (not "sub")

I suggest that when you write the code that does the SecondForm.Show() you should pass a reference to this to the SecondForm. You will have to create a property in the SecondForm to accept the main form as a reference. Store this reference in a member variable.

For example:
SecondForm sf = new SecondForm();
sf.MyMainForm = this;
sf.Show()


Then when you have the variable that needs to be sent to the main form you can do something like this:
MyMainForm.Name = this.nameTextBox.Text;
This will require a property on the main form to be set up to receive the variable.

Does this help?


My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralPacking and deploying C# .Net application Pin
rajasekar_2913-Mar-05 22:28
rajasekar_2913-Mar-05 22:28 
GeneralRe: Packing and deploying C# .Net application Pin
Christian Wikander13-Mar-05 22:50
Christian Wikander13-Mar-05 22:50 
GeneralRe: Packing and deploying C# .Net application Pin
rajasekar_2913-Mar-05 23:03
rajasekar_2913-Mar-05 23:03 
GeneralXML Parsing Pin
jatin.mehta@gmail.com13-Mar-05 21:49
jatin.mehta@gmail.com13-Mar-05 21:49 
GeneralRe: XML Parsing Pin
Christian Wikander13-Mar-05 22:19
Christian Wikander13-Mar-05 22:19 
GeneralParsing XML Pin
Anonymous13-Mar-05 21:45
Anonymous13-Mar-05 21:45 
GeneralI like convert Icon to String Pin
VictorVB13-Mar-05 20:56
VictorVB13-Mar-05 20:56 
GeneralRe: I like convert Icon to String Pin
J4amieC13-Mar-05 22:24
J4amieC13-Mar-05 22:24 
GeneralRe: I like convert Icon to String Pin
VictorVB13-Mar-05 23:50
VictorVB13-Mar-05 23:50 
GeneralRe: I like convert Icon to String Pin
J4amieC14-Mar-05 0:57
J4amieC14-Mar-05 0:57 
Generalbypassing the button event Pin
maheshfour13-Mar-05 20:11
maheshfour13-Mar-05 20:11 
GeneralRe: bypassing the button event Pin
Christian Wikander13-Mar-05 21:26
Christian Wikander13-Mar-05 21:26 
GeneralRe: bypassing the button event Pin
ameto13-Mar-05 23:37
ameto13-Mar-05 23:37 
GeneralRe: bypassing the button event Pin
Christian Wikander13-Mar-05 23:46
Christian Wikander13-Mar-05 23:46 
GeneralRe: bypassing the button event Pin
maheshfour14-Mar-05 0:05
maheshfour14-Mar-05 0:05 
GeneralRe: bypassing the button event Pin
mav.northwind14-Mar-05 0:17
mav.northwind14-Mar-05 0:17 
GeneralRe: bypassing the button event Pin
maheshfour14-Mar-05 0:28
maheshfour14-Mar-05 0:28 

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.