Latest News

  • New Rich Text Editor User Control
    Feb 19, 2010

    By popular request, here we present a re-usable User Control containing the Liquid RichTextBox along with the most common formatting functions included.

  • Silverlight 3 Controls V5.2.7 Released
    Feb 19, 2010

    This release includes several fixes for issues raised in the forum. The main improvement is to the RichTextBox which now provides access and methods to the document elements allowing...

  • Super Shoot Em Up Game
    Feb 04, 2010

    Added to the games section is the new Super Shoot 'Em Up game. Take control of a tank with your aim being to blow up your opposing tanks and collect all the powerups.

  • Silverlight 3 Controls V5.2.6 Released
    Feb 04, 2010

    This release includes some minor fixes for several forum posts. Please see the notes on the download page for full details on what has changed.

  • Chaos Tournament Game
    Jan 24, 2010

    Launched today is the new Games section which contains the new Silverlight only Chaos Tournament game. This game is a remake of a classic 1985 ZX Spectrum game Chaos.

jun.skydefender
jun.skydefender
How To Update the text? Posted: Jan 28, 2010
 

if I do this:

private void Cut_Click(object sender, RoutedEventArgs e)

        {

            richTextBox.Text="123456";

        }

After click Cut button ,the text of the richtextbox is "123456", and that displayed.


but if I do the operation follow:

public void UpdateScript()

        {            

            richTextBox.Text = "123456";        

          

        }

There is no change,the text not displayed.


How can I resolve this problem?

Thank you


 
 
dan
dan
RE: How To Update the text? Posted: Jan 30, 2010
 

Hi,


To start with the Text property should not be used to set the text content.  The RichTextBox inherits from the standard TextBox control and the Text property cannot be used.  If you wish to set the content whether it is to plain text or html you should use the Load() method.


Thanks!

 
 
jun.skydefender
jun.skydefender
RE: How To Update the text? Posted: Jan 31, 2010
 

Thanks!


But even though I used the Load() method, the text also not displayed.


The code as follow:


public void UpdateScript()

        {

            richTextBox.Load(Format.Text, "123456");            

        }


 
 
dan
dan
RE: How To Update the text? Posted: Feb 06, 2010
 

Hi,


Okay I cant reproduce this can you provide a sample project that demonstrates the problem?  Any example can be emailed to support@vectorlight.net.


Thanks!