We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Show Opened FileName in Titlebar of window form (using in C# .NET)

Thread ID:





3536 Mar 27,2003 06:05 AM UTC Mar 27,2003 06:20 PM UTC WinForms 1
Tags: FAQ
Asked On March 27, 2003 06:05 AM UTC

Hello, I m working in C# .NET. I m facing a problem. Will u plz help me out... My Qu: Suppose U have a PictureBox or InkPicture in ur Form. It has opendialog control also. When u run the application, the user will select an image to open (thru opendialog) and that will be opened in picturebox ( or InkPicture). HOW TO SHOW THE FILENAME , THAT IS PRESENTLY OPENED IN PICTUREBOX OR INKPICTURE CONTROL ON FORM'S TITLEBAR????????????? Next time when user will open a new file, this current filename must be shown on form's titlebar. How could this be possible in c#. plz reply soon....

Ramesh Praveen [Syncfusion]
Replied On March 27, 2003 06:20 PM UTC

After you open the file via the OpenFileDialog you should set the Form's Text to be OpenFileDialog.FileName. That should do it. Regards, Praveen Ramesh


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon