2.属性CurrentCell,行和列都是通过这个的

解决方案 »

  1.   


    [DllImport("winmm.dll", EntryPoint="PlaySound")]
    public static extern int PlaySound (
    string lpszName,
    IntPtr hModule,
    int dwFlags
    );
      

  2.   

    我知道可以DLL一个函数,System库里面没有吗?
    如果Dll一个涵数的话,想播放资源而不是文件,在C#里面就不行啦.
    我想知道的是.NET本身的库里面就没有吗?
    有没有知道的人啊............................
    谢啦...............................
    up!
      

  3.   

    1.好像.NET类库里面没有这个函数类似的功能吧.开发多媒体方面的你还是用VC吧.
    2.属性CurrentCell,可以获取当前选择的信息.
      

  4.   

    C#有个叫MediaPlay的
    哈哈.
    不知道这个能不能播放?
    在引用里面添加~
      

  5.   

    楼上的,当然行了
    CurrentCell属性的ColumnNumber和RowNumber属性
      

  6.   

    [DllImport("Winmm.dll")]
    public static extern long PlaySound(string name,long  module,long flag);         PlaySound("newreply.wav",0,0);
      

  7.   

    DataGrid a;
    .....a.CurrentRow()