What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 14353 |  Welcome, Guest!   Register  Login
 Home > Forums > VB.NET > disable right click in openfiledialog folder ...
Jerome

disable right click in openfiledialog folder

Replies: 3 | Posted by: Jerome on 4/26/2012 | Category: VB.NET Forums | Views: 602 | Status: [Member] | Points: 10  


I have an openfiledialog and I dont want the user to right click the file to be uploaded so that the user cannot rename or edit the file


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Bugwee
Bugwee  
Posted on: 4/27/2012 1:20:15 AM
Level: Starter | Status: [Member] | Points: 25

For what's your purpose?

If the file you wanted to upload is yours, why not you can't change the filename or modify?

You can't do what you wanted. Anybody could change or the rename the file that he wanted to upload unless you provide them a filename format.

Jerome, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Bugwee
Bugwee  
Posted on: 4/27/2012 1:22:08 AM
Level: Starter | Status: [Member] | Points: 25

Provide them a filename format then in your code, check the format before saving the file. If the file is not in correct format then return an error message.

Jerome, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Jerome
Jerome  
Posted on: 4/27/2012 1:32:19 AM
Level: Starter | Status: [Member] | Points: 25

OK thanks!
That's exactly what I already done.But I'm just after of the situation if the user renames the filename because it will no longer detects the path.I just want to know if disabling the right click is possible.But now I know that it's realy impossible..Tnx bay!

Jerome, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 12:53:21 AM