Search:
Type: Posts; User: MattP
Search:
Search took 0.08 seconds.
-
You are correct but he pipes that into a linq where clause which will return an IEnumerable(Of T).
-
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...
-
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...
-
-
Here's how I'd do it.
Imports System.Runtime.InteropServices
Public Class Form1
Private NotInheritable Class NativeMethods
<DllImport("user32.dll", SetLastError:=True,...
-
.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...
-
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...
-
Take a look at the ColorTranslator.FromHtml method.
-
If you go to C:\Windows\SysWOW64 you'll find a notepad.exe and a mspaint.exe.
-
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.
...
-
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
-
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.
-
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
...
-
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...
-
Dim orig = "Breakfast"
Dim trimmed = orig.Remove(orig.Length - 2, 1)
-
I would recommend SingleOrDefault if you know there will only ever be 1 or 0 elements in the sequence.
Dim folderEvent As FolderEvent =...
-
You've declared your List(Of Item) but you haven't instantiated it with the New Operator.
-
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...
-
Introduction to COM Interop
GetKeyState(User32)
-
StreamReader is supported in the compact framework. You can use the ReadToEnd method to get a string representation of the file.
-
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.
-
Use the KeyDown event and check if e.KeyCode = Keys.Enter.
-
Bingo, MVVM works awesome with it!
-
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.
-
There's an example here Sorting ListView Items by Column Using Windows Forms.
-
Take a look at the WebBrowser.DocumentCompleted Event.
Edit: Doh! Teach me to go get an msdn link!
-
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...
-
Why are you using an xml file with an inconsistent schema?
-
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 >@...
-
You can loop through the Matches collection and get Match.Value for the string. No need to create an array.
-
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.
-
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.
-
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.
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
Can you post the div and css you're using?
|
Click Here to Expand Forum to Full Width
|