Silverlight 5 save file dialog




















Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Programming Silverlight with. NET — General. StreamWriter fileStream sw. WriteLine "Writing some text in the file. Flush sw. OpenFile ; System. StreamWriter fileStream ; sw. Flush ; sw. Version Information Silverlight Supported in: 5, 4, 3. Platforms For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also Reference System. Controls Namespace. Dialog Boxes Overview. In this article. Gets or sets the default file name extension applied to files that are saved with the SaveFileDialog. Gets or sets a filter string that specifies the files types and descriptions to display in the SaveFileDialog. Gets or sets the index of the selected item in the Save as type drop-down list. Determines whether the specified Object is equal to the current Object.

Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. Serves as a hash function for a particular type.

Gets the Type of the current instance. Creates a shallow copy of the current Object. Opens the file specified by the SafeFileName property. Returns a string that represents the current object. Let me know where I am doing wrong. With that also I am getting same error : Object reference not set to an instance of an object.

Any solution why? I am following the solution Mastan Narra So please check your code again. Below is my test code:. Please let me know if you have any question. If the issue still exists, please share your code or project remove unrelated and sensitive code first so that I can help you further. Best Regards,. Could you tell me which object reference not set to an instance? You can debug your project with the help of immediate window to examine which value is null?

GetType , or objSFD. We need detail information of the exception. If you feel it is inconvenient to repeatedly paste code or error message, you can upload an simple demo that can reproduce your issue to SkyDrive and show me the download link, I will be very appreciated.

When break point hits and checked the quick watch window objSFD. I am sure now where is your problem. It must be environment issue. It may be caused by different Silverlight version, or confilicts between different versions.

So I need your project code removed unrelated and senstive code first , or you can upload an simple demo that can reproduce your issue to SkyDrive and show me the download link so that I can help you further.

Please find the link for test application still I am getting same error in this application. Let me know if you can find any solution. Silverlight Developer Center. Sign in. United States English. Home Library Learn Downloads Forums. Ask a question.



0コメント

  • 1000 / 1000