Search:

Type: Posts; User: MattP

Page 1 of 13 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    1,022

    Re: Lambda code not working

    You are correct but he pipes that into a linq where clause which will return an IEnumerable(Of T).
  2. Replies
    12
    Views
    1,176

    Re: [RESOLVED] More efficient way of doing this...

    I would suggest a Dictionary(Of Integer, String) rather than all of this duplicate typing that's going on here.

    Private Shared _rnd As New Random

    Private Sub Form1_Load(sender As...
  3. Replies
    10
    Views
    1,455

    Re: persistent link

    No problem. If you take a look at the /search.php?do=process request in fiddler (or debugger of your choice) you can take a look at the form values being submitted and craft your own query with the...
  4. Replies
    10
    Views
    1,455

    Re: persistent link

    How about this.
  5. Replies
    17
    Views
    14,011

    Re: Send Message with WM_SETTEXT not working.

    Here's how I'd do it.

    Imports System.Runtime.InteropServices
    Public Class Form1

    Private NotInheritable Class NativeMethods
    <DllImport("user32.dll", SetLastError:=True,...
  6. Replies
    17
    Views
    14,011

    Re: Send Message with WM_SETTEXT not working.

    .paul.'s signature is correct.

    GetDlgItem will return NULL if you pass an invalid dialog box handle or a control that doesn't exist hence the default value of 0 you're seeing in ctrl.

    I would...
  7. Replies
    2
    Views
    714

    Re: Where to start on WEB developing?

    Honestly http://www.asp.net/ has a ton of information in the learn section at the top. It's organized well and provides a good base for getting into web development all the way into some pretty...
  8. Re: Converting and storing RGB values in SQL Server?

    Take a look at the ColorTranslator.FromHtml method.
  9. Replies
    7
    Views
    8,728

    VS 2012 Re: Can't start Snipping Tool from code

    If you go to C:\Windows\SysWOW64 you'll find a notepad.exe and a mspaint.exe.
  10. Replies
    7
    Views
    8,728

    VS 2012 Re: Can't start Snipping Tool from code

    The problem is that on a 64-bit OS when a 32-bit app tries to access C:\Windows\System32\ it is redirected to C:\Windows\SysWOW64. You can bypass the redirection by using C:\Windows\sysnative.
    ...
  11. Replies
    5
    Views
    1,401

    VS 02/03 Re: DXF file format and usage

    A quick Googling of Code Project DXF brought this up as the 1st link: http://www.codeproject.com/Articles/156522/DXF-Import-NET-Read-and-View-AutoCAD-Format-Files
  12. Replies
    10
    Views
    2,205

    Re: Windows Form Vs WPF and XAML

    I would check out the Microsoft Design Toolbox. It's Silverlight oriented but you'll get a good look at XAML and good design principles if you go through the whole thing.
  13. VS 2012 Re: I can get the ICON for a FILE EXTENSION - how about the TYPE description?

    The only way I know how to do this is PInvoke.

    Imports System.Runtime.InteropServices

    Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ...
  14. Replies
    7
    Views
    1,084

    VS 2012 Re: stream reader writer

    HongKongCV is suggesting you make a Windows Communication Foundation (WCF) service. You're mixing it up with a Windows Presentation Foundation (WPF) application.

    Here's a good starting point for...
  15. VS 2012 Re: Not the last two characters but the penultimate.

    Dim orig = "Breakfast"
    Dim trimmed = orig.Remove(orig.Length - 2, 1)
  16. Replies
    9
    Views
    1,355

    VS 2010 Re: [RESOLVED] InvalidCastException but is it?

    I would recommend SingleOrDefault if you know there will only ever be 1 or 0 elements in the sequence.


    Dim folderEvent As FolderEvent =...
  17. VS 2010 Re: NullReferenceException and I don't know why.

    You've declared your List(Of Item) but you haven't instantiated it with the New Operator.
  18. Replies
    7
    Views
    1,046

    Re: VB 2010 Assignment

    Create a function where you pass in the letter grade (Name it something meaningful like GetQualityPoints). In that function create a Select Case statement. If the Case is "A" you return 4.0 x the...
  19. VS 2012 Re: Understand if textbox autocomplete suggestion is clicked

    Introduction to COM Interop

    GetKeyState(User32)
  20. Replies
    7
    Views
    980

    VS 2008 Re: add numbers from a text file

    StreamReader is supported in the compact framework. You can use the ReadToEnd method to get a string representation of the file.
  21. VS 2012 Re: Understand if textbox autocomplete suggestion is clicked

    It works on mouse click as well.

    If you want to check if it was a mouse click you'll need to use interop with GetKeyState to check whether the Enter key is actually down.
  22. VS 2012 Re: Understand if textbox autocomplete suggestion is clicked

    Use the KeyDown event and check if e.KeyCode = Keys.Enter.
  23. Re: Curious how many have tried WPF. And if you have not - why?

    Bingo, MVVM works awesome with it!
  24. VS 2012 Re: Geting Value to Jquery's post method's Data in MVC

    Can you show the full UserCreate method?

    I would take a look at using http://fiddler (Or the proxy of your choice) to inspect what's happening on that method call.
  25. Replies
    4
    Views
    1,404

    Re: Sort by Columnheader click

    There's an example here Sorting ListView Items by Column Using Windows Forms.
  26. Re: Help! Add a delay while letting webbrowser to load

    Take a look at the WebBrowser.DocumentCompleted Event.

    Edit: Doh! Teach me to go get an msdn link!
  27. Replies
    26
    Views
    2,667

    Visual Studio 2013 Thoughts

    Since the preview release of Visual Studio 2013 is out I thought I'd create a thread for impressions both good and bad.

    Download link

    CodeLens

    Each method has a hyperlink superimposed above...
  28. Re: Retriving Child elements of particular node using LINQ

    Why are you using an xml file with an inconsistent schema?
  29. Replies
    12
    Views
    1,717

    VS 2012 Re: Saving Regex Results to List or Textbox?

    That looks correct for concatenating the matches value.

    The original regex I provided is incorrect. (?<=>@)\w{4,} will give you the correct results. The I had >a as the prefix match and not >@...
  30. Replies
    12
    Views
    1,717

    VS 2012 Re: Saving Regex Results to List or Textbox?

    You can loop through the Matches collection and get Match.Value for the string. No need to create an array.
  31. Replies
    12
    Views
    1,717

    VS 2012 Re: Saving Regex Results to List or Textbox?

    Try this one (?<=>a)\w{4,}.

    (?<=) matches a prefix but excludes it from the result set.

    \w represents the alphanumeric class [A-Za-z0-9_].

    {4,} at least 4 repititions.
  32. Replies
    13
    Views
    1,639

    VS 2010 Re: Help me to read richtextbox ?

    Who said anything about changing the website? You're setting Email's value to RichTextBox1.Text. This is going to use a different line break character than the website is going to expect.
  33. Replies
    13
    Views
    1,639

    VS 2010 Re: Help me to read richtextbox ?

    So...in the web world you've got a different line break than the RichTextBox is going to use. Try replacing the ControlChars.CrLf with "<br />" and see what happens.
  34. Replies
    3
    Views
    5,281

    VS 2010 Re: Ensure "Sleep" is disabled

    Pretty much the same answer as Edgemeal but .Net is all about reusability. (That and I had this typed up before getting distracted with work)

    Public Class Form1

    Private Sub...
  35. VS 2012 Re: Tech IQ: How Well Do You Know Visual Basic.NET 2012?

    Would you want to? If I was giving someone a test and someone didn't know the answer then going to the internet and being able to find it would be something that I'd definitely like to know was in...
  36. Replies
    7
    Views
    1,179

    VS 2012 Re: Removing "For Each" Statements Help

    While correct that performance wise the loop will run faster on the 1st iteration .FirstOrDefault IS short-circuited.

    Theoretically you can get a little bit of performance using the...
  37. Replies
    14
    Views
    1,530

    VS 2010 Re: how to search in a list ( of boek)

    Here's how to bind a ComboBox to an Enum's values and how to search your list based on the SelectedValue.

    Public Class Form1

    Private LijstBoeken As List(Of Boek)

    Private Sub...
  38. Replies
    14
    Views
    1,530

    VS 2010 Re: how to search in a list ( of boek)

    Here's a couple of ways of getting what you're looking for.

    Public Class Form1

    Private LijstBoeken As List(Of Boek)

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles...
  39. VS 2010 Re: Best way to put a contents of a dataset into a tab delimited file?

    Definitely.

    Tab delimited is easy so I thought I'd mess around with fixed-length and getting it to generate a format string from an array of field lengths. Negative numbers a left aligned and...
  40. Replies
    2
    Views
    1,074

    VS 2010 Re: Floating objects problem

    Can you post the div and css you're using?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width