|
Hi there,
I am developing an application in WPF, which plays a video in mediaelement. Now I want to export the video or in other words save the video in other format. How can I do that?? Please Help.
|
|
|
|
|
WPF cannot do this natively. You will have to consider using a third-party control or I believe DirectX has this capability.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
any understandble thing which is enough for understanding me.
in simple words , i want a simple example of asp.net(using c#) with some control.
--------------------------------------------------------------------------------
Maifs
|
|
|
|
|
|
any understandble thing which is enough for understanding me.
in simple words , i want a simple example of asp.net(using c#) with some control.
--------------------------------------------------------------------------------
|
|
|
|
|
That is the Worst English i have ever seen in Writting lol Before you write something you must take your time and make sure that someone will understand what you wrote
lol
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Probably a 6-year old kid.
|
|
|
|
|
Hello, I am new to THE CODE PROJECT. I have a question...
How do I make a console application that runs a screensaver?
FYI: I use Microsoft Visual C# 2008 with the .NET Framework 3.5
Thank You,
Josh
|
|
|
|
|
|
hi to all
i want to call javascript function and store the returnable value to a variable from my codebehind file when the grid edit button's click.
Thanks
(with regards)
B.Balachandhar
|
|
|
|
|
You're looking for the ASP.NET forum. You can't call a client-side Java function from the codebehind because that's running on the web-server, not the client.
|
|
|
|
|
Hi there !!
calling Javascript using your codebehond file is easy, all you have to do is to add the onClick attribute to your button. ( myButton.attributes.add("Onclick","JavascriptCode or funcion's name but you must register the script")
maintaining the return value would be easy if you create a hidden text fields and set it value with the script return value.
Hope that will help
WaelA
Senior Software Engineer
abu_wer@hotmail.com
|
|
|
|
|
Hi all,
How to identify Date in a String ?
The string may contains different sysmbols and alpha numeric values including Date
(like hj/dfsks jh/f12/353 @@2df 23/11/2008 kjdl jf\ioi jr4398 rjeo i")
Please suggest me how to find that.
Thanks in advance
|
|
|
|
|
You can use regular expressions to parse strings and extract data formatted in specific ways.
You will need to create a Regex[^] object with the require pattern you want to match.
There is a guide to .net regular expressions here[^].
This is also quite a good resource for regular expressions:
http://www.regular-expressions.info/[^]
You might want to consider downloading something like Expresso[^] to test your regular expression patterns.
Simon
|
|
|
|
|
Rather than using the regex aproach i would suggest Date.TryParse(in "string containing date", out date_object) ... as date varies on localization it might be a lil overhead building a regex to handle all kinds of formatting and might require, depending on case, a lot more processing time.
Code? Yeah i love it fried together with a glass of wine.
|
|
|
|
|
Based on the string you provided...
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
string myString = "hj/dfsks jh/f12/353 @@2df 23/11/2008 kjdl jf\\ioi jr4398 rjeo i";
string[] parts = myString.Split(' ');
DateTime dateFound;
CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
DateTimeStyles styles = DateTimeStyles.None;
foreach (string part in parts)
{
DateTime date;
if (DateTime.TryParseExact(part, "dd/MM/yyyy", culture, styles, out date))
{
dateFound = date;
break;
}
}
}
}
}
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi ,
I am CommandBar class for creating Addin, in which I want to call function Control.Add(). This function take 4 parameter of type object and all parameters are Optional type. I have to pass only one parameter but it is not allowed to me.
Code is as
Controls.Add(MsoControlType.msoControlPopup);
This function is worked in VB.Net but not in C#.net. So is there any different way to call optional parameter in C#.
Thanks
aaa
|
|
|
|
|
C# doesn't support optional parameters. Either pass null or Missing.Value
Simon
|
|
|
|
|
Hi Simon,
Is there any other way to pass optional parameter in C#.I tried with null and Missing.value but it is not working. CommandBar is .Net framework class and some functions have optional parameter defined, so they use in C#.Net.
Thanks
aaa
|
|
|
|
|
Currently C# does not support optional parameters. It is being considered for inclusion in .net 4.0[^]
It supports overloading, but that's different. If you are calling an overloaded method, then just leave out the other parameters and the appropriate overload will be called automatically.
I've never come across a CommandBar class in the .net framework. There's one in the office object model, but that's not written in .net.
Post some of your code so I can see what you are doing.
Simon
|
|
|
|
|
|
Your answer was unacceptable!
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Dammit. Rejected again. When am I going to learn to give the answer the poster wants, and not the correct one.
[Thanks for the booster vote ]
Simon
|
|
|
|
|
Wait for .Net Framework 4.0
it is supported
WaelA
Senior Software Engineer
abu_wer@hotmail.com
|
|
|
|
|
Hi,
I use a DateTimePicker in my project.
In the valuechange event I wrote some code.
The problem is that when I click on < (previous month) or > (next month) buttons or change the year, this event will fire. I want this event only when the date is click not in change month or year.
How its possible, please help me.
thanks in advance.
Justin
vchvchbv
|
|
|
|