Click here to Skip to main content
15,920,468 members
Home / Discussions / C#
   

C#

 
QuestionHow to set CurrentCell in DataGrid Pin
george ivanov2-Feb-07 2:11
george ivanov2-Feb-07 2:11 
AnswerRe: How to set CurrentCell in DataGrid Pin
andre_swnpl2-Feb-07 2:21
andre_swnpl2-Feb-07 2:21 
GeneralRe: How to set CurrentCell in DataGrid Pin
george ivanov2-Feb-07 2:38
george ivanov2-Feb-07 2:38 
QuestionGet parameters in Windows Forms App Pin
blackjack21502-Feb-07 1:59
blackjack21502-Feb-07 1:59 
AnswerRe: Get parameters in Windows Forms App Pin
andre_swnpl2-Feb-07 2:12
andre_swnpl2-Feb-07 2:12 
GeneralRe: Get parameters in Windows Forms App Pin
bobsugar2222-Feb-07 3:28
bobsugar2222-Feb-07 3:28 
GeneralRe: Get parameters in Windows Forms App Pin
blackjack21502-Feb-07 3:48
blackjack21502-Feb-07 3:48 
Question.NET Crystal Report Pin
rswamy702-Feb-07 1:44
rswamy702-Feb-07 1:44 
AnswerRe: .NET Crystal Report Pin
parsiphal2-Feb-07 1:55
parsiphal2-Feb-07 1:55 
GeneralRe: .NET Crystal Report Pin
rswamy702-Feb-07 2:20
rswamy702-Feb-07 2:20 
QuestionSmtp Server Pin
snouto2-Feb-07 1:19
snouto2-Feb-07 1:19 
AnswerRe: Smtp Server Pin
led mike2-Feb-07 5:24
led mike2-Feb-07 5:24 
Questionupload progressbar control Pin
Ajay R Ojha2-Feb-07 0:33
Ajay R Ojha2-Feb-07 0:33 
AnswerRe: upload progressbar control Pin
Christian Graus2-Feb-07 0:45
protectorChristian Graus2-Feb-07 0:45 
AnswerRe: upload progressbar control Pin
blue_arc2-Feb-07 0:55
blue_arc2-Feb-07 0:55 
QuestionTypeInitializationException Pin
nasambur2-Feb-07 0:28
nasambur2-Feb-07 0:28 
AnswerRe: TypeInitializationException Pin
J4amieC2-Feb-07 2:18
J4amieC2-Feb-07 2:18 
GeneralRe: TypeInitializationException Pin
nasambur2-Feb-07 3:24
nasambur2-Feb-07 3:24 
QuestionListBox close Pin
quiteSmart1-Feb-07 23:47
quiteSmart1-Feb-07 23:47 
hi,

In my form i have a buttons, textBoxes, comboBoxes, labels,....

When i click on of the buttons a listbox that was set invisible is set visible.
It shows some names. The list box is located directly at the right-bottom corner or that button.
What i want is to make the listbox invisible whenever the user clicks the mouse at any location outside the listbox

I tried using the FocusLost event of the listBox, but that didn't work perfectly.
The problem it has is that whenever i click a label or a panel or something that doesn't receive focus, ofcourse the function is not executed.
With the FocusLost i tried to implement the MouseDown event of the form. That also didn't work.

Is there any way to do that without implementing a mouse click event on every label and every panel in the form.

thanks in advance
AnswerRe: ListBox close Pin
bobsugar2222-Feb-07 0:21
bobsugar2222-Feb-07 0:21 
GeneralRe: ListBox close Pin
quiteSmart2-Feb-07 1:15
quiteSmart2-Feb-07 1:15 
GeneralRe: ListBox close Pin
bobsugar2222-Feb-07 2:55
bobsugar2222-Feb-07 2:55 
AnswerRe: ListBox close Pin
Luc Pattyn2-Feb-07 0:23
sitebuilderLuc Pattyn2-Feb-07 0:23 
GeneralRe: ListBox close Pin
blue_arc2-Feb-07 1:34
blue_arc2-Feb-07 1:34 
AnswerRe: ListBox close Pin
J4amieC2-Feb-07 2:09
J4amieC2-Feb-07 2:09 

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.