Advertisement

Results for "top"

4_2005-2006 #169088
DataGridViewPrinter Class

Please refer to the following url for more details on how to use the class: http://www.codeproject.com/csharp/datagridviewprinter.asp The Class Features: (1) The print style is almost the same as the style of the DataGridView control: (A) the same font style for the header and other rows, (B) the same foreground and background styles for the header and other rows, (C) the same alternating background style for the rows, (D) special font for certain rows will be considered, (E) special foreground and background styles for certain rows will be considered, (F) the same alignment for the columns. (2) Supports multiple pages. (3) The width of each column to be printed is calculated to fit all the cells (including the header cell). (4) The title at the top of the page can be specified. (5) The title font and color could be specified. (6) The title and the header row are repeated in each page. (7) The report could be top-centered (considering the top margin of the page) on the page or be aligned to the top-left margin. (8) The printing process ignores any invisible rows or columns (assuming that the user does not want them to appear). (9) If the DataGridView width is greater than the page width, then the columns with x coordinate greater than the page width will be printed into another page. This ensures that all columns will be printed (Thanks to Stephen Long). (10) Support page numbering. (11) The printing process uses Graphics.MeasureString to calculate the height and width for a certain text with a specified font. This ensures the preciseness of the printing. (12) The class supports Right-to-Left fonts.

5_2007-2008 #182604
SplitBar

This control makes it very easy to add a horizontal split bar to your application. Eventually this control will include vertical splitbars as well. To use this control: 1. Place the control on a form. 2. Place controls above and below the splitbar control. This control needs at least one control above it and one control below it to function. The idea is that instead of using code to set the maximum and minimum scrolling positions controls are used instead. This makes it easy to visualize the range of motion for the control. Also, you can reposition the controls in response to form resize events, and the splitbar will use the new positions. Controls that are used only for setting splitbar ranges can be hidden at run time. In the future I will probaly change this so that the splitbar uses its current position for the maximum top or maximum bottom position if no controls are added to the top or bottom. 3. In the form load event add references to the controls to the splitbar using the AddControlTop and AddControlBottom events. i.e. splitbar1.AddControlTop Text1 splitbar1.AddControlBottom Text2 splitbar1.Update Calling splitbar.Update will align the bottom of all TopControls controls with the top of the splitbar and the tops of the BottomControls to the bottom of the splitbar. Known bugs. 1. Currently the splitbar control brings itself to the top when a user moves it. This was intended to make using the control easier, but it will hide any labels contained in the control. I think thats it, if you find more please let me know. Also, please send me any ideas you may have to make this control better.

5_2007-2008 #191606
DataGridViewPrinter Class

Please refer to the following url for more details on how to use the class: http://www.codeproject.com/csharp/datagridviewprinter.asp The Class Features: (1) The print style is almost the same as the style of the DataGridView control: (A) the same font style for the header and other rows, (B) the same foreground and background styles for the header and other rows, (C) the same alternating background style for the rows, (D) special font for certain rows will be considered, (E) special foreground and background styles for certain rows will be considered, (F) the same alignment for the columns. (2) Supports multiple pages. (3) The width of each column to be printed is calculated to fit all the cells (including the header cell). (4) The title at the top of the page can be specified. (5) The title font and color could be specified. (6) The title and the header row are repeated in each page. (7) The report could be top-centered (considering the top margin of the page) on the page or be aligned to the top-left margin. (8) The printing process ignores any invisible rows or columns (assuming that the user does not want them to appear). (9) If the DataGridView width is greater than the page width, then the columns with x coordinate greater than the page width will be printed into another page. This ensures that all columns will be printed (Thanks to Stephen Long). (10) Support page numbering. (11) The printing process uses Graphics.MeasureString to calculate the height and width for a certain text with a specified font. This ensures the preciseness of the printing. (12) The class supports Right-to-Left fonts.

6_2008-2009 #205122
SplitBar

This control makes it very easy to add a horizontal split bar to your application. Eventually this control will include vertical splitbars as well. To use this control: 1. Place the control on a form. 2. Place controls above and below the splitbar control. This control needs at least one control above it and one control below it to function. The idea is that instead of using code to set the maximum and minimum scrolling positions controls are used instead. This makes it easy to visualize the range of motion for the control. Also, you can reposition the controls in response to form resize events, and the splitbar will use the new positions. Controls that are used only for setting splitbar ranges can be hidden at run time. In the future I will probaly change this so that the splitbar uses its current position for the maximum top or maximum bottom position if no controls are added to the top or bottom. 3. In the form load event add references to the controls to the splitbar using the AddControlTop and AddControlBottom events. i.e. splitbar1.AddControlTop Text1 splitbar1.AddControlBottom Text2 splitbar1.Update Calling splitbar.Update will align the bottom of all TopControls controls with the top of the splitbar and the tops of the BottomControls to the bottom of the splitbar. Known bugs. 1. Currently the splitbar control brings itself to the top when a user moves it. This was intended to make using the control easier, but it will hide any labels contained in the control. I think thats it, if you find more please let me know. Also, please send me any ideas you may have to make this control better.

6_2008-2009 #214124
DataGridViewPrinter Class

Please refer to the following url for more details on how to use the class: http://www.codeproject.com/csharp/datagridviewprinter.asp The Class Features: (1) The print style is almost the same as the style of the DataGridView control: (A) the same font style for the header and other rows, (B) the same foreground and background styles for the header and other rows, (C) the same alternating background style for the rows, (D) special font for certain rows will be considered, (E) special foreground and background styles for certain rows will be considered, (F) the same alignment for the columns. (2) Supports multiple pages. (3) The width of each column to be printed is calculated to fit all the cells (including the header cell). (4) The title at the top of the page can be specified. (5) The title font and color could be specified. (6) The title and the header row are repeated in each page. (7) The report could be top-centered (considering the top margin of the page) on the page or be aligned to the top-left margin. (8) The printing process ignores any invisible rows or columns (assuming that the user does not want them to appear). (9) If the DataGridView width is greater than the page width, then the columns with x coordinate greater than the page width will be printed into another page. This ensures that all columns will be printed (Thanks to Stephen Long). (10) Support page numbering. (11) The printing process uses Graphics.MeasureString to calculate the height and width for a certain text with a specified font. This ensures the preciseness of the printing. (12) The class supports Right-to-Left fonts.

7_2009-2012 #227640
SplitBar

This control makes it very easy to add a horizontal split bar to your application. Eventually this control will include vertical splitbars as well. To use this control: 1. Place the control on a form. 2. Place controls above and below the splitbar control. This control needs at least one control above it and one control below it to function. The idea is that instead of using code to set the maximum and minimum scrolling positions controls are used instead. This makes it easy to visualize the range of motion for the control. Also, you can reposition the controls in response to form resize events, and the splitbar will use the new positions. Controls that are used only for setting splitbar ranges can be hidden at run time. In the future I will probaly change this so that the splitbar uses its current position for the maximum top or maximum bottom position if no controls are added to the top or bottom. 3. In the form load event add references to the controls to the splitbar using the AddControlTop and AddControlBottom events. i.e. splitbar1.AddControlTop Text1 splitbar1.AddControlBottom Text2 splitbar1.Update Calling splitbar.Update will align the bottom of all TopControls controls with the top of the splitbar and the tops of the BottomControls to the bottom of the splitbar. Known bugs. 1. Currently the splitbar control brings itself to the top when a user moves it. This was intended to make using the control easier, but it will hide any labels contained in the control. I think thats it, if you find more please let me know. Also, please send me any ideas you may have to make this control better.

7_2009-2012 #236642
DataGridViewPrinter Class

Please refer to the following url for more details on how to use the class: http://www.codeproject.com/csharp/datagridviewprinter.asp The Class Features: (1) The print style is almost the same as the style of the DataGridView control: (A) the same font style for the header and other rows, (B) the same foreground and background styles for the header and other rows, (C) the same alternating background style for the rows, (D) special font for certain rows will be considered, (E) special foreground and background styles for certain rows will be considered, (F) the same alignment for the columns. (2) Supports multiple pages. (3) The width of each column to be printed is calculated to fit all the cells (including the header cell). (4) The title at the top of the page can be specified. (5) The title font and color could be specified. (6) The title and the header row are repeated in each page. (7) The report could be top-centered (considering the top margin of the page) on the page or be aligned to the top-left margin. (8) The printing process ignores any invisible rows or columns (assuming that the user does not want them to appear). (9) If the DataGridView width is greater than the page width, then the columns with x coordinate greater than the page width will be printed into another page. This ensures that all columns will be printed (Thanks to Stephen Long). (10) Support page numbering. (11) The printing process uses Graphics.MeasureString to calculate the height and width for a certain text with a specified font. This ensures the preciseness of the printing. (12) The class supports Right-to-Left fonts.

2002ASP #422
Form On Top (Your Application)

This ONE LINE of code will make a form stay on top of your application. This is good to use for toolbars, search forms, and so on. This WILL NOT make the form stay on top of all running applictions, only yours.

2002ASP #576
a 1 line code to keep a form on top within your ap

The purpose of this extremely small code is to take a form within your application and keep it on top of all the forms within your application. (Modal Forms) Note however that when you use this code, it will make all other forms in your application inaccessible until that form is closed. This is great for times when you have a form like starting a new game, or a form that tells about your program that you want to stay on top and "stop" your program until it is closed.

2002ASP #597
Always On Top

Keeps Your Form On Top This Is Really Kewl Because You Can Just Use A false attribuite to set it as not on top instead of using 2 functions

2002ASP #683
A small bit of code to make your form stay on top!

This code will make your form stay on top of any other windows running, just like winamp stays on top.

2002ASP #1399
Allow users to resize your controls

This simple API call with less than 10 lines allows your users to resize your controls just like in the design mode. The sample code provided here demonstrates left and right resizing on a control. You can further enhance it to allow top bottom, top-right, top-left resizing, and etc. This code was originally from Fran Pregernik, Zagreb, Croatia. This is pretty cool!

2002ASP #2228
Extending System Menu

This code example will append a separator and a new MenuItem 'Always on Top' to the system menu of any form. The menu is affected weather left clicked from the control box on the form or right clicked from the taskbar. Subclassing is used to trap when the 'Always on Top' item is clicked. The custom message handler uses the SetWindowPos function to keep window on top or reset it to normal. Also on a lark I traped out the close menu item to prompt before closing. If you say yes then the close message it passed otherwise the close message is traped out and the form stays open.

2002ASP #4292
Always On Top Class Module

This is a simple class module that wraps the Always On Top function to make your forms on top of others.

2002ASP #6473
FORM ALWAYS ON TOP, WORKS!!!Please Vote for this!

This code makes your form on Always on top. Its not like some other codes i saw recently. One only let your form be on top within your program. Another didn't work at all. This one does! DONT FORGET TO VOTE.

2002C #9026
Form On Top (Your Application)

This ONE LINE of code will make a form stay on top of your application. This is good to use for toolbars, search forms, and so on. This WILL NOT make the form stay on top of all running applictions, only yours.

2002C #9180
a 1 line code to keep a form on top within your ap

The purpose of this extremely small code is to take a form within your application and keep it on top of all the forms within your application. (Modal Forms) Note however that when you use this code, it will make all other forms in your application inaccessible until that form is closed. This is great for times when you have a form like starting a new game, or a form that tells about your program that you want to stay on top and "stop" your program until it is closed.

2002C #9201
Always On Top

Keeps Your Form On Top This Is Really Kewl Because You Can Just Use A false attribuite to set it as not on top instead of using 2 functions

2002C #9287
A small bit of code to make your form stay on top!

This code will make your form stay on top of any other windows running, just like winamp stays on top.

2002C #10003
Allow users to resize your controls

This simple API call with less than 10 lines allows your users to resize your controls just like in the design mode. The sample code provided here demonstrates left and right resizing on a control. You can further enhance it to allow top bottom, top-right, top-left resizing, and etc. This code was originally from Fran Pregernik, Zagreb, Croatia. This is pretty cool!

Languages
Top Categories
Global Discovery