Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: Focus Pin
[Marc]22-Jul-05 9:29
[Marc]22-Jul-05 9:29 
QuestionHow can i find the DataRow number in DataRowCollection Pin
m.rastgar20-Jul-05 12:30
m.rastgar20-Jul-05 12:30 
GeneralTransparent Overlapping Panels Problem... Pin
rcurrie20-Jul-05 12:25
rcurrie20-Jul-05 12:25 
GeneralRe: Transparent Overlapping Panels Problem... Pin
[Marc]20-Jul-05 16:12
[Marc]20-Jul-05 16:12 
GeneralRe: Transparent Overlapping Panels Problem... Pin
rcurrie21-Jul-05 6:35
rcurrie21-Jul-05 6:35 
GeneralRe: Transparent Overlapping Panels Problem... Pin
rcurrie21-Jul-05 12:46
rcurrie21-Jul-05 12:46 
GeneralRe: Transparent Overlapping Panels Problem... Pin
[Marc]21-Jul-05 15:56
[Marc]21-Jul-05 15:56 
GeneralRe: Transparent Overlapping Panels Problem... Pin
rcurrie22-Jul-05 7:29
rcurrie22-Jul-05 7:29 
Thanks again Absofukinlutely for your continued help in this matter, I really do appreciate it very much! Your example really has made things clearer for me. I didn't grasp the fact that there wasn't 'true' transparency, but that it was simply the parent re-drawing itself. That makes sense on why my earlier attempts where not functioning.

On to explaining what I want...well I have been attempting to create a fairly simple project that has 3 frames. The top-most frame is my event frame, it handles all mouse click events, the second and third frame function exactly like your '2:' example above. As you drag out a box...that box is drawn, by itself, on the middle frame...the 'drag frame'. When the mouse button is released, the drag frame is cleared, and the dragged out box is then added to the list of rectangles and then drawn on the last frame, the 'render frame'.

The trouble is that all frames overlap...and currently (since their parents are all the underlying form) you can't see anything being drawn becuase they are all transparent and just see all the way through down to the form.

If I apply the parenting structure like you have in your example and then manage the OnPaint events better I should be able to achieve what I am looking for. So the overall parent would be the underlying form, which would then contain the 'render_frame'. The 'render_frame's child would be the 'drag_frame' and the 'drag_frame's child would be the 'event_frame'. Does this sound about right? That way it should function properly. I would have a changing background image in the parent form that you could effectively 'mark-up' using the boxes and frames.

Thanks again Absofukinlutely, I really do appreciate all the great explanations and examples! Cool | :cool:

~rcurrie
GeneralRe: Transparent Overlapping Panels Problem... Pin
[Marc]22-Jul-05 9:00
[Marc]22-Jul-05 9:00 
GeneralRe: Transparent Overlapping Panels Problem... Pin
rcurrie22-Jul-05 9:06
rcurrie22-Jul-05 9:06 
GeneralRe: Transparent Overlapping Panels Problem... Pin
[Marc]22-Jul-05 9:28
[Marc]22-Jul-05 9:28 
GeneralRe: Transparent Overlapping Panels Problem... Pin
rcurrie25-Jul-05 14:02
rcurrie25-Jul-05 14:02 
GeneralRe: Transparent Overlapping Panels Problem... Pin
[Marc]26-Jul-05 7:55
[Marc]26-Jul-05 7:55 
GeneralRe: Transparent Overlapping Panels Problem... Pin
rcurrie2-Aug-05 14:04
rcurrie2-Aug-05 14:04 
GeneralRe: Transparent Overlapping Panels Problem... Pin
[Marc]3-Aug-05 1:05
[Marc]3-Aug-05 1:05 
GeneralRe: Transparent Overlapping Panels Problem... Pin
rcurrie4-Aug-05 11:20
rcurrie4-Aug-05 11:20 
GeneralRe: Transparent Overlapping Panels Problem... Pin
[Marc]4-Aug-05 14:08
[Marc]4-Aug-05 14:08 
GeneralRadio_Buttons Pin
_Sirrius20-Jul-05 11:58
_Sirrius20-Jul-05 11:58 
Generalinitializing data members in a class Pin
Dragan Matic20-Jul-05 11:41
Dragan Matic20-Jul-05 11:41 
GeneralRe: initializing data members in a class Pin
Alomgir Miah20-Jul-05 12:07
Alomgir Miah20-Jul-05 12:07 
GeneralC# newbie question Pin
Tom Wright20-Jul-05 11:20
Tom Wright20-Jul-05 11:20 
GeneralRe: C# newbie question Pin
Christian Graus20-Jul-05 12:48
protectorChristian Graus20-Jul-05 12:48 
GeneralDatagrid question Pin
Tom Wright20-Jul-05 10:47
Tom Wright20-Jul-05 10:47 
GeneralRe: Datagrid question Pin
Alomgir Miah20-Jul-05 12:01
Alomgir Miah20-Jul-05 12:01 
GeneralReading custom attributes in ReflectionOnly mode Pin
Daniel Grunwald20-Jul-05 10:18
Daniel Grunwald20-Jul-05 10:18 

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.