Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Rockallica

@Rockallica
About
Posts
6
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C# Set voice in Text to Speech
    R Rockallica

    I see. Thanks!

    C# question csharp

  • C# Set voice in Text to Speech
    R Rockallica

    Hi, How do I set the voice in Text to Speech in C#? I have a toolStripMenu that I load the voices into. Then when one is chosen, I want it to use that voice. Haven't been able to figure set the voice to the chosen name. Thanks.

    private void Get_Voices()
    {
    ISpeechObjectTokens voices = objSpeech.GetVoices("", "");

    foreach (ISpeechObjectToken v in voices)
    {
              ts\_Menu = new ToolStripMenuItem();
    
               v\_name = v.GetDescription(0);
    
               ts\_Menu.Text = v\_name;
    
               ts\_Menu.CheckOnClick = true;
    
               voicesToolStripMenu.DropDownItems.Add(ts\_Menu);
               
                ts\_Menu.Click += voice\_Menu\_Click;
     }
    

    }

    private void voice_Menu_Click(object sender, EventArgs e)
    {
    ToolStripMenuItem item = sender as ToolStripMenuItem;
    foreach (ToolStripMenuItem tempItemp in voicesToolStripMenu.DropDownItems)
    {

             if (tempItemp == item)
             {
                   tempItemp.Checked = true;
              } 
               else
               {
                   tempItemp.Checked = false;
                } 
           }
    
           choosen\_voice = sender.ToString();
    

    }

    private void Speak(string txt)
    {

     SpVoice objSpeech = new SpVoice();
    
     objSpeech.Speak(txt, SpeechVoiceSpeakFlags.SVSFlagsAsync);
            
     objSpeech.WaitUntilDone(Timeout.Infinite);
    

    }

    C# question csharp

  • Toolbar DropDownButton
    R Rockallica

    Hi, I've add a dropdownbutton to my toolbar(FontSize_TB) that I'm using for a font size selection. (desktop app) When my app loads up I fill it with a certain range of font sizes. How do I get the chosen size from the dropdownbutton ? Also is there a way to center the items in a toolbar? Thanks. :)

    Windows Forms question

  • Toolbar Dropdown button
    R Rockallica

    Hi, I've add a dropdownbutton to my toolbar(FontSize_TB) that I'm using for a font size selection. (desktop app) When my app loads up I fill it with a certain range of font sizes. How do I get the chosen size from the dropdownbutton ? Also is there a way to center the items in a toolbar? Thanks. :)

    C# question

  • Rotate text
    R Rockallica

    Awesome! Just what I needed. Thanks!

    JavaScript javascript tools tutorial

  • Rotate text
    R Rockallica

    Hi, New here. Anyway I'm working on a project and I'm placing some text over some images. All is good with that. However I only want to rotate the text 35 degrees but I can't figure how to do that in Javascript. Here is how I'm displaying the text -

    const ctxt = canvas.getContext('2d');
    ctxt.fillStyle = 'red';
    ctxt.font = '40px Brush Script MT';
    ctxt.fillText('TEST',200,178);

    Thanks.

    JavaScript javascript tools tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups