Click here to Skip to main content
15,887,434 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using collection class in struct Pin
jblouir17-Sep-07 22:37
jblouir17-Sep-07 22:37 
GeneralDidnt work :o( Pin
jblouir17-Sep-07 23:56
jblouir17-Sep-07 23:56 
Generaland again Pin
jblouir18-Sep-07 0:10
jblouir18-Sep-07 0:10 
GeneralSolution! Cant use any arrays in struct. Pin
jblouir18-Sep-07 0:13
jblouir18-Sep-07 0:13 
QuestionGridView in C#. Only alternate colum gets binded in DataControlRowState Pin
Bino B17-Sep-07 21:45
Bino B17-Sep-07 21:45 
AnswerRe: GridView in C#. Only alternate colum gets binded in DataControlRowState Pin
Virendrak18-Sep-07 2:02
Virendrak18-Sep-07 2:02 
GeneralRe: GridView in C#. Only alternate colum gets binded in DataControlRowState Pin
Bino B19-Sep-07 16:38
Bino B19-Sep-07 16:38 
QuestionProblem with the scrollbar which is attached to a textbox Pin
kandy_soliton17-Sep-07 21:40
kandy_soliton17-Sep-07 21:40 
Hi All,

I am facing problem with the text box whose scrollbars property is enabled to "both".

The Problem is when i retrieve data from a file and show its content in the textbox above specified, I allow the user to type and I have written a small module which when user types "enter" key the format(that is number of tabs or spaces) present in the previous line will be applied to the new line created.

To say it in simple words it is little like the c# programming environment regarding the paragraph indentations it provides to us when we type enter key.

Since I wanted to add text in the textbox in any place where user wish, i am retrieving the text and doing my operations and i put the updated one back to the textbox.

In the above case when data is too large so the scrollbar is active,since i am adding the text in the textbox, the scrollbar is showing the first position though the cursor is blinking in the nextpage.

when I attempt to write it scrollbar moves and it is showing the place where cursor is moving,the moment i type enter it is doing the same i told above. so it is giving a flickering effect. It is annoying a lot.

I had used richtextbox and all those suspendlayout and resumelayout.

Here is my code

\\ code

richTextBox1.SuspendLayout();

\\ gets the current position

iPosition = richTextBox1.SelectionStart;

\\ finds the format of the previous line and stores that in formatpattern string

FormatPattern = FindFormatPattern(richTextBox1.Text, iPosition - 2);

\\ here am adding it in the textbox

richTextBox1.Text = richTextBox1.Text.Insert(iPosition,FormatPattern);

\\ setting the current position



richTextBox1.Select(iPosition + FormatPattern.Length, 0);

richTextBox1.ResumeLayout(true);

\\ code ends



Thanks In Advance

kandy




kandy
Questionhow to change the label value of mdi child form from non-mdi form Pin
mukesh choudhary17-Sep-07 21:14
mukesh choudhary17-Sep-07 21:14 
AnswerRe: how to change the label value of mdi child form from non-mdi form Pin
Pete O'Hanlon18-Sep-07 2:36
mvePete O'Hanlon18-Sep-07 2:36 
GeneralRe: how to change the label value of mdi child form from non-mdi form Pin
mukesh choudhary20-Sep-07 4:55
mukesh choudhary20-Sep-07 4:55 
QuestionContext Menu in List view Pin
M. J. Jaya Chitra17-Sep-07 21:14
M. J. Jaya Chitra17-Sep-07 21:14 
Questionadding controls to an invisible control Pin
cignox117-Sep-07 21:12
cignox117-Sep-07 21:12 
AnswerRe: adding controls to an invisible control Pin
Luc Pattyn17-Sep-07 23:03
sitebuilderLuc Pattyn17-Sep-07 23:03 
GeneralRe: adding controls to an invisible control Pin
cignox117-Sep-07 23:36
cignox117-Sep-07 23:36 
GeneralRe: adding controls to an invisible control Pin
Luc Pattyn17-Sep-07 23:50
sitebuilderLuc Pattyn17-Sep-07 23:50 
AnswerRe: adding controls to an invisible control Pin
Big Daddy Farang18-Sep-07 7:37
Big Daddy Farang18-Sep-07 7:37 
GeneralRe: adding controls to an invisible control Pin
cignox118-Sep-07 20:37
cignox118-Sep-07 20:37 
GeneralRe: adding controls to an invisible control Pin
Big Daddy Farang19-Sep-07 7:28
Big Daddy Farang19-Sep-07 7:28 
QuestionDatabase problem Pin
Nishad8517-Sep-07 20:45
Nishad8517-Sep-07 20:45 
AnswerRe: Database problem Pin
Paul Conrad23-Sep-07 6:44
professionalPaul Conrad23-Sep-07 6:44 
QuestionRichTextBox Pin
mihksoft17-Sep-07 20:22
mihksoft17-Sep-07 20:22 
AnswerRe: RichTextBox Pin
wienzzz17-Sep-07 22:27
wienzzz17-Sep-07 22:27 
QuestionHow Yahoo messenger photo sharing works Pin
Lilupa17-Sep-07 20:20
Lilupa17-Sep-07 20:20 
QuestionGetting a variant containing safe array of Double Values from MFC ActiveX in C#? Pin
ss43117-Sep-07 20:11
ss43117-Sep-07 20:11 

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.