Click here to Skip to main content
15,881,172 members
Home / Discussions / C#
   

C#

 
GeneralRe: String Width Pin
Luther Baker6-Jan-04 18:27
Luther Baker6-Jan-04 18:27 
GeneralRe: String Width Pin
Luther Baker7-Jan-04 11:39
Luther Baker7-Jan-04 11:39 
GeneralComboBox Pin
Luther Baker4-Jan-04 9:46
Luther Baker4-Jan-04 9:46 
GeneralRe: ComboBox Pin
Nick Parker4-Jan-04 10:06
protectorNick Parker4-Jan-04 10:06 
GeneralRe: ComboBox Pin
Charlie Williams4-Jan-04 10:07
Charlie Williams4-Jan-04 10:07 
GeneralRe: ComboBox Pin
Luther Baker4-Jan-04 10:39
Luther Baker4-Jan-04 10:39 
GeneralCustom Control Pin
Luther Baker4-Jan-04 8:59
Luther Baker4-Jan-04 8:59 
GeneralRe: Custom Control Pin
Heath Stewart4-Jan-04 18:15
protectorHeath Stewart4-Jan-04 18:15 
Why not just use a ContextMenu, which is already supported? Just start tracking the ContextMenu in the coordinate space of the container of the Button so that it aligns properly with the Button in question. See the Control.PointToClient method to convert coordinate spaces back and forth. Because the Button.Location is already in the coordinate space of the container, you could also just add the Height and Width appropriately, saving you a lot of work. The ContextMenu control will also extend past the bounds of the container.

Otherwise, you can use a simple popup Window (with the WS_POPUP style when you consider the native implementation of most controls in the .NET BCL). This is all the ContextMenu is when you get the heart of it.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Custom Control Pin
Luther Baker6-Jan-04 18:21
Luther Baker6-Jan-04 18:21 
GeneralRe: Custom Control Pin
Heath Stewart6-Jan-04 18:59
protectorHeath Stewart6-Jan-04 18:59 
GeneralRe: Custom Control Pin
Luther Baker6-Jan-04 19:26
Luther Baker6-Jan-04 19:26 
QuestionI should use what provider? Pin
god4k4-Jan-04 7:23
god4k4-Jan-04 7:23 
AnswerRe: I should use what provider? Pin
Guillermo Rivero4-Jan-04 8:11
Guillermo Rivero4-Jan-04 8:11 
GeneralRe: I should use what provider? Pin
Heath Stewart4-Jan-04 8:37
protectorHeath Stewart4-Jan-04 8:37 
AnswerRe: I should use what provider? Pin
Heath Stewart4-Jan-04 8:45
protectorHeath Stewart4-Jan-04 8:45 
QuestionHow to get list of Tables, Views and Procedure from Oracle database? Pin
god4k4-Jan-04 7:19
god4k4-Jan-04 7:19 
AnswerRe: How to get list of Tables, Views and Procedure from Oracle database? Pin
Nick Parker4-Jan-04 7:52
protectorNick Parker4-Jan-04 7:52 
AnswerRe: How to get list of Tables, Views and Procedure from Oracle database? Pin
Guillermo Rivero4-Jan-04 7:57
Guillermo Rivero4-Jan-04 7:57 
GeneralFeed CheckedListBox with data from XML Pin
dophka4-Jan-04 6:37
dophka4-Jan-04 6:37 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 8:34
protectorHeath Stewart4-Jan-04 8:34 
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 8:46
dophka4-Jan-04 8:46 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 8:52
protectorHeath Stewart4-Jan-04 8:52 
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 9:07
dophka4-Jan-04 9:07 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 9:11
protectorHeath Stewart4-Jan-04 9:11 
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 10:25
dophka4-Jan-04 10:25 

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.