Click here to Skip to main content
15,897,334 members
Home / Discussions / C#
   

C#

 
GeneralGeting the Row count in response to RowDeleted Pin
stephen woolhead17-Jan-03 6:22
stephen woolhead17-Jan-03 6:22 
GeneralRe: Geting the Row count in response to RowDeleted Pin
Stephane Rodriguez.17-Jan-03 21:41
Stephane Rodriguez.17-Jan-03 21:41 
GeneralRe: Geting the Row count in response to RowDeleted Pin
stephen woolhead18-Jan-03 1:34
stephen woolhead18-Jan-03 1:34 
QuestionPanel with labels on them - Who Clicked me? Pin
S S Basra17-Jan-03 4:16
S S Basra17-Jan-03 4:16 
AnswerRe: Panel with labels on them - Who Clicked me? Pin
Nnamdi Onyeyiri19-Jan-03 3:05
Nnamdi Onyeyiri19-Jan-03 3:05 
GeneralRe: Panel with labels on them - Who Clicked me? Pin
S S Basra19-Jan-03 21:20
S S Basra19-Jan-03 21:20 
GeneralScrollbox - View Caret Position / Listbox - No Scrollbars Pin
MrEyes17-Jan-03 2:27
MrEyes17-Jan-03 2:27 
GeneralRe: Scrollbox - View Caret Position / Listbox - No Scrollbars Pin
Stephane Rodriguez.18-Jan-03 1:53
Stephane Rodriguez.18-Jan-03 1:53 
MrEyes wrote:
1) Textbox
How can you get a Textbox to scroll to its last line? i.e. displaying the last line added to the control via .AppendText (setting focus using .focus & .ScrolltoCaret doesnt work)

In an ideal world I would prefer to use a listbox with all scrollbars disabled but I cannot find any docs about this. With regards to the textbox problem it would seem this is an MS "feature" :

http://www.dotnet247.com/247reference/msgs/5/25733.aspx




When MS says something is by design, they are not saying that you can't override the TextBoxBase.ScrollToCaret() class method and provide your own implementation, especially when you know the default implementation only does a SendMessage(hWnd, EM_SCROLLCARET, 0, 0), which is a WIN32 message sent to the underlying WIN32 editbox.
After all, make sure you have a working WIN32 implementation, and then add SendMessage calls to your C# app. You don't even need to override the TextBox classes (TextBox and/or TextBoxBase), although it is better to do so in terms of object-oriented spirit.


MrEyes wrote:
2) Listbox
How can you permanently disable the vertical scrollbar on the listbox?


Same here. In addition, how can you think about a listbox without a scrollbar? How do you reach non visible items without the scrollbar (and without a keyboard of course) ? That would be pretty much non-standard UI. But heck, you choose. Just create your own System.Windows.Control derived class, and make sure to properly set the createparams property (that's a simple class wrapper which stores all standard WIN32 styles).


Good luck!
GeneralBidirectional TCP Genuine Channels are Available. Pin
Bill200217-Jan-03 0:13
Bill200217-Jan-03 0:13 
GeneralRe: dynamically creating & modfying XML file using C# Pin
David Stone17-Jan-03 4:37
sitebuilderDavid Stone17-Jan-03 4:37 
GeneralProcess Filename Pin
CyberKewl16-Jan-03 21:59
CyberKewl16-Jan-03 21:59 
GeneralRe: Process Filename Pin
Nnamdi Onyeyiri19-Jan-03 2:58
Nnamdi Onyeyiri19-Jan-03 2:58 
GeneralRe: Process Filename Pin
CyberKewl19-Jan-03 3:49
CyberKewl19-Jan-03 3:49 
GeneralRe: Process Filename Pin
Nnamdi Onyeyiri19-Jan-03 3:50
Nnamdi Onyeyiri19-Jan-03 3:50 
GeneralSockets && Detecting FileSent Completion Pin
gekoscan16-Jan-03 12:52
gekoscan16-Jan-03 12:52 
GeneralRe: Sockets && Detecting FileSent Completion Pin
David Stone16-Jan-03 13:03
sitebuilderDavid Stone16-Jan-03 13:03 
GeneralRe: Sockets && Detecting FileSent Completion Pin
Nick Parker17-Jan-03 17:31
protectorNick Parker17-Jan-03 17:31 
GeneralTelnet Pin
David Stone16-Jan-03 11:44
sitebuilderDavid Stone16-Jan-03 11:44 
GeneralRe: Telnet Pin
Nnamdi Onyeyiri19-Jan-03 2:53
Nnamdi Onyeyiri19-Jan-03 2:53 
AnswerRe: Fullscreen forms? Pin
p daddy16-Jan-03 6:18
p daddy16-Jan-03 6:18 
GeneralRe: Fullscreen forms? Pin
Heath Stewart16-Jan-03 11:30
protectorHeath Stewart16-Jan-03 11:30 
GeneralRe: Fullscreen forms? Pin
p daddy16-Jan-03 22:21
p daddy16-Jan-03 22:21 
GeneralRe: Fullscreen forms? Pin
Zibar16-Jan-03 22:34
sussZibar16-Jan-03 22:34 
AnswerRe: Fullscreen forms? Pin
Uwe Keim18-Jan-03 1:19
sitebuilderUwe Keim18-Jan-03 1:19 
GeneralRelative path to Web Services from a .NET Winform Pin
shanelhatcher16-Jan-03 5:31
shanelhatcher16-Jan-03 5:31 

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.