Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cursor position Pin
Agyeman7-Oct-05 9:11
Agyeman7-Oct-05 9:11 
GeneralRe: Cursor position Pin
XRaheemX7-Oct-05 9:13
XRaheemX7-Oct-05 9:13 
GeneralRe: Cursor position Pin
Agyeman7-Oct-05 9:28
Agyeman7-Oct-05 9:28 
GeneralRe: Cursor position Pin
XRaheemX7-Oct-05 9:31
XRaheemX7-Oct-05 9:31 
GeneralRe: Cursor position Pin
XRaheemX7-Oct-05 10:14
XRaheemX7-Oct-05 10:14 
AnswerRe: Cursor position Pin
Wjousts7-Oct-05 7:07
Wjousts7-Oct-05 7:07 
GeneralRe: Cursor position Pin
XRaheemX7-Oct-05 7:21
XRaheemX7-Oct-05 7:21 
QuestionCustom Controls and events Pin
Red_Wizard_Shot_The_Food7-Oct-05 3:46
Red_Wizard_Shot_The_Food7-Oct-05 3:46 
Im sorry for asking this as it is probably already been covered, but i cant seem to put my queary into a search phrase that returns any thing useful to me.

Here is my custom control related problem.

Just to get my head round making custom controls im mocking up a simple windows like menu bar and start menu within my program.

myMenu1: This is a custom control made up of 2 image boxes. 1 is the "start" button the other is the actual bar. When the user places the mouse in the transparent hot region (basicly the blank background of the menu item while the actual images reside offscreen) the menu bar images slide in from right to left, while the mouse hovers over the start button it changes color.

myMenu2 This is a the actual menu that will pop up when the start button is pressed. it is made up of MenuItem custom control items....

MenuItem
Just a label and image box that expose thier image, text and font properties.

What i want to do is have an event in a menu item be handled by the main form directly rather than the custom control.
At the moment the main form can only tell if im clicking on myMenu1 not wether im clicking on the start button or bar.
It can also only tell if im clicking on myMenu2 not which MenuItem.

What im angling for is to be able to click on myMenu1 start button and be able to use that event to set the visable and locaiton property of myMenu2 and be able to click on menu items in myMenu2 and have them function like indervidual buttons on my main form so they can fire of methods, etc.

Again sorry if this has been covered, I am rusty on Events and Delegates and it just seems like a matter of makingthe Click events public... but im struggling getting my head round it Frown | :(

Cheers.
AnswerRe: Custom Controls and events Pin
XRaheemX7-Oct-05 5:37
XRaheemX7-Oct-05 5:37 
GeneralRe: Custom Controls and events Pin
Red_Wizard_Shot_The_Food7-Oct-05 5:56
Red_Wizard_Shot_The_Food7-Oct-05 5:56 
GeneralRe: Custom Controls and events Pin
XRaheemX7-Oct-05 6:55
XRaheemX7-Oct-05 6:55 
GeneralRe: Custom Controls and events Pin
therealmccoy7-Oct-05 5:50
therealmccoy7-Oct-05 5:50 
QuestionSystem.Diagnostic.Process question/problem Pin
XRaheemX7-Oct-05 3:28
XRaheemX7-Oct-05 3:28 
AnswerRe: System.Diagnostic.Process question/problem Pin
therealmccoy7-Oct-05 7:59
therealmccoy7-Oct-05 7:59 
GeneralRe: System.Diagnostic.Process question/problem Pin
XRaheemX7-Oct-05 8:02
XRaheemX7-Oct-05 8:02 
GeneralRe: System.Diagnostic.Process question/problem Pin
therealmccoy7-Oct-05 8:57
therealmccoy7-Oct-05 8:57 
Questionaccessing a C DLL with C# Long/Int problem Pin
CalvinB7-Oct-05 3:26
CalvinB7-Oct-05 3:26 
AnswerRe: accessing a C DLL with C# Long/Int problem Pin
mav.northwind7-Oct-05 4:15
mav.northwind7-Oct-05 4:15 
GeneralRe: accessing a C DLL with C# Long/Int problem Pin
CalvinB7-Oct-05 4:59
CalvinB7-Oct-05 4:59 
GeneralRe: accessing a C DLL with C# Long/Int problem Pin
leppie7-Oct-05 7:25
leppie7-Oct-05 7:25 
QuestionData Access & Tab Control Pin
rich_wenger7-Oct-05 2:49
rich_wenger7-Oct-05 2:49 
QuestionSoftware Architecture - HELP! Pin
trjones17-Oct-05 1:44
trjones17-Oct-05 1:44 
AnswerRe: Software Architecture - HELP! Pin
Dan Neely7-Oct-05 2:04
Dan Neely7-Oct-05 2:04 
AnswerRe: Software Architecture - HELP! Pin
Carl Mercier7-Oct-05 4:47
Carl Mercier7-Oct-05 4:47 
Questionconverting array of byte to string in c# Pin
TssPrasad7-Oct-05 1:16
sussTssPrasad7-Oct-05 1:16 

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.