Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2004, 05:51 AM
Authorized User
 
Join Date: Jun 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Options Dialog

How do you guys go around in making Options Dialogs ??
For example in this program I want to have a "Settings" option under the "Menu" ... Is there a special layout to have these Options dialogs like in Internet Options and that like.... ????

 
Old July 8th, 2004, 05:11 AM
Authorized User
 
Join Date: Jun 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nobody ???

 
Old July 8th, 2004, 05:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

use MainMenu obj in ur Toolbox.

Always:),
Hovik Melkomian.
 
Old July 8th, 2004, 05:39 AM
Authorized User
 
Join Date: Jun 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you always come me to the rescue.... :o) Where would I be without you man !!!!
P.S. is it hard to share a varialbe between two different forms ????

 
Old July 8th, 2004, 05:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Come on MAN
P.S. Discribe what u want, I'll do my best to help u;)

Always:),
Hovik Melkomian.
 
Old July 8th, 2004, 05:49 AM
Authorized User
 
Join Date: Jun 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have Form1 when I create it I create a public string, then I have on ebutton on Form1 that runs Form2. In that for I want to access this string variable in Form1....

 
Old July 8th, 2004, 06:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

I know what u want! so dont make u tired cuz I did myself before.
Well u need a variable to work with in diffrent forms & ... (in all part of project) so creat a class & put it there.
ur class will be like:

Code:
using System;

namespace App_Name
{
    public class [u]Class_Name</u>
    {
        private static string Val;
        public static string [u]urVariable</u>
        {
            set
            {
                Val = value;
            }
            get
            {
                return Val;
            }
        }
    }
}
Then in whole of ur Project u can access it as : [u]Class_Name.urVariable</u>

HTH.

Always:),
Hovik Melkomian.
 
Old July 8th, 2004, 06:08 AM
Authorized User
 
Join Date: Jun 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

aaahhhhhh Brilliant !!!!
Thanks again in the hundreath time !






Similar Threads
Thread Thread Starter Forum Replies Last Post
replace Word dialog with my designing dialog doublelucky Visual C++ 0 March 19th, 2007 02:27 AM
Missing options in choose data source dialog box kuznickic C# 2005 1 May 23rd, 2006 05:35 PM
Viewing Options gmoney060 Classic ASP Basics 2 August 8th, 2004 05:33 PM
Display Options shadowpug VB.NET 2002/2003 Basics 3 March 10th, 2004 04:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.