Click here to Skip to main content
16,004,901 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Proportional Resize of Vertically Stacked Controls on a Resizable Form Pin
User 127823-Nov-09 10:42
User 127823-Nov-09 10:42 
QuestionFont Dialog Box Pin
swapnil_bhanagle3-Nov-09 7:09
swapnil_bhanagle3-Nov-09 7:09 
QuestionRegex Question Pin
Alan Burkhart3-Nov-09 4:31
Alan Burkhart3-Nov-09 4:31 
AnswerRe: Regex Question Pin
Rob Smiley3-Nov-09 5:47
Rob Smiley3-Nov-09 5:47 
GeneralRe: Regex Question Pin
Alan Burkhart3-Nov-09 9:29
Alan Burkhart3-Nov-09 9:29 
GeneralTried NetSpell Pin
Alan Burkhart3-Nov-09 9:51
Alan Burkhart3-Nov-09 9:51 
QuestionDropDownButton Pin
Askold2-Nov-09 22:52
Askold2-Nov-09 22:52 
AnswerRe: DropDownButton Pin
Alan Burkhart4-Nov-09 17:23
Alan Burkhart4-Nov-09 17:23 
Suggestion:
Using most any paint program, create a very small arrow similar to the one in most drop down buttons. Create it pointing down and save it, then flip it vertically and save it again under a different name. Now you have your up and down arrows for the button.

Drag a regular button onto your form and set the text. Add the down arrow, aligned to the right of the text.

Create a ContextMenuStrip for the button and add the desired items.

Write code so that when the button is clicked once, the button's image changes to the up arrow, and the context menu appears below the button. Next time it's clicked, reset the button image back to the down arrow and close the context menu. You can monitor the button's "state" with a boolean variable and the menu's Visible property.

Also, add a line of code to each event handler in the context menu so that the button's image changes back to the down arrow when a menu item is clicked - since the menu will close.

Not a perfect solution, but I did something similar with ActionScript a few years ago and it worked quite well.

Best
AB
Questionenable/disable auto refresh of a web browser control from Win forms? Pin
Member 33656071-Nov-09 14:17
Member 33656071-Nov-09 14:17 
AnswerRe: enable/disable auto refresh of a web browser control from Win forms? Pin
Eddy Vluggen2-Nov-09 10:30
professionalEddy Vluggen2-Nov-09 10:30 
GeneralRe: enable/disable auto refresh of a web browser control from Win forms? Pin
Member 33656072-Nov-09 20:21
Member 33656072-Nov-09 20:21 
GeneralRe: enable/disable auto refresh of a web browser control from Win forms? Pin
Eddy Vluggen3-Nov-09 2:45
professionalEddy Vluggen3-Nov-09 2:45 
QuestionGenerating Bills for the current Invoice Number Pin
siddhardh30-Oct-09 20:19
siddhardh30-Oct-09 20:19 
AnswerRe: Generating Bills for the current Invoice Number Pin
Mycroft Holmes1-Nov-09 14:58
professionalMycroft Holmes1-Nov-09 14:58 
QuestiontableLayoutPanel gell cell by mouse hover Pin
ikurtz30-Oct-09 12:56
ikurtz30-Oct-09 12:56 
QuestionContext hightlight editor for VB.NET WinForms Pin
MrBean29-Oct-09 22:21
MrBean29-Oct-09 22:21 
AnswerRe: Context hightlight editor for VB.NET WinForms Pin
Henry Minute30-Oct-09 2:15
Henry Minute30-Oct-09 2:15 
AnswerRe: Context hightlight editor for VB.NET WinForms Pin
Alan Burkhart3-Nov-09 17:35
Alan Burkhart3-Nov-09 17:35 
AnswerRe: Context hightlight editor for VB.NET WinForms Pin
Shameel5-Nov-09 1:15
professionalShameel5-Nov-09 1:15 
QuestionMemory is not Released in Windows Application when ever any Form is Closed Pin
k_kedarnadh28-Oct-09 20:52
k_kedarnadh28-Oct-09 20:52 
AnswerRe: Memory is not Released in Windows Application when ever any Form is Closed Pin
Luc Pattyn29-Oct-09 4:06
sitebuilderLuc Pattyn29-Oct-09 4:06 
AnswerRe: Memory is not Released in Windows Application when ever any Form is Closed Pin
Dave Kreskowiak31-Oct-09 11:35
mveDave Kreskowiak31-Oct-09 11:35 
Questionproblem with datatable [modified] Pin
Sider8926-Oct-09 9:10
Sider8926-Oct-09 9:10 
AnswerRe: problem with datatable Pin
Henry Minute26-Oct-09 10:20
Henry Minute26-Oct-09 10:20 
GeneralRe: problem with datatable Pin
Sider8926-Oct-09 23:53
Sider8926-Oct-09 23:53 

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.