Click here to Skip to main content
15,919,422 members
Home / Discussions / C#
   

C#

 
GeneralRe: Referencing a textBox on a tabControl Pin
Edbert P5-Oct-06 13:01
Edbert P5-Oct-06 13:01 
Questionenlarging picture box Pin
rzvme4-Oct-06 9:20
rzvme4-Oct-06 9:20 
AnswerRe: enlarging picture box Pin
Christian Graus4-Oct-06 9:34
protectorChristian Graus4-Oct-06 9:34 
GeneralRe: enlarging picture box Pin
rzvme4-Oct-06 9:37
rzvme4-Oct-06 9:37 
QuestionRe: enlarging picture box Pin
rzvme4-Oct-06 23:42
rzvme4-Oct-06 23:42 
QuestionRemoting - interface vs proxy (soapsuds) Pin
Chuck Bevitt4-Oct-06 8:48
Chuck Bevitt4-Oct-06 8:48 
AnswerRe: Remoting - interface vs proxy (soapsuds) Pin
led mike4-Oct-06 10:17
led mike4-Oct-06 10:17 
Question3 state Button - weird behaviour Pin
seq-4-Oct-06 8:41
seq-4-Oct-06 8:41 
Hello,

I wrote some code for using some buttons in my application which depending on the state can be one of the 3 images:
- image_button_mouse_over.png (mouse is over my button)
- image_button_mouse_norma.png (mouse left my button)
- image_button_mouse_clicked.png (button clicked or mouse down)

I used the events (mouse_enter/mouse_leave/mouse_up/mouse_down/mouse_clicked) and depding on that and appropiate image is set to the button. IT WORKS FINE untill.. I click a button which display any window/dialog/whatever, when I do this the button stays after the click in the normal state (LIKE IT SHOULD BE), but when I close the window/dialog it remains in the image_button_mouse_over state even when I put into my code

<br />
button_clicked(object sender,eventargs e)<br />
{<br />
        button1.Image=image_button_mouse_norma_handler;<br />
        dialog.ShowDialog();<br />
        button1.Image=image_button_mouse_norma_handler;<br />
}<br />


I checked and the mouse_leave event is fired, right after the showdialog() is lunched, but It doesnt change anything... Any Ideas ?
AnswerRe: 3 state Button - weird behaviour Pin
Christian Graus4-Oct-06 9:36
protectorChristian Graus4-Oct-06 9:36 
AnswerRe: 3 state Button - weird behaviour [modified] Pin
Ilíon4-Oct-06 9:59
Ilíon4-Oct-06 9:59 
Questionfile system watcher problem Pin
gus_br4-Oct-06 8:39
gus_br4-Oct-06 8:39 
AnswerRe: file system watcher problem Pin
Andrew Rissing4-Oct-06 11:42
Andrew Rissing4-Oct-06 11:42 
GeneralRe: file system watcher problem Pin
gus_br4-Oct-06 14:04
gus_br4-Oct-06 14:04 
GeneralRe: file system watcher problem Pin
Andrew Rissing5-Oct-06 4:27
Andrew Rissing5-Oct-06 4:27 
GeneralRe: file system watcher problem Pin
gus_br6-Oct-06 7:03
gus_br6-Oct-06 7:03 
AnswerRe: file system watcher problem Pin
Andrew Rissing6-Oct-06 7:25
Andrew Rissing6-Oct-06 7:25 
QuestionDllImport / PInvoke Problem? Pin
David Knechtges4-Oct-06 8:18
David Knechtges4-Oct-06 8:18 
AnswerRe: DllImport / PInvoke Problem? Pin
Ed.Poore4-Oct-06 11:11
Ed.Poore4-Oct-06 11:11 
GeneralRe: DllImport / PInvoke Problem? Pin
David Knechtges5-Oct-06 7:32
David Knechtges5-Oct-06 7:32 
QuestionGTK# deployment - an installer project. Pin
P85Dyer4-Oct-06 7:47
P85Dyer4-Oct-06 7:47 
QuestionGrouping Array of Objects by Properties Pin
tntomek4-Oct-06 7:14
tntomek4-Oct-06 7:14 
AnswerRe: Grouping Array of Objects by Properties Pin
LongRange.Shooter4-Oct-06 7:17
LongRange.Shooter4-Oct-06 7:17 
GeneralRe: Grouping Array of Objects by Properties Pin
tntomek4-Oct-06 7:38
tntomek4-Oct-06 7:38 
AnswerRe: Grouping Array of Objects by Properties Pin
Nicholas Butler4-Oct-06 8:45
sitebuilderNicholas Butler4-Oct-06 8:45 
GeneralRe: Grouping Array of Objects by Properties Pin
LongRange.Shooter4-Oct-06 14:29
LongRange.Shooter4-Oct-06 14:29 

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.