Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need help for my IRC Client Pin
leppie26-Nov-02 11:00
leppie26-Nov-02 11:00 
GeneralRe: Need help for my IRC Client Pin
Shock The Dark Mage26-Nov-02 13:12
Shock The Dark Mage26-Nov-02 13:12 
GeneralRe: Need help for my IRC Client Pin
leppie26-Nov-02 13:28
leppie26-Nov-02 13:28 
GeneralRe: Need help for my IRC Client Pin
Shock The Dark Mage27-Nov-02 15:38
Shock The Dark Mage27-Nov-02 15:38 
GeneralRe: Need help for my IRC Client Pin
leppie28-Nov-02 0:09
leppie28-Nov-02 0:09 
GeneralRe: Need help for my IRC Client Pin
Michael Mac27-Nov-02 3:29
Michael Mac27-Nov-02 3:29 
GeneralRe: Need help for my IRC Client Pin
leppie27-Nov-02 6:58
leppie27-Nov-02 6:58 
Generalmouse hover over MenuItem..it's not working... Pin
lnong25-Nov-02 14:31
lnong25-Nov-02 14:31 
I want my menu item to be highlighted when the mouse cursor moves over it (just like in visual studio.NET's IDE). I believe this can be done by putting all the drawing code in the DrawItem() function. Then depending on which state the MenuItem is in, I draw the appropriate graphics.
I think the DrawItemState.Hotlight state is the one that deals with mouse hovers. But when I tried checking to see if my MenuItem state is Hotlight, it always returns false. The code inside that IF statement never gets executed I dont know why. Can someone please help me? Thanks, and here's the code:

private void menuItem1_DrawItem(object sender, DrawItemEventArgs e)
{
int x = e.Bounds.X, y = e.Bounds.Y, h = e.Bounds.Height, w = e.Bounds.Width;
if (e.State == DrawItemState.HotLight)
{
e.Graphics.FillRectangle(Brushes.Orange, x, y, w, h);
e.Graphics.DrawRectangle(Pens.Black, x, y, w, h);
}
e.Graphics.DrawString("Description", Font, Brushes.Black, x, y);
}

GeneralResX Error Pin
Jassim Rahma25-Nov-02 11:26
Jassim Rahma25-Nov-02 11:26 
GeneralRe: ResX Error Pin
Matze26-Nov-02 0:24
Matze26-Nov-02 0:24 
GeneralCustomized Form Designer Pin
Jassim Rahma24-Nov-02 23:13
Jassim Rahma24-Nov-02 23:13 
GeneralWindows About Box Pin
Jassim Rahma24-Nov-02 23:11
Jassim Rahma24-Nov-02 23:11 
GeneralCheck mdb Password Pin
Jassim Rahma24-Nov-02 23:10
Jassim Rahma24-Nov-02 23:10 
GeneralAudio/Video Library Pin
Jassim Rahma24-Nov-02 23:04
Jassim Rahma24-Nov-02 23:04 
GeneralRe: Audio/Video Library Pin
leppie25-Nov-02 7:21
leppie25-Nov-02 7:21 
GeneralRe: Audio/Video Library Pin
Jassim Rahma25-Nov-02 7:27
Jassim Rahma25-Nov-02 7:27 
GeneralRe: Audio/Video Library Pin
Christian Graus25-Nov-02 12:07
protectorChristian Graus25-Nov-02 12:07 
Questionwhen can we run our C# program in Mac or Linux? Pin
KeithPRC24-Nov-02 16:56
KeithPRC24-Nov-02 16:56 
AnswerRe: when can we run our C# program in Mac or Linux? Pin
Not Active24-Nov-02 17:40
mentorNot Active24-Nov-02 17:40 
GeneralRe: when can we run our C# program in Mac or Linux? Pin
KeithPRC24-Nov-02 18:12
KeithPRC24-Nov-02 18:12 
GeneralRe: when can we run our C# program in Mac or Linux? Pin
SimonS24-Nov-02 20:32
SimonS24-Nov-02 20:32 
AnswerRe: when can we run our C# program in Mac or Linux? Pin
Michael P Butler24-Nov-02 23:15
Michael P Butler24-Nov-02 23:15 
GeneralRe: when can we run our C# program in Mac or Linux? Pin
leppie25-Nov-02 22:43
leppie25-Nov-02 22:43 
AnswerRe: when can we run our C# program in Mac or Linux? Pin
LongRange.Shooter26-Nov-02 8:20
LongRange.Shooter26-Nov-02 8:20 
GeneralCreating a new NetworkStream class Pin
winsurfin24-Nov-02 15:00
winsurfin24-Nov-02 15:00 

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.