Search Results - VBForums

Search:

Type: Posts; User: MattP

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    339

    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. 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
    689

    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
    689

    Re: persistent link

    How about this.
  5. Replies
    17
    Views
    1,822

    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
    1,822

    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
    331

    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
    1,105

    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
    1,105

    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
    344

    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
    603

    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
    433

    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
    645

    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
    481

    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
    382

    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
    382

    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
    1,717

    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
    951

    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
    951

    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
    951

    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
    741

    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
    741

    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
    534

    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. Sticky: 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
    464

    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
    698

    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
    698

    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
    740

    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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.