Click here to Skip to main content
15,905,875 members
Home / Discussions / C#
   

C#

 
AnswerRe: SendMessage Function (Sub in C#) Pin
wienzzz17-Sep-07 22:49
wienzzz17-Sep-07 22:49 
QuestionRe: SendMessage Function (Sub in C#) Pin
Programm3r17-Sep-07 22:57
Programm3r17-Sep-07 22:57 
AnswerRe: SendMessage Function (Sub in C#) Pin
Luc Pattyn17-Sep-07 23:00
sitebuilderLuc Pattyn17-Sep-07 23:00 
GeneralRe: SendMessage Function (Sub in C#) Pin
wienzzz17-Sep-07 23:07
wienzzz17-Sep-07 23:07 
GeneralRe: SendMessage Function (Sub in C#) Pin
Programm3r17-Sep-07 23:07
Programm3r17-Sep-07 23:07 
GeneralRe: SendMessage Function (Sub in C#) Pin
Martin#17-Sep-07 23:14
Martin#17-Sep-07 23:14 
GeneralRe: SendMessage Function (Sub in C#) Pin
Programm3r17-Sep-07 23:20
Programm3r17-Sep-07 23:20 
GeneralRe: SendMessage Function (Sub in C#) Pin
Luc Pattyn17-Sep-07 23:17
sitebuilderLuc Pattyn17-Sep-07 23:17 
GeneralRe: SendMessage Function (Sub in C#) Pin
Giorgi Dalakishvili17-Sep-07 23:17
mentorGiorgi Dalakishvili17-Sep-07 23:17 
GeneralRe: SendMessage Function (Sub in C#) Pin
Programm3r17-Sep-07 23:21
Programm3r17-Sep-07 23:21 
QuestionMessageBox From Windows Service Pin
Programm3r18-Sep-07 0:04
Programm3r18-Sep-07 0:04 
AnswerRe: MessageBox From Windows Service Pin
Big Daddy Farang18-Sep-07 7:13
Big Daddy Farang18-Sep-07 7:13 
AnswerExtra code if needed Pin
jblouir17-Sep-07 22:06
jblouir17-Sep-07 22:06 
GeneralUsing collection class in struct Pin
J a a n s17-Sep-07 22:22
professionalJ a a n s17-Sep-07 22:22 
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 

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.