Importing an Image into Visual Studio to Code - vb.net

I don't feel as if what I'm asking is ridiculous. Would I be able to import an image of any kind (png, jpeg, etc) into visual studio and then define regions/hotspots to code as buttons? It would kind of be like an expression blend/silverlight thing but if I already had the design in an image format and I just need to put code behind it.

Expression Studio contains tools that can meet your requirements,
http://www.microsoft.com/expression/products/Design_WhatIsExpressionDesign.aspx
For example, by using Design, you can import existing images and export XAML directly, which can later be used in your Visual Studio/Expression Blend projects.
You have to use such separate tools, such as Visual Studio does not have such features built in.

I have done this with an imagemap and hotspots over button graphics in an image the aspx page.

Related

View PDF in Visual Studio Code or Visual Studio

I found somewhere that I can use Visual Studio Code to view PDFs.
The extension used is "PDF Viewer".
Visual Studio Code allows multiple panes open to see more than one document at a time. This is the main reason I use it.
I also wanted to have the capability to extract specific pages to images (or copy a page as an image ... but this probably isn't possible).
How can this be done, in Visual Studio Code or Visual Studio?
I'm not a coder or developer, please simplify response.
Thanks.

Blend, big xaml files (cad)

I'm trying to import cad model into blend and then make some storyboard on it.
Idea was to export xaml file from solidworks and then import it to blend.
File open in blend, model is displayed correctly and every thing works until i zoom/move or make any action that results in immediate program crash.
Xaml file is about 5mb, and outside blend works fine in my program i can rotate,zoom it freely with good performance.
Have anyone encountered similar problem, or have good method for converting cad->xaml.
I did when working on an augmented reality feature in a desktop aplication.
My solution was to convert the object to fbx format and use the XMA game studio controls to view it. Then I was able to do what I wish in blend.

How to make a GUI in QT using visual studio?

I have c++ code which uses GDAL libraries to do some operations in an image (like slope, aspect, hill shade etc). Now, I want to make a GUI in which I want to fetch an image from the directory. After that I want to apply operation on the image (assume as slope - c++ code) and then I should get the output.
Many people have suggested me to use Qt. I have built and installed Qt in my visual studio 2010 successfully.
Please help me how to proceed with the GUI. I have intermediate skills in C++ programing and new for GUI applications.
This is hard to put in an answer. There are a lot of tutorials out there including, for example, My First Qt GUI Application as well as other general Qt4 and Qt5 tutorials. Even on YouTube you will find a lot of videos such as Introduction to Qt C++ framework for Visual Studio (which uses Microsoft Visual Studios and Qt 5.4) and Qt Calculator GUI Tutorial Part 1 (which uses Apple's Xcode and Qt 5.7).
The main idea is that you use this software to create in a What You See Is What You Get (WYSIWYG) mode the GUI. Then you must play with the created file and classes.
I have solve the Issue. Thanks everyone who helped me. This is how i have done.
After successfully installing Qt with visual studio , create a new the Qt project and there you will find three files (.ui, .h, and .cpp ).
click on ui file , new window will be create where you can see the buttons and boxes .
make use of that as per the requirement and read a tutorial of QT for setting and using object names.
click on .h file , where you will create a call the functions by clicking the button class.
click on .cpp file , write your code in the class called in .h file.
compile and enjoy the solution :)

Windows 8 xaml - Best practices: From design mockup to App?

What are the best practices for Windows 8 xaml apps to bring in the Visual Design assets?
We started designing our app in Adobe Illustrator so all graphics would be vector based and scalable. Now we have the screen designs, but can't find a way to bring them into the actual app (xaml/c#) . I thought there is a way to import SVG to Visual Studio or Blend, but we can't find it. For Windows Phone there even was an Illustrator import feature.
The Import from Illustrator feature is missing from the current version of Blend, unfortunately. You can however use Expression Blend 4 to import the relevant XAML form Illustrator and then copy/paste into Blend 5.
Cheers
Laurent

How can I display excel data with the .xlsx exstension in my windows application using data grid view?

I have an excel file that I would like to load into my form and display there. Is there any way to do this? Sorry I am fairly new at visual studio as well as visual basic. If anybody could help me out with this it would be great thanks.
There are several options - all involve some additional library:
OpenXML 2.0 (free library from MS) can be used to read/modify the content of an .xlsx so you can display it anyway you want (for example in a data grid view)
some (commercial) 3rd-party libraries come with grid controls allowing you to display excel files in your application (be it Winforms/WPF/ASP.NET...) like SpreadsheetGear, Aspose.Cells etc.