Click here to Skip to main content
15,903,388 members
Home / Discussions / C#
   

C#

 
GeneralRe: choosing the element of matrix Pin
Ashok Dhamija20-Apr-05 22:05
Ashok Dhamija20-Apr-05 22:05 
GeneralOpen Modal DialogBox to a Form Pin
thejusks20-Apr-05 18:19
thejusks20-Apr-05 18:19 
GeneralRe: Open Modal DialogBox to a Form Pin
Christian Graus20-Apr-05 18:37
protectorChristian Graus20-Apr-05 18:37 
GeneralRe: Open Modal DialogBox to a Form Pin
Luis Alonso Ramos20-Apr-05 18:58
Luis Alonso Ramos20-Apr-05 18:58 
GeneralRe: Open Modal DialogBox to a Form Pin
thejusks20-Apr-05 19:17
thejusks20-Apr-05 19:17 
GeneralRe: Open Modal DialogBox to a Form Pin
Luis Alonso Ramos20-Apr-05 19:24
Luis Alonso Ramos20-Apr-05 19:24 
GeneralDrop down toolbar buttons different size Pin
Luis Alonso Ramos20-Apr-05 16:58
Luis Alonso Ramos20-Apr-05 16:58 
GeneralRe: Drop down toolbar buttons different size Pin
Ashok Dhamija21-Apr-05 1:16
Ashok Dhamija21-Apr-05 1:16 
I wonder whether the following would explain the reason (at least partially):

I tried to dig inside the disassembler for the System.Windows.Forms.dll file with ildasm. Also tried through a simple project. I started with a button size of 22,22. After clicking on the buttons collection property, in the ToolBarButton Collection Editor, what one notices is that the non-editable value of the Rectangle property for the first button is 0,0,23,22 (meaning that the size is 23,22) if the Style property is "PushButton". However, the moment one chooses the Style property as "DropDownButton", the said Rectangle property immediately becomes 0,0,36,22 (meaning that the size property is 36,22). Thus, a change of Style from PushButton to DropDownButton change the Height of Button from 23 to 36. It appears to be a read-only internal setting, though I am not very sure. I wonder whether this is a partial explanation.

After a slightly deeper research in the disassembler of toolbar class in the said dll file, for example, one notices that in the ToolBar::get_ButtonSize method, the button size is automatically set to either 39,36 or 23,22 depending upon the "Underneath" or "Right" values (respectively) of the TextAlign property of the button. Apparently, something similar is taking place in the internal coding of the said class when the Style property is being changed. Though, I must admit that I could not reach at the proper code after my limited research in the disassembled class structure. Perhaps some more study will reveal the secret of this behaviour.

I really do not know of what help, if at all, the above discussion would be to you...!
GeneralRe: Drop down toolbar buttons different size Pin
Luis Alonso Ramos21-Apr-05 6:00
Luis Alonso Ramos21-Apr-05 6:00 
QuestionVideo Hooks? Pin
DeepToot20-Apr-05 15:43
DeepToot20-Apr-05 15:43 
AnswerRe: Video Hooks? Pin
leppie21-Apr-05 0:54
leppie21-Apr-05 0:54 
AnswerRe: Video Hooks? Pin
Dave Kreskowiak21-Apr-05 2:28
mveDave Kreskowiak21-Apr-05 2:28 
GeneralRe: Video Hooks? Pin
DeepToot21-Apr-05 4:06
DeepToot21-Apr-05 4:06 
GeneralCannot call Dispose() while doing CreateHandle(). Pin
Member 140280620-Apr-05 15:30
Member 140280620-Apr-05 15:30 
GeneralRe: Cannot call Dispose() while doing CreateHandle(). Pin
Dave Kreskowiak21-Apr-05 2:25
mveDave Kreskowiak21-Apr-05 2:25 
GeneralRe: Cannot call Dispose() while doing CreateHandle(). Pin
Member 140280621-Apr-05 15:41
Member 140280621-Apr-05 15:41 
Generalfile / folder properties Pin
makaveli78920-Apr-05 14:22
makaveli78920-Apr-05 14:22 
GeneralRe: file / folder properties Pin
makaveli78921-Apr-05 2:54
makaveli78921-Apr-05 2:54 
GeneralCreating new Constructorles Primitive Via Reflection Pin
Tristan Rhodes20-Apr-05 13:10
Tristan Rhodes20-Apr-05 13:10 
GeneralRe: Creating new Constructorles Primitive Via Reflection Pin
Christian Graus20-Apr-05 13:30
protectorChristian Graus20-Apr-05 13:30 
GeneralRe: Creating new Constructorles Primitive Via Reflection Pin
Tristan Rhodes20-Apr-05 22:12
Tristan Rhodes20-Apr-05 22:12 
GeneralCapture entire packets before leaving NIC Pin
rick.north20-Apr-05 11:46
rick.north20-Apr-05 11:46 
GeneralRe: Capture entire packets before leaving NIC Pin
Dave Kreskowiak20-Apr-05 14:38
mveDave Kreskowiak20-Apr-05 14:38 
GeneralRe: Capture entire packets before leaving NIC Pin
rick.north21-Apr-05 7:55
rick.north21-Apr-05 7:55 
QuestionHow to avoid scroll wheel Pin
DFrag20-Apr-05 11:15
DFrag20-Apr-05 11:15 

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.