Search:
Type: Posts; User: Tewl
Search:
Search took 0.25 seconds.
-
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....
-
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...
-
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.
-
I think you can disable/change these things in
Options > Text Editor > (language) > Code Style
-
Here is an example solution in order to better show what I am doing. 179522
-
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...
-
This line
cm.Parameters.AddWithValue("@refno",txtrefno);
txtrefno should be txtrefno.Text
-
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...
-
What are you wanting to happen the second time you press the button?
-
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...
-
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...
-
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...
-
It's the TextPointer that is null; it becomes null during the loop.
-
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...
-
Same result. Link is now grey. Updated screenshot above.
-
Doing that removes all of the formatting
-
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...
-
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.
-
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"...
-
Screenshot: Removed bandwidth issue
-
Ok my next issue with this is putting in the Hyperlinks
string uriText = GetUriText(tr.Text);
Hyperlink h;
while (uriText != string.Empty)
...
-
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...
-
I'm kinda of lost as to how to insert images and clickable urls with this method
-
-
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
-
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...
-
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!";
...
-
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...
-
This is an example.
public partial class Form1 : Form
{
private string example = "Test String!";
public Form1()
{
InitializeComponent();
...
-
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...
-
The control is a RichTextBox not a LinkLabel. The RTB is the display interface for the application.
Screenshot: here
-
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...
-
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 =...
-
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...
-
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...
-
-
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...
-
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...
-
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...
-
|
Click Here to Expand Forum to Full Width
|