I'm a complete newbie to Visual Studio 2017 and now need to update a old windows application. I down loaded VS 2017 community, found my .RC files and used it to open one of my dialog designs. It displays correctly but my problem is how do I get the VS to display the tools such as grid lines, alignment tools, etc? And how do I display the menu of the various controls (boxes and items) that one can add to the dialog design?
Those are in the toolbox pane/sidebar/thingie on the side. If you don't see it, go to the View menu and select "Toolbox" to turn it on.
I am trying to test our application against Visio 2013 but am having an issue which raises a message in Visio 2013 Preview "Microsoft Office cannot verify the license for this product. You should repair the office program by using Control Panel".
I have a simple VB6 form with a button on it. In the button event handler I have the following code.
Private Sub Command3_Click()
Dim visoObj As Visio.Application
Set visoObj = New Visio.Application
visoObj.Visible = True
End Sub
On the click the Visio application opens but the message "Microsoft Office cannot verify the license for this product. You should repair the office program by using Control Panel" opens.
I have checked that the product is activated and tried uninstall/reinstall/repair/re enter key from add/remove programs.
I have also tried
cscript ospp.vbs /act
as described in http://answers.microsoft.com/en-us/office/forum/office_home-office_install/office-cannot-verify-the-license-for-this-product/3bb811ad-29d6-49c7-a3d0-4634c154d155?msgId=be64dcd6-ab02-4388-bb09-c9ab41ffe9ab
Has anybody got VB6 and Visio 2013 preview to work?
You also get this message if you try adding a Visio 2013 drawing control onto a VB6 form.
I have also successfully tried similar code to open Word 2013 Preview and Excel 2013 Preview. This has worked fine. Just can't figure out what is wrong with Visio.
Any Help?
To fix this issue I had to turn off XP SP3 compatibility on the VB6.exe.
After turning this off I could create the Visio.Application dynamically without the license message.
But this just caused me to find another issue.
Visio 2013 Preview Drawing Control doesn't work in the IDE for VB6 or Visual Studio 2012 C# forms.
http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/f5c30d5d-4d53-4fd5-a14e-3ce22223c8c9
I've installed Visual Studio Professional 2010 [without any error] but I can not design webpage in it. I've installed
VB.NET
C#
Web Development [or something like that] only.
I can code, debug in VB.NET / C# but the problem is with designing page !
The "Design View" option is missing in the ASPX file.
System info: Windows 7 X64 Ultimate [uninstalled SP1]
You are viewing "Default.aspx.cs" which is a code behind page which can't be viewed in design mode.
So just change your control to "Default.aspx" and press Design button as shown below.
Or press F7 key from "Default.aspx.cs" page where you will see the design mode.
The problem was solved
Tools->Options->HTML Designer->Check the box in front of [Enable HTML Designer]
Is it possible to programmatically refresh WPF designer windows in Visual Studio e.g. using DTE?
I have some design-time behaviour where I would like to refresh WPF designer windows after file system changes I have detected.
I have tried:
dte.ItemOperations.OpenFile(file) //where file is a xaml file
but this has no effect.
Update
I am looking for a solution where I do not close and then re-open the xaml file, as this is too heavy-handed. I'm looking for a way of getting WPF designers to reload\refresh as they do when the solution is rebuilt.
The best that i can think of is
dte.ActiveDocument.Close(vsSaveChanges.vsSaveChangesNo);
dte.ItemOperations.OpenFile(FileName);
I am a bit confused on how Visual Studio 2010 and Expression Blend 4 operate together. If I want to create a WPF application, should I start it in Expression Blend 4? If so, then how does Visual Studio 2010 natively open Expression Blend projects, or does it?
Or should I start my application in Visual Studio 2010? If so, how do I open my solution in Expression Blend.
Also, how do I modify an existing WPF form, if I need changes. If I already have events handled and code behind, how do I bring it over to expression blend, make my changes, then bring it back to visual studio without disrupting the events and code that I have created in Visual Studio 2010?
Also can someone recommend a good book that covers how to create WPF and/or Silverlight applications using Expression blend 4 and Visual Studio 2010 together.
Solutions are the same for Visual Studio and Expression Blend. You can open your solution through the file menu in expression blend, or by right clicking on a xaml file in Visual Studio and select "Open In Expression Blend".
Personally, when I need to make only a small change, like changing the text on a button, I don't go into Blend. But when I want to see what's going on, with margins and layout and stuff I always use Blend. Most often I have Visual Studio and Blend open side by side and I keep switching back and forth.
Because Expression Blend uses the same solution you don't have to worry about event handlers and such. When they are in place, they stay in place. Unless you delete the control the event is attached to of course.
Creating a solution can be done in both tools, but I start most projects in Visual Studio. There are however a few Project templates that can't be found in visual studio. For example the Databound Application project type. This will give you a start on an MVVM project, with folders in place for the Model, View and ViewModel.
You can have it open in both Visual Studio and Blend at the same time. You're prompted in Visual Studio if you make a change in Blend and vice versa.
Personally I create the new application in Visual Studio first then open it in Blend.
I usualy start my project in Blend.
Remember Blend is specially designed to make great UI, easy databindig, make easy templates and custom controls.
You can edit the code behind of your app directly in Blend but sometimes it doesn't show the intellisense; thats when you need open VS, to do that right click on your project inside blend and click on edit with Visual Studio. It'll launch VS and you can start coding.
You dont need to close VS or Blend, they booth can be open, if you make some change in VS it will notify Blend, will appear a dialogbox telling you: reload the app, click Yes the changes will be sincronized in Blend and VS, the same happens when you make changes in Blend and go to an already open instance of VS.
Too remember to install de VS tools, it will allow you to open Silverlight projects inside VS, if they arent already installed an error message will appear.
Hope my answer help you