Search results for query: *

  • Users: MattP
  • Content: Threads
  • Order by date
  1. M

    FYI Visual Studio Asynchronous Programming

    Visual Studio Asynchronous Programming Visual Studio Async CTP site. Make sure you check out the 101 samples and Iterators links on the page. No need for async callbacks or generator classes for iterators anymore. Thank you very much Microsoft! Now if I could just find a solid release date...
  2. M

    C# 'AS' equivalent for nullable types

    C#'s 'as' keyword will let you do this: int? input = value as int? Here's what I would assume the vb.net equivalent would be: Dim input As Integer? = TryCast(value, Integer?) There's an intellisense error in the TryCast stating the operand must be a reference type but Integer? is a value...
  3. M

    C# to VB.NET conversion issue

    I'm converting the Prism Navigation Framework from C# to VB.NET and have 1 issue with an EventHandler that's giving me headaches. The original Interface: using System; namespace PrismNavigationFramework.Infrastructure { public interface IPrismModuleLoadingService { bool...
  4. M

    Silverlight Firestarter

    Firestarter webcasts: Silverlight Firestarter 2nd December 2010 : The Official Microsoft Silverlight Site Firestarter labs: Firestarter Labs : The Official Microsoft Silverlight Site
  5. M

    MVVM Implementation Discussion

    Thought I'd share the MVVM implementation that I've been using lately. I didn't want to use a pre-rolled framework so I could learn how things fit together. Hopefully this will help those that are looking to learn about implementing MVVM in your projects. Using MEF won't be included in the...
  6. M

    MVC forum

    Any chance we can get this renamed to Patterns as a catch all for MVC, MVP, MVVM etc.?
  7. M

    Reactive Extensions for .NET (Rx)

    I've been using RX recently in Silverlight as a mediator between ViewModels. Even if you don't work with Silverlight anyone who does asynchronous programming wouldn't be wasting their time to take a look. DevLabs page: Reactive Extensions for .NET (Rx) Couple of good blog posts: A Brief...
  8. M

    Microsoft Design .toolbox

    Pretty nice site set up by Microsoft to get Silverlight/WPF designers up and running with Expression Studio. The tutorials section is pretty lean at the moment but the courses section has some great stuff in it. Code behind is C# but the focus is more on a design perspective. Online C# to...
  9. M

    MVVM & IsEnabled issue.

    Posting this in the Silverlight forum since that's what I'm using and I don't see an MVVM section. If a mod needs to move it to the MVC section since it's a pattern question please do so. I'm having an issue getting a button to be disabled when CanExecute in my ViewModel is set to false...
  10. M

    Empty xmlns issue

    I'm converting the Strokes collection from a Silverlight InkPresenter to xml so I can save it in an nvarchar(MAX) column in a SQL database. Everything works correctly except in every <Stroke> tag I get an empty xmlns which blows up the XamlReader when I'm trying to load it. I've gotten around...
  11. M

    MailMessage AlternateView background image

    I have an issue where I'm trying to send out an email with a stretched image for the background and text overlaying the image. The markup I'm using works fine in a browser (IE, Firefox, Opera) but the image shows in-line when I create the view and open it with Outlook 2007. Dim content As...
  12. M

    Guide to Regular Expressions

    Essential Guide To Regular Expressions: Tools and Tutorials | Developer's Toolbox | Smashing Magazine Excellent list of resources for those trying to wrap their head around Regular Expressions.
  13. M

    dnrTV

    dnrTV - Show Archives
  14. M

    Resize Multipage Tiff

    I've run into a situation where I'm trying to resize/compress multipage tiff documents that were scanned at a huge resolution and color depth to a managable file size. Here's the code I have so far. It works in creating a new file with the reduced resolution but I've run into a couple of snags...
  15. M

    Future Directions for Microsoft Visual Basic

    Future Directions for Microsoft Visual Basic | pdc2008 | Channel 9 Interesting video from pdc2008 on the direction of Visual Basic 10+.
  16. M

    RESOLVED - .bat file issue with Process.Start

    I have a .bat file that performs the following steps Rename FileBackup FileEncrypt File (gpg command line)Delete Unencrypted FileFtp Encrypted File This fille runs perfectly when I run it from windows explorer. When I call it with Process.Start the encryption line is skipped completely. I'm...
  17. M

    Remote Execute Process

    I'm trying to make a class where I can remotely execute processes. The code I have below gives me a Return Value of Successful Completion and when looking at the processes in Task Manager I do see a process with the PID returned. The problem is that the process is created and does nothing. :(...
  18. M

    File from SQL Image column

    I've run into a problem getting a file out of an image column in SQL. My method works when I run it against a pdf document. When I try it with an xls file I'm getting back gibberish due to the Utf-8 charset (I think). Can somebody give me a nudge on how to incorporate System.Text.Encoding to...
  19. M

    Calculate an additional row from UNION results

    I've run into a situation where I need to use UNION ALL to combine 3 queries (each returning 1 line) into a result set. I have my queries set up in the following manner and am getting back the 3 rows of data as expected. SELECT... UNION ALL SELECT... UNION ALL SELECT... The problem I'm...
  20. M

    Collections.Generic question

    Imports System.Collections.Generic Partial Class _Default Inherits System.Web.UI.Page Dim collection As New List(Of BlockRecord) Dim entry As New BlockRecord Protected Sub btnAddRecord_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddRecord.Click...
Back
Top