| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|