Latest News

  • Silverlight Online Chat
    Jul 24, 2010

    Today we launch the new Silverlight Live Chat application demonstrating the Liquid RichTextBox and Emoticon replacements.

  • New Super Shoot Em Up 2 Game
    Jun 29, 2010

    Added to the Games section is the new Super Shoot 'Em Up 2 game. Take control of your tank with the aim to defeat the computer controlled opponents. Features all new weapons, levels and Battle Mode!

  • Silverlight 4 Controls V5.3.2 Released
    Jun 28, 2010

    This release contains several fixes raised in the forums.

  • New Sandmania Puzzle Game
    Jun 18, 2010

    Sandmania is the latest game from vectorlight, the aim of this game is to guide sand from the top of the screen to the various colored containers below.

  • New Moon Tower Defense Game
    May 29, 2010

    Added to the Games section is the new Moon Tower Defense game. Defend the Moon from the circling Aliens and Humans.

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!

 
 

Rate this page: 

1 Star 2 Star 3 Star 4 Star 5 Star
8 Ratings / 2.5 Average