|
|
Hi,
I am working on a silver light application. In this I need to upload videos, save them in afolder and retrieve them back to display. In this I need to save the uploaded video in a folder for retrieving later.
I came across some applications where the video is converted to bytes and saved in database and retrieved from there. But as i want the video to be saved in a folder I need to convert the byte[] in to video in a service and save itin my application folder.
If any one have any idea to directly save the slected file in the openfiledialog to a folder or to convert byte[]to video and save it in a folder, please rply me.
Thanks in advance
|
|
|
|
|
Hi,
I am working on a silverlight application in which I need to upload and display videos. These uploaded videos should be saved in a folder and from this folder I need to retrieve the videos and display them in my silverlight application.
If you have any idea to solve this please reply me.
Thanks in advance.
|
|
|
|
|
What part of this are you having problems with?
The System.IO Namespace[^] should have everything you need
to work with directories and files.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I've been learning c# for about 2 months now and have already made some pretty useful winform applications. With that said I feel that I have a decent understanding of c# although there is still plenty to learn. I'm at the point now where I find myself wanting to experiment with custom controls. At this point I'm not sure if I should continue to learn WinForm's or shift my focus on WPF as it seems to be the emerging tech.
Any advice would be great.
Thanks!
|
|
|
|
|
WPF is gaining foothold, I suspect more and more apps will use winforms in the future. Have you learned proper C#, things like different container classes, how to handle objects that are IDisposable, etc ? If not, I'd stick to winforms while learning the language a little better. Then I'd look into WPF.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: WPF is gaining foothold, I suspect more and more apps will use winforms WPF in the future.
I think that's what Christian meant to say
|
|
|
|
|
i totally think you shoud turn to the WPF,as we know,some parts of the VS2010 is designed by WPF,so i think the microsoft will think highly of the WPF,and wo know the route MFC->WinForms->WPF.so we shoud learn the new tech~
sorry,my english is poor --!
|
|
|
|
|
thanks for the feed back I've already stared investigating WPF, pretty interesting so far. I'm using VS10 beta and it seems much better than express edition. I think I'm going to bite the bullet and purchase the standard edition when it come out.
|
|
|
|
|
WinForm will be replaced by WPF sooner or later. WPF is suitable for programing under Win7 or Vista OS.
|
|
|
|
|
So are WinForms - you need to define the reasons where WPF is superior to WinForms in order to convince people to use it.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
You mean other than just because WPF is
Pete O'Hanlon wrote: a veritable porn star
?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
Help humanity, join the CodeProject grid computing team here
|
|
|
|
|
Hi,
I am developing a WPF UI application .
I have a menu on top of the screen, which has File, Help menuitems.
In file -> Backend features (shortcut key is ctrl + B), Exit (Ctrl + x) sub menu items.
when clicked on any sub menu item, the corresponding window opens.
So, with out using mouse, by pressing ctrl + B or Ctrl + x, how can the window be opened??
Also, how can I display a small line below the "F" in the File so that when user presses Alt + F, the File menu should be visible.
I am working on WPF using C#.
Please guide me.
Thanks
Ramm
|
|
|
|
|
I would just handle the key press event, I'm not sure how to do shortcuts in WPF on the menu, if autocomplete and MSDN doesn't tell you, just handle the keypress directly
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Try something like this,
<Menu DockPanel.Dock="Top">
<MenuItem Header="_File">
<MenuItem Header="Exit" InputGestureText="Ctrl+X">
</MenuItem>
</MenuItem>
</Menu>
And look at this[^] and this[^] for the CommandBinding option
|
|
|
|
|
Is there a property or style for the selection color? I use the VS2008.
|
|
|
|
|
Coming soon to WPF 4.0: Selection Brush[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
m getting following error while accessing data from SQL server 2005 in my Silverlight application. m using Silverlight enabled web service class and Linq to sql for data access. Can someone suggest me whats going wrong. Thanks in advance.
System.ServiceModel.CommunicationException was unhandled by user code
Message="The remote server returned an error: NotFound."
StackTrace:
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
at SLApp9.DataServiceReference.DataService1Client.DataService1ClientChannel.EndGetCusUserID(IAsyncResult result)
at SLApp9.DataServiceReference.DataService1Client.SLApp9.DataServiceReference.DataService1.EndGetCusUserID(IAsyncResult result)
at SLApp9.DataServiceReference.DataService1Client.OnEndGetCusUserID(IAsyncResult result)
at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
InnerException: System.Net.WebException
Message="The remote server returned an error: NotFound."
StackTrace:
at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
InnerException: System.Net.WebException
Message="The remote server returned an error: NotFound."
StackTrace:
at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
InnerException:
|
|
|
|
|
Have you checked the service url?
|
|
|
|
|
I'm having the same problem on mine. I've even added a ClientAccessPolicy.xml file to the root of the website. This problem isn't plaguing me when running from localhost, but it is a problem on my test site. I'm thinking it's something to do with the cross domain security policy file, but I'm stuck there.
|
|
|
|
|
|
I copied the file under there to my directory and I'm still getting the same error. Is there something special that needs to be done for a Windows XP machine to be able to host WCF services in IIS?
|
|
|
|
|
Have u hosted WCF in IIS?Then copy that crossdomain.xml to intepub>wwwroot.
Hope this will solve your problem.
|
|
|
|
|
putting the xml file in wwwroot solved my problem thanks a lot
|
|
|
|
|
Hi.
How can I use a TabControl as RightToLeft in WPF ?
Could you please guide me ?
Thanks.
|
|
|
|