Click here to Skip to main content
15,889,877 members
Home / Discussions / C#
   

C#

 
QuestionHow Can I Read Z- Segment In HL7 result message using Nhapi (ZPS)...? Pin
Member 1118592328-Oct-14 2:45
Member 1118592328-Oct-14 2:45 
AnswerRe: How Can I Read Z- Segment In HL7 result message using Nhapi (ZPS)...? Pin
Pete O'Hanlon28-Oct-14 3:03
mvePete O'Hanlon28-Oct-14 3:03 
AnswerRe: How Can I Read Z- Segment In HL7 result message using Nhapi (ZPS)...? Pin
BillWoodruff28-Oct-14 3:31
professionalBillWoodruff28-Oct-14 3:31 
AnswerRe: How Can I Read Z- Segment In HL7 result message using Nhapi (ZPS)...? Pin
Bernhard Hiller28-Oct-14 22:16
Bernhard Hiller28-Oct-14 22:16 
Questionword Wrapping in richtextbox using C# Pin
verenaJam27-Oct-14 22:56
verenaJam27-Oct-14 22:56 
AnswerRe: word Wrapping in richtextbox using C# Pin
BillWoodruff28-Oct-14 1:07
professionalBillWoodruff28-Oct-14 1:07 
GeneralRe: word Wrapping in richtextbox using C# Pin
verenaJam28-Oct-14 18:25
verenaJam28-Oct-14 18:25 
GeneralRe: word Wrapping in richtextbox using C# Pin
BillWoodruff28-Oct-14 20:57
professionalBillWoodruff28-Oct-14 20:57 
So, have you started trying to code the behavior you want ? Have any questions ?

One difficulty you may need to address is the fact that the RichTextBox performs no notification when a word-wrap is performed: it inserts no special character in the string. That means if you need to dynamically detect word-wrap you are going to have to use Win API calls. For an example, see: [^].

Here's a quick sketch ... just to show an idea ... in code of the kind of processing I expect you will be doing as the user types in the RichTextBox:
C#
private int whiteSpaceSeenSoFar = 0;

private void handleEnterReturn()
{
    // ??
}

private void YourRichTextBox_KeyUp(object sender, KeyEventArgs e)
{
    switch (e.KeyCode)
    {
        case Keys.OemPeriod:
            // handlePeriodEntered
            break;
        case Keys.Enter: // or the 'Return key
            handleEnterReturn();
            break;
        case Keys.Tab:
            // handle if AcceptsTab is set to 'true ?
            //handleTab();
            break;
        case Keys.Space:
            whiteSpaceSeenSoFar++;
            break;
        case Keys.Back:
            // handle backspace ?
            break;
        case Keys.Delete:
            // handle delete ?
            break;
        default:
            // every other character
            break;
    }
}

« I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"


modified 29-Oct-14 5:50am.

AnswerRe: word Wrapping in richtextbox using C# Pin
Vitor Breno28-Oct-14 9:04
Vitor Breno28-Oct-14 9:04 
GeneralRe: word Wrapping in richtextbox using C# Pin
verenaJam28-Oct-14 18:18
verenaJam28-Oct-14 18:18 
SuggestionMaking charts with pdfsharp Pin
Mol4ok27-Oct-14 5:30
Mol4ok27-Oct-14 5:30 
GeneralRe: Making charts with pdfsharp Pin
Richard Deeming27-Oct-14 9:49
mveRichard Deeming27-Oct-14 9:49 
GeneralRe: Making charts with pdfsharp Pin
Mol4ok27-Oct-14 17:09
Mol4ok27-Oct-14 17:09 
GeneralRe: Making charts with pdfsharp Pin
Richard Deeming28-Oct-14 2:12
mveRichard Deeming28-Oct-14 2:12 
GeneralRe: Making charts with pdfsharp Pin
Mol4ok28-Oct-14 3:24
Mol4ok28-Oct-14 3:24 
GeneralRe: Making charts with pdfsharp Pin
Gerry Schmitz27-Oct-14 22:35
mveGerry Schmitz27-Oct-14 22:35 
GeneralRe: Making charts with pdfsharp Pin
Mol4ok28-Oct-14 2:11
Mol4ok28-Oct-14 2:11 
GeneralRe: Making charts with pdfsharp Pin
Gerry Schmitz28-Oct-14 9:45
mveGerry Schmitz28-Oct-14 9:45 
QuestionExpression to Check for a String Value in All Properties of a Type Pin
Agent__00727-Oct-14 1:42
professionalAgent__00727-Oct-14 1:42 
AnswerRe: Expression to Check for a String Value in All Properties of a Type Pin
Eddy Vluggen28-Oct-14 9:09
professionalEddy Vluggen28-Oct-14 9:09 
GeneralRe: Expression to Check for a String Value in All Properties of a Type Pin
Agent__00728-Oct-14 17:24
professionalAgent__00728-Oct-14 17:24 
GeneralRe: Expression to Check for a String Value in All Properties of a Type Pin
Eddy Vluggen29-Oct-14 8:57
professionalEddy Vluggen29-Oct-14 8:57 
AnswerRe: Expression to Check for a String Value in All Properties of a Type Pin
Alaric_28-Oct-14 10:22
professionalAlaric_28-Oct-14 10:22 
GeneralRe: Expression to Check for a String Value in All Properties of a Type Pin
Agent__00728-Oct-14 17:26
professionalAgent__00728-Oct-14 17:26 
AnswerRe: How I Got it (Partially) Done Pin
Agent__00728-Oct-14 17:08
professionalAgent__00728-Oct-14 17:08 

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.