Click here to Skip to main content
16,008,490 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to count the running applications? Pin
yyf26-Feb-04 9:53
yyf26-Feb-04 9:53 
GeneralTreeView ToolTip Pin
Guinness4Strength26-Feb-04 4:40
Guinness4Strength26-Feb-04 4:40 
GeneralRe: TreeView ToolTip Pin
Heath Stewart26-Feb-04 5:26
protectorHeath Stewart26-Feb-04 5:26 
GeneralCheckboxes in TreeView Pin
torrud26-Feb-04 3:47
torrud26-Feb-04 3:47 
GeneralRe: Checkboxes in TreeView Pin
Heath Stewart26-Feb-04 4:50
protectorHeath Stewart26-Feb-04 4:50 
GeneralRe: Checkboxes in TreeView Pin
Heath Stewart26-Feb-04 4:56
protectorHeath Stewart26-Feb-04 4:56 
GeneralTreeView and ContextMenu Pin
torrud26-Feb-04 3:43
torrud26-Feb-04 3:43 
GeneralRe: TreeView and ContextMenu Pin
Heath Stewart26-Feb-04 4:48
protectorHeath Stewart26-Feb-04 4:48 
One easy way would be to have a ContextMenu assigned to TreeView.ContextMenu (inherited from Control). Handle the Popup event and customize your MenuItems in the handler. Another way - although consuming more memory - would be to have separate ContextMenu instances and not assign anything to TreeView.ContextMenu. Handle the TreeView.MouseDown or TreeView.MouseUp events (whichever you prefer) and call ContextMenu.Show, passing the TreeView as the first parameter and the X and Y coordinates in a Point (from the MouseEventArgs) as the second parameter to Show. This calls the TrackPopupMenu native function internally.

 

Microsoft MVP, Visual C#
My Articles
GeneralMSSQL Linked Server Pin
y_seval26-Feb-04 2:48
y_seval26-Feb-04 2:48 
GeneralRe: MSSQL Linked Server Pin
Heath Stewart26-Feb-04 3:00
protectorHeath Stewart26-Feb-04 3:00 
GeneralAutoComplete ComboBox Pin
gr8tushar26-Feb-04 0:36
gr8tushar26-Feb-04 0:36 
GeneralRe: AutoComplete ComboBox Pin
ian mariano26-Feb-04 1:06
ian mariano26-Feb-04 1:06 
GeneralRe: AutoComplete ComboBox Pin
Heath Stewart26-Feb-04 3:20
protectorHeath Stewart26-Feb-04 3:20 
QuestionHow to change Datagrid column width??? Pin
Reinier van de Wetering25-Feb-04 23:07
Reinier van de Wetering25-Feb-04 23:07 
AnswerRe: How to change Datagrid column width??? Pin
Heath Stewart26-Feb-04 3:05
protectorHeath Stewart26-Feb-04 3:05 
GeneralDataRaw class Pin
y_seval25-Feb-04 22:16
y_seval25-Feb-04 22:16 
GeneralRe: DataRaw class Pin
ian mariano26-Feb-04 1:08
ian mariano26-Feb-04 1:08 
Generalhiding the control box Pin
Anthony_Yio25-Feb-04 22:13
Anthony_Yio25-Feb-04 22:13 
GeneralRe: hiding the control box Pin
thomasa25-Feb-04 22:30
thomasa25-Feb-04 22:30 
QuestionWhy my Win2k Server only run .aspx but no .asp files? Pin
DengJW25-Feb-04 21:41
DengJW25-Feb-04 21:41 
AnswerRe: Why my Win2k Server only run .aspx but no .asp files? Pin
y_seval26-Feb-04 0:53
y_seval26-Feb-04 0:53 
GeneralInitializing variables ... Pin
Andres Coder25-Feb-04 21:38
Andres Coder25-Feb-04 21:38 
GeneralRe: Initializing variables ... Pin
Corinna John25-Feb-04 22:58
Corinna John25-Feb-04 22:58 
GeneralRe: Initializing variables ... Pin
MJ Mirzazadeh26-Feb-04 0:41
MJ Mirzazadeh26-Feb-04 0:41 
GeneralRe: Initializing variables ... Pin
turbochimp26-Feb-04 2:19
turbochimp26-Feb-04 2:19 

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.