Winform usercontrol in WebForm - webforms

I want to display a "folderview" which I can drag and drop files into but via WebForm. I am doing this via a webbrowser control pointing at local drive. The code works in a win form user control but what I want is to embed this control in web form. This is an intranet so security etc is less of an issue. However when I add things like AllowDrop or the webbrowser control to my control it stops working - I get the image placeholder which I take to mean an error. Can anyone give me an idea what is wrong or perhaps suggest a different solution.

Hi I figured it out when you deploy a new version of your user control you need to clear the GAC download cache - gacutil /clc but I think versioning your dll may work. I don't think web browser control work at all but I may be wrong. I've managed to drag and drop msg files with Outlook Automation see http://bytes.com/groups/net-vb/527320-drag-drop-outlook-vb-net-richtextbox

Related

The control Type is hidden - Coded Ui

While trying to automate an web application using Coded UI, I faced the following issue :-
"Failed to perform Action on hidden control exception: Cannot perform 'Set property of text with value "Muj*****" on the hidden control'.
Version used:-
Microsoft Visual Studio Ultimate 2012//
Version:11.0.50727.1
Microsoft .NET Framework
Version:4.5.50709
IE Version used:11.0
This is a internet banking application. Once I launch the browser with the application URL, I will be able to view the page in two languages. One in Arabic (default) and there is a Hyperlink to change the preferred language to English. So once I click on the hyper link and try to pass the Username and password to the respective fields, I get the above mentioned error. But without changing the language to English, the credentials are passed successfully. Again once I enter into the next page, I face the above mentioned issue to control the objects.
I assume that once we navigate from one page to the other, we face this issue.
Got to know this could be due to One Security update in IE (KB2870699). But this security update is not installed in my PC. Instead (KB3003057) is installed. I am not sure if this could be a reason for this issue. Just mentioning this here.
Kindly provide me a solution on how can I proceed.

Why can't I add a webresource to form in Dynamics CRM?

I am working with an on-premise instance of Dynamics CRM 2015. I have added web resources by creating them through the "Customize the System" window as well as by uploading them.
When I go to a form or dashboard to add these, it never works. I click Web Resource, find the web resource, fill out the form and submit and it just goes back to the Form edit screen and nothing happens!
No error is being shown or anything and it is driving me nuts! What am I doing wrong?
What browser do you use? Try to use IE because FF and Chrome have issues exactly with customization of forms.
I agree on using Internet Explorer. Or use debug tools marking the update always from server box, as it is a cache problem.

Creating options page for BHO

I am creating an IE browser extension using BHO,
I would like to create an option page like the on chrome or firefox.
I want this page to be accessible using manage add-ons page like it works in chrome and firefox. Is it possible? how do I do that?
I am using visual studio ATL and c++
Your Best Best is adding Context Menu or Tools Menu Item.
Basically There is no Standard IE Options Dialog that you can merge your stuff into.
you are gone have to have your own dialog.
as a warning starting with IE10 and IE11. your IE-Addons (BHO,Menu,Toolbar,DeskBank) will not have any access to registry or file system.
if you need to save some stuff. you are gone have to probably create a broker process.
for instance you need to create a windows service that listen on a socket (maybe some random port) and yo you can communicate with it from your options dialog on what to save and what to read.
Inserting context Menus into IE
Inserting Menu Options

Adding ajaxControlToolKit to visual studio 2010

When trying to add the AjaxControlToolkit.dll file I am getting this message:
"Security Warning: This file is possibly downloaded from a network location, and it can potentially harm your computer. Only load assemblies from publisher you trust.
Do you want to load it anyway ?
"
I chose YES, and although the ajax controlls do not add to my tab.
What should I do ?
I just download the Ajax. So you might downloading it form not trusted site. Try, ajaxcontroltoolkit.codeplex.com and you go there go to downloads and choose either the first one which is Ajax Control Toolkit 4 or whatever you need. Let me know if you need any help or if you face any thing.
Try to add the AjaxControlToolkit using NuGet. See the official Codeplex page for instructions.
Adding a DLL does not necessary result in adding Controls to the toolbar. You can specificy in the settings dialog of the toolbar if controls from perticular assembly should be shown.

How do I write a custom start page for VS 2008?

I've looked around, and not found much documentation on this, so I thought I'd ask where all the experts hang out.
I would like to create a new start page, with bug tracking and source control interfaces, rather than the standard MSDN feed. I seem to remember that one can do more than just supply a different URL, but can actually implement a component to run as the start page, which needn't use web content. I may be wrong. Can anyone please give me some tips?
You can do is to create a DTE ToolWindow (read: Creating a ToolWindow hosting a .NET user control) and host your controls there, then its pretty easy to create an addin that will show the tool window as a document at runtime. (The same way that the start-up page looks)
Go to Tools > Options > Environment > Startup and put your RSS URL in the Start Page news channel field.
That should give you enough, but if you want to do more you can select open home page in the at startup dropdown and point it at a URL with the appropriate content. If you use an intranet with Windows authentication you could display user specific stuff.
This will be completely customizable in VS 2010. You'll be able to do anything you want to on the start page.

Resources