Click here to Skip to main content
15,895,011 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: problem while attaching aspnet_wp to web application. Pin
Vikas_Goyal2-Jan-07 21:46
Vikas_Goyal2-Jan-07 21:46 
QuestionConvert a Bitmap array to a single Gif image and save to file Pin
Polymorpher24-Dec-06 11:58
Polymorpher24-Dec-06 11:58 
QuestionEditing .CS codefile through reflection? Pin
PhrankBooth24-Dec-06 4:30
PhrankBooth24-Dec-06 4:30 
AnswerRe: Editing .CS codefile through reflection? Pin
Dave Kreskowiak24-Dec-06 6:05
mveDave Kreskowiak24-Dec-06 6:05 
QuestionVideo and .Net Framework Pin
Silver Illussion24-Dec-06 3:31
Silver Illussion24-Dec-06 3:31 
QuestionSet cursor into the TextBox after TextBox is being visible Pin
farwardin22-Dec-06 11:52
farwardin22-Dec-06 11:52 
QuestionScrolling in RichTextBox [modified] Pin
farwardin22-Dec-06 11:45
farwardin22-Dec-06 11:45 
AnswerRe: Scrolling in RichTextBox Pin
Luc Pattyn22-Dec-06 13:17
sitebuilderLuc Pattyn22-Dec-06 13:17 
I had the same problem with a listbox: I do not know a way to have it scroll automatically
to keep the bottom line visible, so this is what I came up with (and I assume something
similar applies to a RichTextBox):

public void Output(string s) {
	lb.Items.Add(s);
	// force maximum vertical scroll unless mouse button is pressed
	// (so we can operate the lift to concentrate on some part of the output)
	if (Control.MouseButtons==MouseButtons.None) {
		lb.TopIndex=lb.Items.Count-1;
	}
}


BTW: the value for the top index is not correct
(it should actually be Items.Count - numberOfLinesVisibleInListbox)
but it works just fine as is, so why bother. (But the -1 is necessary).

Smile | :)


Luc Pattyn

QuestionToolboxBitmap for CF component? Pin
Ariston Darmayuda22-Dec-06 6:15
Ariston Darmayuda22-Dec-06 6:15 
AnswerRe: ToolboxBitmap for CF component? Pin
Dave Kreskowiak22-Dec-06 7:10
mveDave Kreskowiak22-Dec-06 7:10 
GeneralRe: ToolboxBitmap for CF component? Pin
Ariston Darmayuda23-Dec-06 4:06
Ariston Darmayuda23-Dec-06 4:06 
GeneralRe: ToolboxBitmap for CF component? Pin
Dave Kreskowiak23-Dec-06 9:57
mveDave Kreskowiak23-Dec-06 9:57 
GeneralRe: ToolboxBitmap for CF component? Pin
Cleber Movio3-Mar-11 12:16
Cleber Movio3-Mar-11 12:16 
QuestionHow to read a exact word in a text file using c# Pin
NK722-Dec-06 0:20
NK722-Dec-06 0:20 
AnswerRe: How to read a exact word in a text file using c# Pin
Pete O'Hanlon22-Dec-06 0:29
mvePete O'Hanlon22-Dec-06 0:29 
AnswerRe: How to read a exact word in a text file using c# Pin
gnadeem23-Dec-06 8:27
gnadeem23-Dec-06 8:27 
QuestionNET remoting Pin
vanolviv21-Dec-06 22:36
vanolviv21-Dec-06 22:36 
AnswerRe: NET remoting Pin
vanolviv22-Dec-06 0:51
vanolviv22-Dec-06 0:51 
QuestionReaderWriterLock [modified] Pin
Hendrik Debedts21-Dec-06 10:03
Hendrik Debedts21-Dec-06 10:03 
QuestionNET remoting Pin
vanolviv21-Dec-06 4:01
vanolviv21-Dec-06 4:01 
AnswerRe: NET remoting Pin
vanolviv21-Dec-06 4:57
vanolviv21-Dec-06 4:57 
Questionhow to load the previously hidden form in C# Pin
NK721-Dec-06 0:28
NK721-Dec-06 0:28 
AnswerRe: how to load the previously hidden form in C# Pin
Keith Malwitz21-Dec-06 2:02
Keith Malwitz21-Dec-06 2:02 
GeneralRe: how to load the previously hidden form in C# Pin
Christian Graus21-Dec-06 19:40
protectorChristian Graus21-Dec-06 19:40 
QuestionList.BinarySearch results... Pin
Paul Selormey20-Dec-06 23:55
Paul Selormey20-Dec-06 23:55 

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.