|
This is very straightforward and do your own homework. People will help with a specific problem you may have, but not do your homework for you
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
My table contains fields like (empId, empName,...)
And when I load my table to a DataGrid, the columns' titles become the sames as fields names in my table.
I need to assign them new titles (e.g. Employee ID, Employee Name, ...)
Anybody can help?
Mohamed Gouda
Egypt
|
|
|
|
|
|
Many Thanks
I expected more effort is needed for this. But it was so easy
Mohamed Gouda
Egypt
|
|
|
|
|
Hello ALL!
I have an xml file like this
<files>
<item>
<name>file1.mp3</name>
<seeks>
<seek>
<desc>First seek in first file</desc>
<pos>12</pos>
</seek>
<seek>
<desc>Second seek in first file</desc>
<pos>24</pos>
</seek>
<seek>
<desc>Third seek in first file</desc>
<pos>29</pos>
</seek>
</seeks>
</item>
<item>
<name>file2.mp3</name>
<seeks>
<seek>
<desc>First seek in second file</desc>
<pos>10</pos>
</seek>
<seek>
<desc>Second seek in second file</desc>
<pos>25</pos>
</seek>
</seeks>
</item>
</files>
and I have some mp3 files.
how can I play that files from 1st seek to 2nd seek ? information about seeks I will get from xml
thanx!
-- modified at 8:29 Thursday 5th July, 2007
--
"Success is simple. Do what's right, the right way, at the right time."
best regards,
tradakad
|
|
|
|
|
You need to check 'Ignore HTML tags in this message (good for code snippets)' for your XML to be properly rendered. The schema is irrelevant, however. You can use anything you like to play the mp3, be it DirectSound, the Windows Media Player control, etc. I don't believe any of those things offer the ability to play part of a track, but they all let you set the position in the track, so it's a case of setting a timer so you can stop it when the section ends.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanx! so I need set a posintion (firstPos) in the file, play it for (firstPos - secodPos) seconds?
but how can I explain for control to play only (firstPos - secodPos) seconds? is any property for this in the control?
--
"Success is simple. Do what's right, the right way, at the right time."
best regards,
tradakad
|
|
|
|
|
tradakad wrote: but how can I explain for control to play only (firstPos - secodPos) seconds? is any property for this in the control?
As I said, no. You can set the position, but not the end position. So, you need to set a timer that goes off as you hit the end position, so you can move the position or stop it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
aha.. timer. i see.
thanx! I'll try!
--
"Success is simple. Do what's right, the right way, at the right time."
best regards,
tradakad
|
|
|
|
|
Hi,
I have some problems while using a Process to start an Microsoft Active Sync installation.
I am developing an Installer program(In .Net 1.1) to install some different programs in an certain order.
But when installing Microsoft Active Sync from the Installer program the user is promted to restart the computer after succesfull install(Default by Microsoft). If the user press "Yes",
I need to be sure that the Installer Program & the Process are closed because else there will occur an error.
I have tried to use Process.WaitForExit and then this.Close(), but that did not work
I Also need to do a "check" in the registry database, to see if the user has canceled the Install(Then he needs to be promted if he want's to install again), or the install was succesfull but the user did not want's to restart the computer
Regards
Mikkel Hansen
|
|
|
|
|
Hi EveryBody
I am trying to make Online Radio untily in dot net.do anybody have any idea From where to start.
I am Cliking with any idea.
Thanks
Atul Kumar
|
|
|
|
|
What do you mean by 'utility', what will it do ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
I mean to say FMRadio.exe kind of utility having different radio stations in drop down box and on selecting any,perhaps it calls .asx file or something like that behind the scene to run that radio.
Thanks
Atul Kumar
|
|
|
|
|
Open this URL www.radioteentaal.com/masala128.wax It will run live radio.Same thing to be done through C3 code.
|
|
|
|
|
Hi EveryBody
Is there any update regarding this issue.....
Thanks and Regards,
Atul Kumar
|
|
|
|
|
Hi All,
I was trying to use Enterprise Library 3.0 in my .NET application.
While trying to use the Logging application block,after configuration,i got the following exception while calling the Logger.Write class:
"The configuration section for Logging cannot be found in the configuration source."
However, earlier while calling the LogEntry class, i was not having any issues.
only while the logger class is called after the log entry, i am getting the exception.
I have added the necessary references to my project and included the namespaces.
Please help me solve the exception.
Thanks,
Ramesh
|
|
|
|
|
|
Hi!
i develop a project using C#.NET 2.0 and SQL SERVER 2000. now i want it to make an installable exe. and can it run on another computer which has not sql server and .NET Framework or is there any other way to run it on another computer which has not sql and Visual Studio Please tell me
|
|
|
|
|
What you're asking is plainly impossible. If you don't have .NET, you can't run a .NET exe. If you don't have SQL Server, you can't have a SQL Server database.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You can create a setup.exe by adding a setup project. You can add a boot straper to have the .net framework installed if it isn't already. The PC must have the .net framework installed for you app to run. As far as the sql server. If the pc you are installing your program on is in the network that your sql server is on, then you just need to make sure your connection string points to your sql server. If not then you will need to install something like sql express and you will have to run create database scripts along with create tables insert rows etc.
Ben
|
|
|
|
|
I'm trying to get an event-handler relationship set up over a remote tcp connection. I have set the security level so that I can serialize any object (full). My server has a "game" object which has an event. The client has a user control that responds to the event through an intermediate "remoteReceiver" object that inherits MarshallbyRefObject. I'm getting "An error occurred while processing the request on the server: System.ArgumentNullException: No message was deserialized prior to calling the DispatchChannelSink." at "Game.testEvent += new Game.BlankEventHandler(remoteReceiver.fireTestEven t2);". Can anyone tell me how to fix this.
Server code:
<br />
[Serializable]<br />
public class Game : MarshalByRefObject<br />
{<br />
public Game()<br />
{<br />
SoapServerFormatterSinkProvider provider = new SoapServerFormatterSinkProvider();<br />
provider.TypeFilterLevel = TypeFilterLevel.Full;<br />
IDictionary props = new Hashtable();<br />
props["port"] = Properties.Settings.Default.tcp_channel;<br />
props["name"] = String.Empty;
ChannelServices.RegisterChannel(new TcpChannel(props, null, provider), false);<br />
RemotingServices.Marshal(this, "game");<br />
}<br />
[Serializable]<br />
public delegate void BlankEventHandler();<br />
public event BlankEventHandler testEvent;<br />
<br />
public void fireTestEvent()<br />
{<br />
testEvent();<br />
}<br />
}<br />
Client code:
<br />
public partial class PlayerRoom : Room<br />
{<br />
public PlayerRoom()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
public PlayerRoom(string ip)<br />
{<br />
InitializeComponent();<br />
<br />
TcpChannel tcpChannel = new TcpChannel();<br />
ChannelServices.RegisterChannel(tcpChannel, false);<br />
Type requiredType = typeof(Game);<br />
string port = Properties.Settings.Default.tcp_channel.ToString();<br />
game = (Game)Activator.GetObject(requiredType, "tcp://" + ip + ":" + port + "/game");<br />
<br />
remoteReceiver = new RemoteReceiver();<br />
<br />
game.testEvent += new Game.BlankEventHandler(remoteReceiver.fireTestEvent2);<br />
remoteReceiver.testEvent2 += new Game.BlankEventHandler(eventResponder);<br />
game.fireTestEvent();<br />
}<br />
<br />
public Game game;<br />
public RemoteReceiver remoteReceiver;<br />
|
|
|
|
|
Hi,
I am developing windows mobile application using C#.Net(Compact frame work).I can not find double click event on list box control..Please advice how to add the event...
please anybody help me...
Thanks&Regards
|
|
|
|
|
That's because there isn't one. Why would you want one anyway? It's not a standard, or expected, behavior for the control.
|
|
|
|
|
I can't speak for the OP, but in one of my apps I have a popup form with a listbox to select a value. A double click is implemented to do the same functionality as a single click on the item, and a click of the OK button.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
Log the time of a click in the single click event, and if currentClickTime - LastClickTime < delta use double click behavior instead of single click.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|