by
Ged Mead via
XTab (Ged Mead)
on
12/22/2010 12:05:30 PM
When you need to use XML data as a data source in a WPF application, most times you’ll probably pull the XML document down from the web, a server, a separate file, or other external source. Occasionally though, you might have a situation where you can usefully embed the XML data right inside the project. Obviously, you lose one of the (if not the most) important aspects of data handling - the ability to chop and change the data at runtime. But for the sake of example, if ... [ read more ]
|
by
Matt G via
VB & .NET Blogs @ vbCity.com
on
12/22/2010 6:05:00 AM
Hashing using the built-in Crypto-Service Providers that .NET comes with is so straight-forward that it's almost not even blog-worthy. However, a friend asked me to write this so might as well share it.
Preview:
The following other hashing Crypto-Service Providers come with the System.Security.Cryptography namespace:
If you don't want to just hash text, you can also drag & drop a file from the Desktop or Windows Explorer onto this second textbox and hash ... [ read more ]
|
|
by
Neil Knobbe via
VB & .NET Blogs @ vbCity.com
on
12/18/2010 8:47:00 AM
I touched briefly on the mediaelement in this post dealing with Image and Video brushes. In this post I will expand a little on using the media element for playing video.
1. Setting up the Project.
The project is going to start with a 500 x 500 layout root grid with a light gray background.
While not essential I have also set the vertical and horizontal alignments so that the grid is displayed in the top left corner of the page.
Into the ClientBin directory of ... [ read more ]
|
|
by
LarryBlake via
VB & .NET Blogs @ vbCity.com
on
12/15/2010 11:57:00 PM
In this post, I describe how to make a Windows form with a WebBrowser control to show the rendered styles in a stylesheet. The interface is pretty simple. Enter the URL of a stylesheet, press "Go" and you get to see the available styles and what they look like.
There are four controls on this form. Use the Anchor property of the controls so that the window can be maximized and the controls will grow / move appropriately. (To be prec ... [ read more ]
|
|
by
Neil Knobbe via
VB & .NET Blogs @ vbCity.com
on
12/11/2010 2:25:00 AM
This post is going to take a quick look at the shapes that are available with Silverlight.
Silverlight comes with five built in shapes from which you can construct just about any shape that you can imagine.
The built in shapes are the Ellipse, Line, Polygon, Polyline and Rectange.
1. Setting up the Project.
The base project for each shape is going to be the same. The project will consist of a base layout 500 x 500 grid with a light gray background. I have also set th ... [ read more ]
|
|
by
Kulrom via
VB & .NET Blogs @ vbCity.com
on
12/6/2010 11:41:00 AM
Hi guys, this is my second review of these controls, and it will be quite different than the first.
A few months ago I was engaged by a client to develop a web based application. He asked me (I guess they all ask the same) to make it good looking and attractive. The first thing I thought of when I heard this was "I must renew my DXperience subscription" . And now I am glad I did that.
Before I continue, I would like to say something to those readers who are totally new to DX ... [ read more ]
|
by
Matt G via
VB & .NET Blogs @ vbCity.com
on
12/6/2010 2:51:00 AM
In this tutorial we will create an interactive interface on a Windows Form that responds to clicks, drags, and drops. The catch is we will not be using any controls at all. Everything will be drawn directly on the Form using the .NET's System.Drawing.Graphics namespace (GDI+).
We will draw two hands of cards: a top hand and a bottom hand. Once done, the user will be able to resize the form, as well as the splitter which divides the two hand areas. As a res ... [ read more ]
|
|
by
Neil Knobbe via
VB & .NET Blogs @ vbCity.com
on
12/4/2010 8:27:00 AM
Seeing this post recently by Ged ( vbCity Administrator, Microsoft MVP and all around good guy), it reminded me how easy it was to add a similar effect to Silverlight elements.
Silverlight comes with two built in effects that you can use on just about any Silverlight element. The effects are the DropShadowEffect and BlurEffect.
1. Setting up the Project.
The project consists of a 500 x 500 UserControl. The base layout of the usercontrol is a grid with a light g ... [ read more ]
|
|
by
Mike McIntyre via
Mike McIntyre
on
11/29/2010 5:21:00 PM
I was given this requirement for a Visual Basic application I am creating: When a user right clicks an item in a Windows Forms ListBox, select the item.
Luckily I quickly found an example... ...( read more )
|
by
Ged Mead via
XTab (Ged Mead)
on
11/29/2010 5:19:00 PM
We all pretty much take cursors for granted, don’t we? You wave your mouse about and the cursor obligingly follows. Easy. But what happens if you want to take control of the cursor? Sometimes it’s not quite so easy. Based on problems I’ve seen raised in the past few years, here are a few techniques you might find useful when it comes to dealing with the cursor. Cursor on a Windows Form This is fairly straightforward. Let’s start with th ... [ read more ]
|
by
VBTeam via
The Visual Basic Team
on
11/29/2010 2:51:24 PM
With the release of Windows Phone Developer Tools in September, and the availability of Windows Phone 7 devices in stores, the Windows Phone platform is growing. Today marks another milestone in the progression of Windows Phone. Today we are announcing Visual Basic for Windows Phone Developer Tools - RTW . This release doubles the developer audience for Windows Phone, by enabling Visual Basic developers to create applications for Windows Phone, as well as C#. Please stay tuned for t ... [ read more ]
|
|
by
Mike McIntyre via
Mike McIntyre
on
11/28/2010 3:42:00 PM
Looking for Windows Phone 7 code examples for VB.Net? Checkout this MSDN page: ...( read more )
|
by
Mike McIntyre via
Mike McIntyre
on
11/28/2010 3:07:00 PM
Download it now at: Windows Phone 7 RTW for Visual Basic ...( read more )
|
|
by
Mike McIntyre via
Mike McIntyre
on
11/27/2010 8:46:00 PM
This week I needed a simple text box control that could display text vertically, something like this:
Here's what I came up with:
Public Class VerticalTextBox
Inherits System.Windows.Forms.Control
Public Sub New()
End Sub
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
Dim g As Graphics = e.Graphics
Using format As New StringFormat(StringFormatFlags.DirectionVertical)
Using brush As New SolidBrush(ForeColor)
g.Dr ... [ read more ]
|
by
Mike McIntyre via
Mike McIntyre
on
11/27/2010 6:26:00 PM
At Microsoft's PASS Summit 2010 attendees were introduced to Project “Crescent”, a stunning new data visualization experience coming in the SQL “Denali”.
Built on Silverlight, Crescent gives users new ways of exploring data and discovering new insights, and presenting this information in new and exciting ways, letting the data tell a story about your business.
Learn more and watch the video:
A Glimpse at Project Crescent
Project Cresc ... [ read more ]
|
by
Neil Knobbe via
VB & .NET Blogs @ vbCity.com
on
11/27/2010 8:06:00 AM
Over the last number of posts I have looked at different kinds of animations available for use in a Silverlight Application.
Each of the previous examples used a type of animation where the values being changed are of the Double, or numerical, type. Not all Silverlight elements attributes however have double type values but rather string literals such as "Left" or "Right". Being string values you can’t use DoubleAnimations to change the attributes. ... [ read more ]
|
|
by
Mike McIntyre via
Mike McIntyre
on
11/25/2010 5:09:00 PM
Visual Studio 2010 provides project templates you can use to create add-ins to automate Visio, extend Visio features, or customize the Visio user interface (UI).
The Visio object model exposes many classes to automate Visio to create diagrams for organizational charts, flowcharts, project timelines, network diagrams, office spaces, and more.
Get started here: Visio Solutions
|
by
Mike McIntyre via
Mike McIntyre
on
11/25/2010 4:54:00 PM
Create Your Second Visual Basic 2010 Application
Your second Visual Basic 2010 application will also be a Windows console application.
This application will be able to ask the user for two numbers, sum the two numbers, and show the result to the user. ...( read more )
|
by
LarryBlake via
VB & .NET Blogs @ vbCity.com
on
11/25/2010 12:53:00 PM
Suppose you want to make a chart where the column color changes based on the data (as shown below). Is there any easy way to do that?
I'm going to say that there may very well be a better way than mine, using some sort of conditional formatting. If you know of one, I'd like to hear it. But my way isn't that hard. It relies on "Stacked Column" charts, which normally look like this.
My me ... [ read more ]
|
|