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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

treah

@treah
About
Posts
14
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • mouse enter event [modified]
    T treah

    now plz check this out private void button5_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new SoundPlayer(); b=1 if (a == 1) { player.SoundLocation = "C:\\WINDOWS\\Media\\tada.wav"; player.Play(); } } private void tsbutton_MouseEnter(object sender,EventArgs e) { System.Media.SoundPlayer player = new SoundPlayer(); a = 1; if (b == 1) { player.SoundLocation = "C:\\WINDOWS\\Media\\tada.wav"; player.Play(); } } :rolleyes:

    C# help

  • mouse enter event [modified]
    T treah

    hi, i have to play sound when user enter the mouse on toolstrip button,i have written followin code but it is not working.plzz help me out where is the problem:confused: private void button5_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new SoundPlayer(); b=1 if (a == 1) { player.SoundLocation = "C:\\WINDOWS\\Media\\tada.wav"; player.Play(); } } private void tsbutton_MouseEnter(object sender,EventArgs e) { System.Media.SoundPlayer player = new SoundPlayer(); a = 1; if (b == 1) { player.SoundLocation = "C:\\WINDOWS\\Media\\tada.wav"; player.Play(); } } thanks -- modified at 4:33 Saturday 14th July, 2007

    C# help

  • focus on text boxes
    T treah

    hi, can u provide me some chunk of code.how i use GOTFOCUS.:doh: thanks :)

    C# help question

  • focus on text boxes
    T treah

    hi, I have developed an application.i have to provide audio help of a software. when the user put the focus on any textbox.i have to provide adiou help for that particular text box.i have written following code: private void audiobtn_Click(object sender, EventArgs e) { if (txtbox1.Focus()) { System.Media.SoundPlayer myPlayer = new System.Media.SoundPlayer(); myPlayer.SoundLocation = "C:\\WINNT\\Media\\recycle.wav"; myPlayer.Play(); } if(txtbox2.Focus()) { myPlayer.SoundLocation = "C:\\WINNT\\Media\\rcle.wav"; myPlayer.Play(); } if(txtbox3.Focus()) { myPlayer.SoundLocation = "C:\\WINNT\\Media\\re.wav"; myPlayer.Play(); } } problem is that when i click button,automaticaly focus set on first textbox an it plays its given sound.:( plzzzzz help me out y this is so?

    C# help question

  • play wavefile
    T treah

    hi, i want to play wave file i have written following code but its not working.plz tell me how can i do this? private void playsound() { string sysRoot = System.Environment.SystemDirectory; OpenFileDialog dlg = new OpenFileDialog(); dlg.AddExtension = true; dlg.Filter = "Wave files (*.wav)|*.wav|All files (*.*)|*.*"; sysRoot = "C:\\WINNT\\Media\\ir_begin.wav"; dlg.InitialDirectory = sysRoot + @"\..\Media"; // start in media folder int err = 0; // last error try { string tbFileName = dlg.FileName; // play the sound from the selected filename if (!PlaySound(tbFileName, IntPtr.Zero, SoundFlags.SND_FILENAME | SoundFlags.SND_ASYNC)) MessageBox.Show(this, "Unable to find specified sound file or default Windows sound"); } catch { err = Marshal.GetLastWin32Error(); if (err != 0) MessageBox.Show(this, "Error " + err.ToString(), "PlaySound() failed", MessageBoxButtons.OK, MessageBoxIcon.Error); } } i have written this function to play wave file.:(

    C# question help workspace

  • toolstrip button
    T treah

    hi, how to show tooltip on toolstrip button thanks:)

    C# tutorial

  • audio
    T treah

    plz tell me is this necessary that there must be an audio player in my application.or without an audio player i can play a wave file(only by giving the path of that wavefile):~ ? thanks

    C# help question

  • audio
    T treah

    hi i need to attach a audio file in my application:confused:.plz help me how can i do this

    C# help question

  • tooltip on cell of data grid
    T treah

    how to show ballon tooltip on cell of datagrid

    C# css tutorial

  • tooltip on datagrid
    T treah

    i want to show ballon tooltip on the cells of datagrid

    C#

  • menuitems
    T treah

    i want to select the menuitem from a menu :confused:

    C#

  • rich textbox
    T treah

    i want to select the text written in the rich text box

    C#

  • menuitems
    T treah

    how to show ballons tooltip on menubar

    C#

  • menuitems
    T treah

    tooltipAA.Show("----tooltip" , button); Application.DoEvents(); System.Threading.Thread.Sleep(2000); tooltipAA.Hide(button); this code shows tooltip on button ,similarly i need code for tooltip on menu item

    C#
  • Login

  • Don't have an account? Register

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