CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old July 22nd, 2005, 07:10 PM
    baselkhateeb baselkhateeb is offline
    Junior Member
     
    Join Date: Jul 2005
    Posts: 1
    baselkhateeb is an unknown quantity at this point (<10)
    Accessing Form proprty from a function

    Hallo every body :
    the quesiton is that I have created a Windows Forms (.NET) application
    which originally contains a form
    I designed a function and I tried alot of ways to access the form proprties
    and they all failed
    its like this
    Form1.h

    //start >>
    //all required files included
    void func() ;
    namespace Project1
    {
    __gc class Form1 public :System::Windows::Forms::Form
    {
    //methods
    };
    }
    void func()
    {
    //some codes
    }
    I tried to pass the function as a parameter and tried apointer and so many ways but they all failes
    Reply With Quote
      #2    
    Old July 23rd, 2005, 03:21 AM
    SouthernCodeMonkey SouthernCodeMonkey is offline
    Member
     
    Join Date: Feb 2005
    Posts: 106
    SouthernCodeMonkey is on a distinguished road (40+)
    Re: Accessing Form proprty from a function

    Greetings.

    I'm not sure I follow just what it is you are trying to do, but I must ask:

    Is there any particular reason this function is not being implemented as a method of your class (Form1)?

    Your function also resides outside of the namespace that your form class is declared in (if your code represents what you see in your IDE).

    You're fired. Kidding. Maybe.

    Regards.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 01:45 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009