Hi, My application is in VS2010,Silverlight and coded in C#.Net. My requirement is i want to upload Image in my Imagebox control.As there is no PictureBox control in Silverlight im using ImageBox. I have a Imagebox,below that a Browse button. When the User clicks on Browse button,Dialogbox should open and when the USer selects a Image it should be loaded to Image box.. Example for Picturebox is available on the forum but i want it for Imagebox. Below is my code. [CODE] OpenFileDialog imageDialog = new OpenFileDialog(); //Filter default filetype to be allowed for selection imageDialog.Filter = "Pictures (*.jpg)|*.jpg"; imageDialog.FilterIndex …

Member Avatar
Member Avatar
+0 forum 7

I have a silverlight app that uses TextBox XAML controls. In the c++ code-behind, IXRTextBoxPtr types are associated with these textboxes using "FindName" like this: FindName(L"ColNum3", &m_pColNum3); (where ColNum3 corresponds with the XAML CODE like this: ) Then, the code assigns the pointer like this: std::wstring wsTransfer; // gets the wstring from imput const WCHAR * wpszInput; wpszInput = wsTransfer.c_str(); m_pColNum3->SetText(wpszInput); but the display does not show the text data. What am I missing? What steps am I missing to have this text modification display on the screen?

Member Avatar
Member Avatar
+0 forum 2

Every year or so for the past couple of decades I've seen new products appear that claim to let you create software without having to know how to code. And every time the next one comes out, I roll my eyes, because they always fail to deliver as promised. Usually the concept is the same: You use a tool to design your data, and some other tool to draw out the screens. Then you get a program. The program automatically gets the basic database functionality: A data browser, a data entry form, a search form. But the problem is the …

Member Avatar
Member Avatar
+0 forum 3

So I am currently working with custom silverlight extensions for a SAP application. The extension kicks off a an async WCF request and waits for the response. During which time I try the following: waitWindow = new RadWindow(); waitWindow.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterScreen; waitWindow.BorderThickness = new Thickness(0); waitWindow.Content = new View.WaitWindowTest(); waitWindow.ShowDialog(); Where `View.WaitWindowTest` is a UserControl with the standard C# constructor behind it: <UserControl x:Class="censored.View.WaitWindowTest" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" mc:Ignorable="d" d:DesignWidth="300" d:DesignHeight="50"> <Grid x:Name="LayoutRoot"> <Grid.Resources> <Style x:Key="BorderlessWindowStyle" TargetType="telerikNavigation:RadWindow"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="telerikNavigation:RadWindow"> <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"> <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" /> </Border> …

Member Avatar
Member Avatar
+0 forum 4

Hello All, I am developing an application in WPF in which I need to set a generic input bindings for TAB key for every field present in the view. I somehow managed to create a common method but now I wnat to retrieve on which field the TAB key has been hit. So, I want to know how can I pass a generic framework element or anything to the command parameter so that I can retrieve on which field the vent is taking place. My xaml code is as follows :- <Window.InputBindings> <KeyBinding Key="Tab" Command="{Binding TabCommand}" CommandParameter="{Binding .}" /> </Window.InputBindings> …

Member Avatar
Member Avatar
+0 forum 1

![ef58374af47c49d4351e49bbebe0a030](/attachments/large/3/ef58374af47c49d4351e49bbebe0a030.jpg "ef58374af47c49d4351e49bbebe0a030") I have even uninstalled and reinstalled the visual studio 2010 but still the error comes. Please Help me to overcome this thank you

Member Avatar
Member Avatar
+0 forum 2

Hi All, I want to develop an application in which I want to record a video in **silverlight** and send it to the server. I have the following questions in my mind. 1. In which format the video will be record in silverlight using Webcam ? (Raw format OR WMV OR anything else ?) 2. If it is a Raw format, then can we transcode it to WMV OR any other format? 3. Where the recorded video will be saved in silverlight? I think it will be on Isolated space. What will be the best way to send the recorded …

Member Avatar
Member Avatar
+0 forum 11

Apple has done it again. This time with [URL= http://www.sproutcore.com/]SproutCore[/URL], a JavaScript framework that simplifies development of native-looking Web-based applications without the need for Flash or any other specialized runtime. Apple has reportedly contributed loads of resources to the project, which was originally developed by [URL= http://www.sproutit.com/]SproutIt[/URL] creator Charles Jolley. He now works for Apple’s [URL=http://www.mobileme.com]MobileMe[/URL] service (formerly known as .Mac). Though most of the reports I’ve read about SproutCore are calling it a Flash killer, the [URL=http://www.sproutcore.com/demos/] SproutCore demo applications[/URL] I’ve seen make it look more like an Ajax than Flash. And comparing it with Microsoft’s SilverLight makes even …

Member Avatar
Member Avatar
+0 forum 1

Hi, again Im hoping to be on the right topic. So here it is: I am publishing a SilverlightApplication that uses a WCF service to read from a database. The application uses Bing Maps to visualize some polygons. The thing is, that after I publish it ONLY on some machines I get the following Error: at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at ServiceConnection.MyServiceReference.selectAllImotsByEkatte_visualCompletedEventArgs.get_Result() at Tracing.Views.DrawContent.client123_selectAllImotsByEkatte_visualCompleted(Object sender, selectAllImotsByEkatte_visualCompletedEventArgs e) at ServiceConnection.MyServiceReference.Service1Client.OnselectAllImotsByEkatte_visualCompleted(Object state) Caused by: [Async_ExceptionOccurred] Arguments: Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.10411.00&File=System.dll&Key=Async_ExceptionOccurred at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at ServiceConnection.MyServiceReference.selectAllImotsByEkatte_visualCompletedEventArgs.get_Result() at Tracing.Views.DrawContent.client123_selectAllImotsByEkatte_visualCompleted(Object sender, selectAllImotsByEkatte_visualCompletedEventArgs e) at …

Member Avatar
+0 forum 0

hello, my visual studio 2010 came with silverlight 3..now i have to use 3rd party components that require silverlight 4 above..so i installed silverlight 5 for developers..but when creating a silverlight application visual studio only shows silverlight version 3..could anyone help me please?? i get the following error in the designer view [code] System.NullReferenceException Object reference not set to an instance of an object. at Microsoft.Windows.Design.Platform.SilverlightMetadataContext.SilverlightXamlExtensionImplementations.<GetXmlNamespaceCompatibilityMappings>d__8.MoveNext() at MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption() at MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(Identifier identifier) at MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope parentScope, IParseContext context) at MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider) at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors) at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem() at Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem() at Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState() at MS.Internal.Host.PersistenceSubsystem.Load() at MS.Internal.Host.Designer.Load() at MS.Internal.Designer.VSDesigner.Load() …

Member Avatar
+0 forum 0

I have been looking into event handling with C# and Silverlight and I can't seem to grasp it. I'm simply trying to get this adding event handlers in managed code example to compile from [url]http://msdn.microsoft.com/en-us/library/cc189018(v=vs.95).aspx[/url] I keep getting the errors "The name 'TextBlock_MouseEnter' does not exist in the current context. & "The name 'TextBlock_MouseLeave' does not exist in the current context. Please help! Thanks in advance. [CODE]<UserControl x:Class="EventHandlingInSilverLight.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <Grid x:Name="Layoutroot" Loaded="LayoutRoot_Loaded"> <StackPanel> <TextBlock Name="textBlock1"> Put the mouse over this text</TextBlock> </StackPanel> </Grid> </UserControl> [/CODE] [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Net; …

Member Avatar
Member Avatar
+0 forum 1

Hi guys I would like to ask your opinion on the following: What 's the best platform to create Web Business Applications ? ASP. net MVC 3??? I really want to get expert insight on this subject. Regards Edson

Member Avatar
+0 forum 0

Hello everyone I have the following issue and i tried google but no success. I'm tired of this silverlight thing but i have no choice. here is the problem: I have a datagrid which populates itself from a database doing this [CODE] void svr1_getInformationCompleted(object sender, getInformationCompletedEventArgs e) { dgv.ItemsSource = e.Result.ToList(); } [/CODE] there is no problem there and I can see my datagrid with the information. My datagrid has the following 3 columns: Number, name, desc And also i have a textbox named txtlastrep. what i need to do is to get from column name the last row and …

Member Avatar
Member Avatar
+0 forum 3

I need to save a video as an image in silverlight, for my new webpage functionality, at [url]http://www.game4tress.com/ecardsender.aspx[/url]. Now, this would be easy in WPF, but seems that silverlight can't access the RenderTargetBitmap and BitmapEncoder. I was able to discover that RenderTargetBitmap can be replaced with WriteableBitmap, but i can't replace BitmapEncoder. If the function was made in WPF, i would use this code: [code] myCanvas.HorizontalAlignment=HorizontalAlignment.Stretch; int Height=(int)myCanvas.ActualHeight; int Width=(int)myCanvas.ActualWidth; RenderTargetBitmap bmp=new RenderTargetBitmap(Width,Height,96,96,PixelFormats.Pbgra32); bmp.Render(myCanvas); BitmapEncoder encoder=new JpegBitmapEncoder(); encoder.Frames.Add(BitmapFrame.Create(bmp)); using(System.IO.Stream stm=System.IO.File.Create("C:\\Temp.jpeg")) { encoder.Save(stm); stm.Dispose(); } [/code] I can't seem able to find an equivalent way out in Silverlight. Can you, please …

Member Avatar
+0 forum 0

I'm creating a new functionality in my website. An e-card sender. [url]http://www.game4tress.com/ecardsender.aspx[/url] My problem is that i can initialize the webcam but i cannot set the image (source,...) inside an image control. I've tryed several thinks and google about it, but i found nothing. My main goal is to set the imgMain control source property to the video that is being displayed inside the Ellipse or directly set the webcamBrush to the imgMain.Source, so i could be able to show it to the user and send it to the desired e-mail Can you please help? My thanks in advanced This …

Member Avatar
+0 forum 0

hello to all members... i have developed a simple application with php...now i am further looking for learning RIA developments....i searched for flex and silverlight... i want to know is there any requirement for silverlight to have IIS server or any to work with php..... In flex i found good result but still remain to choose between both. Can anybody guid me on this.which one is better option...? Regards dd2308

Member Avatar
Member Avatar
+0 forum 3

Hi all, I'd appreciate some advice concerning the following issue. I have a situation with two very different ways to implement. Both are easy, but Im not sure of the pros and cons of each. Basically I am allowing users to message each other on a website, and so I have the following table in my database: Message Table: MessageUID (PK), SenderUID, ReceiverUID, MesasgeText, DateMessageSent I also have another table thats stores images on the message. I allow users to paste pictures into the message and to position them. In this table I basically just store the picture name, the …

Member Avatar
Member Avatar
+0 forum 2

I have multiple sources, to play... the data source get from the database, and i cant get the data, but the problem it, the player cant play one by one I am using the silverlight media player to play, what are the way can : when get the first video source, it will play first, after it finish, it get the second item, and play it??

Member Avatar
+0 forum 0

hi! how can i populate a treeview with this: [CODE]ObservableCollection<ProjectTreeview> trvProject = new ObservableCollection<ProjectTreeview>() { new ProjectTreeview(){ID=1, ParentID=0, Type="P", Name="Project Name"}, new ProjectTreeview(){ID=2, ParentID=1, Type="F", Name="Field 1"}, new ProjectTreeview(){ID=3, ParentID=1, Type="F", Name="Field 2"}, new ProjectTreeview(){ID=4, ParentID=2, Type="S", Name="Structure A"}, new ProjectTreeview(){ID=5, ParentID=3, Type="S", Name="Structure B"}, new ProjectTreeview(){ID=6, ParentID=4, Type="C", Name="Component A1"}, new ProjectTreeview(){ID=7, ParentID=5, Type="C", Name="Component B1"}, new ProjectTreeview(){ID=8, ParentID=6, Type="CA1", Name="Component A2"}, new ProjectTreeview(){ID=9, ParentID=7, Type="CB1", Name="Component B2"} };[/CODE] The heirarchy is based on the ParentID. Thanks :)

Member Avatar
Member Avatar
+0 forum 1

how to get content of RichTextBox in silverlight.

Member Avatar
Member Avatar
+0 forum 1

Hi everyone, I know there's a section designated for Mobile Development but, that's really dead and It wouldn't hurt anyone if I posted here - It's a C# related question anyway. I'm making a Naughts and Crosses game on my Windows Mobile - HTC. The game works fine, I can put the naughts and crosses in well that works brilliantly. But....I've made an if statement that checks if someone has won and that if statement never gets executed.... As you can imagine, a typical naughts and crosses grid is 3x3, so that's 9 entries. I've made 9 buttons and named …

Member Avatar
Member Avatar
+0 forum 3

Hi! I've got two background pictures, one is blurry, the other one is the same picture, but more colorful. The default background image is the blurry one. When I move the cursor, I'd like to change the background image from the blurry to the colorful one, but only in a circle around the cursor, and when I move the cursor forward, the changed background stays where the circle around the cursor went earlier. (like when you scratch a lottery ticket with a coin) I think I have to handle the MouseMove event, and use the MouseEventArgs cursor position, but I …

Member Avatar
+0 forum 0

In the last few years, a number of new technologies have popped up, died, shifted, etc. DaniWeb here has kept up with the changes, and I am grateful. There is a new technology though that has, to my surprise, actually taken off, and is making a name for itself. I speak of SilverLight from Microsoft. Doing a search here, I found over 400 topics using just the keyword "Silverlight". I think that it would be helpful to a lot of people, and this is solely my opinion, and not based in hard evidence, to have an area specific to SilverLight …

Member Avatar
Member Avatar
+0 forum 4

i need to show mesage box that show "RECORED ALreay exist ind datatabse " uisng linq and silverlight have single on code .xaml fiel code is here [CODE] private void createSurvey_Click(object sender, RoutedEventArgs e) { Service3Client client = new Service3Client(); //Int32 i; client.CheckSurveyExistAsync(this.Title.Text, this.SurveyQuestion.Text, this.Surveyoption1.Text, this.Surveyoption2.Text, this.Surveyoption3.Text); }[/CODE] and service3.cs code is here [CODE] public void CheckSurveyExist(string Title, string question, string option1, string option2, string option3) { DataClasses2DataContext db2 = new DataClasses2DataContext(); int highScoreCount = (from c in db2.Surveys where c.SurveyTitle == Title select c).Count(); if (highScoreCount > 0) { return ; } else { InsertSurveyData(Title, question, option1, option2, option3); …

Member Avatar
+0 forum 0

hi... everybody sorry for my stupid question.. i've three options for creating the reports 1)crystal reports for asp.net application using crystal report viewer or silverlite application using silverlite report viewer.. 2)ssrs reports for asp.net application using microsoft report viewer or silverlite application using silverlite report viewer.. 3)report sharp shooter for asp.net application using report manager preview or silverlite application using report manager.. i'm really confused which one to choose.. the main requirment for me is the report should be fast accessible in server as our application is big.. the report should be fast viewed and take the print at the …

Member Avatar
Member Avatar
+0 forum 1

hi..... to all.... i'm new to silverlight ... my doubt is.... for ssrs reports there's an BIDS( bussiness intellegent development studio) .. now i want to design reports in silverlight reporting services is there any development studio for silverlight reporting services.... if yes please give me the download site... i want to download... please help me....

Member Avatar
+0 forum 0

how to draw flowchart in silverlight thanks in advance

Member Avatar
+0 forum 0

hi, We are showing Video with slides(images) in silverlight .Our images come from amazon server now we want to cache these images before starting Video. our code is given below: private void LoadImage(string ImageURL) { WebClient downloader = new WebClient(); downloader.OpenReadCompleted += new OpenReadCompletedEventHandler(downloader_OpenReadCompleted); string fileName = ImageURL; downloader.OpenReadAsync(new Uri(fileName, UriKind.Absolute)); } void downloader_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e) { // Create a new BitmapImage and load the stream BitmapImage loadedImage = new BitmapImage(); loadedImage.SetSource(e.Result); } But it gives following Error in e.Result: System.Reflection.TargetInvocationException was unhandled by user code Message=An exception occurred during the operation, making the result invalid. Check InnerException for …

Member Avatar
+0 forum 0

Word came out this past weekend that Steve Jobs held a Town Meeting with his employees after the iPad party. Among the topics were Adobe and the Nexus One, which apparently both have Jobs more than a little riled. [URL="http://www.wired.com/epicenter/2010/01/googles-dont-be-evil-mantra-is-bullshit-adobe-is-lazy-apples-steve-jobs/"]According to a Wired article[/URL], he had this to say about Adobe and Flash: [QUOTE]They are lazy, Jobs says. They have all this potential to do interesting things but they just refuse to do it.[/QUOTE] Seriously, Steve?! I would say, Adobe has done all kinds of interesting things with Flash in spite of what Jobs may think. Yet it seems that …

Member Avatar
Member Avatar
+0 forum 15

Dear forum members, I'm working on an accounting software, which I was planing to do using C#. Now that I see there is WPF that I can use instead of WinForms, I would like to ask you a couple of questions. [LIST=1] [*]For an account software, which I would like to have it looking good, with dynamic graphs and "easy on eyes" with light animations (like apps on iphone, transitions etc), is C# .NET WPF a good choice? What would be your recommendations? [*]And how can I skin the window completely? Like, iTunes working on a Windows machine. The window …

Member Avatar
Member Avatar
+0 forum 1

The End.