473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

__event and designer

Sun. Aug. 29, 2004 5:00 PM PT

I have a user control class which defined as follows...

[event_source(managed)]
public __gc class MyControl : public UserControl {
//----
//-- other fields methods and properties.
//---
public:
__event EventHandler *PositionChanged; //this is the line where
designer has a problem
};

My problem is as soon I defined an event inside the class, designer will not
show the control. Although it shows while designing, but when I close the
solution and re-open it, it will not display the designer, where as it
compiles and run successfully, and user of this control will also get this
event in their property sheet. But I still have the DESIGNER Problem. When I
comment this line designer will show, but will not compile the program,
because, PositionChanged identifier not found.

Am I doing anything wrong. Any Idea.

Thanks.
Nov 17 '05 #1
0 911

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
Serious bug discovered in VC .NET (2002) compiler. Example below should work if I understand the Microsoft documentation correctly. Hopfelly there is some compiler upgrade that fixes this bug?...
5
by: Joe Thompson | last post by:
Hi, I am using VC++.Net 2003 with WinForms to write a serial port application. I downloaded the newest VC++ examples from MSDN and found a project called Using the COM Port. In it, there is a...
0
by: Edward Diener | last post by:
Scenario: base class in one assembly, derived class in another assembly, __event in base class, testing if event has any handlers in derived class with 'if (OnTestEvent) { //etc. }'. Result:...
1
by: | last post by:
I want to hook events handlers but need to test of any event handler is assigned or not. I need something like this: __event void OnEventHandler(Myfunc) .... if (OnEventHandler)...
0
by: Lord2702 | last post by:
Sun. Aug. 29, 2004 5:00 PM PT I have a user control class which defined as follows... public __gc class MyControl : public UserControl { //---- //-- other fields methods and properties....
0
by: Dave L | last post by:
I just upgraded from VS .NET 2002 to 2003. Everything built okay, but strange bugs started appearing. Apparently there is a bug in the managed C++ compiler in regards to handling of static...
1
by: Edward Diener | last post by:
I have a __gc class, let's call it ClassB, derived from ClassA, which has an __event, and eventually derived from System::ComponentModel::Component. This ClassB has no __event. I derived another...
2
by: dejavue82 | last post by:
Does anybody know how to resolve the following errors? They were caused by the designer.cs file that was auto-generated by the LINQ to SQL designer. I am using the March 2007 Orcas CTP version of...
4
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. -...
6
by: PGP | last post by:
Anybody here using __event? Could you please discuss any potential issues with it other than portability? Priyesh
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.