Search:

Type: Posts; User: Tewl

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    15
    Views
    1,232

    Re: Navigating an XML structure - please help

    First off I don't really use VB much these days but this should do what you are asking. There are a few ways you can go about doing this, but I will show with xpath. Here is a simple console example....
  2. Replies
    0
    Views
    960

    Set control focus on viewmodel change

    Sorry I am rather new to WPF and MVVM, I have always stuck to WinForms but I am trying to make the switch. This might be something simple that I am overlooking.

    In my app I have the current...
  3. Read data from listview in external WPF application

    Can someone point me in the direction of how to read data in a control in another WPF application? I need to export the contents of a WPF application's custom listview control to a text file.
  4. Replies
    8
    Views
    1,159

    Re: Supressing pointless "errors"?

    I think you can disable/change these things in
    Options > Text Editor > (language) > Code Style
  5. Replies
    1
    Views
    614

    4.0 Re: Images not aligning with text in RTB

    Here is an example solution in order to better show what I am doing. 179522
  6. Re: Find an empty textbox on form and populate it with text

    I havent used VB in ages but a simple if-else statement would do this. In your form2 you would have something like this:



    Private Sub button1_Click(sender As Object, e As EventArgs) Handles...
  7. Re: System.ArgumentException any one please help me

    This line


    cm.Parameters.AddWithValue("@refno",txtrefno);

    txtrefno should be txtrefno.Text
  8. Replies
    1
    Views
    614

    4.0 Images not aligning with text in RTB

    I am working on a chat interface(w/ windows forms RTB) which has images (PNGs) for profiles and emojis to replace text. I have been using the clipboard paste method to insert the images but obviously...
  9. Re: Two bindings in the collection to bind to the same property

    What are you wanting to happen the second time you press the button?
  10. Replies
    0
    Views
    4,522

    Flicker resizing WPF control in Windows Form

    I am trying to host the WPF RichTextBox is my WinForm but I am having this issue when resizing the form.

    Add an ElementHost control to a WinForm, anchor to all sides of the form, add a new...
  11. Replies
    2
    Views
    6,321

    WPF RichTextbox - double click word selection

    Is there a property or a way to stop words from being selected when i double click?

    If i double click on "microsoft" in www.microsoft.com (as a hyperlink in the rtb) microsoft becomes the selected...
  12. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    I was experimenting with a new method of inserting the text and managed to get this which works really well altho it doesn't fix my issue with inserting urls that are in 2 different Runs but that is...
  13. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    It's the TextPointer that is null; it becomes null during the loop.
  14. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    I apparently the click event wouldnt fire. MouseLeftButtonDown however does. This fixes my main issue, now I just have to figure out how to insert the hyperlink to to text that is split into 2...
  15. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    Same result. Link is now grey. Updated screenshot above.
  16. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    Doing that removes all of the formatting
  17. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    I get the same result if I set the NavigateUri as well


    h = new Hyperlink(tp, tp.GetPositionAtOffset(uriText.Length));
    h.NavigateUri = new Uri(uriText);


    <Section...
  18. Replies
    7
    Views
    672

    Re: Public String

    Making the variables public only matters if you are passing an instance of the class itself. Otherwise just pass the variable by reference as dee-u stated.
  19. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    hmmm. I'm kind of lost as to what to do at this point.


    <Section xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xml:space="preserve" TextAlignment="Left" LineHeight="Auto"...
  20. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    Screenshot: Removed bandwidth issue
  21. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    Ok my next issue with this is putting in the Hyperlinks


    string uriText = GetUriText(tr.Text);

    Hyperlink h;

    while (uriText != string.Empty)
    ...
  22. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    I was having an issue understanding the TextPointers but I think I have it now.


    private void button1_Click(object sender, EventArgs e)
    {
    TextRange tr = new...
  23. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    I'm kinda of lost as to how to insert images and clickable urls with this method
  24. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    Thanks
  25. Replies
    24
    Views
    15,990

    Re: WPF RichTextBox Question

    On self input yes. Say I type in "Hello! :P" and my font I have selected is Tahoma and the color is black it will pass the folowing string to be formatted to the rtb.

    Tewl : Hello! :P
  26. Replies
    24
    Views
    15,990

    WPF RichTextBox Question

    Recently I have decided to switch from the Forms RichTextBox to the WPF RichTextBox for my chat client. I've been reading up on applying properties to the text. I've found that I can use 2 methods to...
  27. Replies
    4
    Views
    3,138

    Re: Clicking outside Control event?

    Well after about four and a half hours of trial and error I think I found something that does it.


    public partial class Form1 : Form
    {
    private string example = "Test String!";
    ...
  28. Replies
    4
    Views
    3,138

    Re: Clicking outside Control event?

    So, LostFocus only fires when I click on another control that can recieve focus. I need to find a way to find out when they click on controls that cannot without having to write an event for each...
  29. Replies
    4
    Views
    3,138

    Re: Clicking outside Control event?

    This is an example.


    public partial class Form1 : Form
    {
    private string example = "Test String!";
    public Form1()
    {
    InitializeComponent();
    ...
  30. Replies
    4
    Views
    3,138

    [RESOLVED] Clicking outside Control event?

    I've got a Label and a RichTextBox occupying the same location. When the user clicks on the label it sets the label's visible to false and sets the richtextbox visible property to true. You've...
  31. Replies
    8
    Views
    965

    Re: LinkClicked, double click

    The control is a RichTextBox not a LinkLabel. The RTB is the display interface for the application.

    Screenshot: here
  32. Replies
    8
    Views
    965

    Re: LinkClicked, double click

    First thank you both for replying.

    Negative:
    That is almost perfect. My only issue with that is. Say the user single clicks (on accident or not) a link then double clicks somewhere else in the...
  33. Replies
    8
    Views
    965

    LinkClicked, double click

    I am trying to get links to open only when I double click the link.


    private void rtbOutput_LinkClicked(object sender, LinkClickedEventArgs e)
    {
    long interval =...
  34. Replies
    1
    Views
    2,539

    Re: [3.0/LINQ] Undo operation error

    Ok new development. I managed to get rid of this exception by creating a Callback in the main form and using it to open the dialog.

    HOWEVER, I just realized that ShowDialog prevents data being...
  35. Replies
    1
    Views
    2,539

    Undo Operation Error

    System.InvalidOperationException was unhandled
    Message="The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is...
  36. Re: [3.0/LINQ] RichTextBox Right Click?

    Thanks
  37. [RESOLVED][3.0/LINQ] RichTextBox Right Click?

    void richTextBox1_MouseClick(object sender, MouseEventArgs e)
    {
    MessageBox.Show(e.Button.ToString());
    }

    Can anyone tell me why this doesn't fire a message when I...
  38. Re: [3.0/LINQ] How to get word in RTB that mouse is over

    I managed to sort it on my own. Here is an example of what I was looking for.


    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using...
  39. [RESOLVED][3.0/LINQ] How to get word in RTB that mouse is over

    What I am trying to do is find the word that I hover the mouse over and rest it against a list of keywords. I've googled around trying to find some information on how to do this but have only come up...
  40. Replies
    5
    Views
    703

    Re: [3.0/LINQ] C# Script?

    That works, thanks!
Results 1 to 40 of 188
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width