Search results for query: *

  • Users: MattP
  • Order by date
  1. M

    Need help with contact list

    You're using a string to store a collection. Try setting the type to System.Collections.Specialized.StringCollection.
  2. M

    How can i see what CSS code, thats in use.

    After a quick Googling of "check for unused css": Remove unused CSS - CSS Optimizer Dust-Me Selectors NealGrosskopf.com l Find Unused CSS Selectors With CSS Usage, A Firebug Extension Announcing cssess – The Bookmarklet That Finds Unused CSS Selectors | Razor Fast
  3. M

    Question Create txt file and write to it without access denied lock?

    No need to use File.Create at all. Dim stringToWrite = "String written to new file" Using sw As New IO.StreamWriter("C:\Temp\FileCreatedByStreamWriter.txt") sw.WriteLine(stringToWrite) End Using Here's the documentation for StreamWriter Class (System.IO)...
  4. M

    I need help converting a Bitmap to a DIB IntPtr

    The original poster required an IntPtr to a DIB for a 3rd party component which is what was answered. A quick search of the forums shows: http://www.vbdotnetforums.com/graphics-gdi/40105-getting-bitmap-dib-handle.html
  5. M

    Question datagridview + download progress

    Documentation for WebClient.DownloadProgressChanged Event: DownloadProgressChanged Event
  6. M

    I need help converting a Bitmap to a DIB IntPtr

    Can't remember where I got this from to credit the source. Imports System.IO Imports System.Drawing.Imaging Public Class DIB Dim ms As MemoryStream Dim bmpInfo As BITMAPINFO Friend Structure BITMAPINFOHEADER Dim biSize As UInteger Dim biWidth As Integer Dim...
  7. M

    Question Ldap - Display Groups User Is Member Of in a ListBox

    Check out .AddRange rather than .Add
  8. M

    Question grid view

    Here's an excellent source: Forms over Data Video Series While there are plenty of articles out there for working with data I prefer to learn visually. As an added bonus this series really does cover the basics on a lot of situations you'll come across when you need to interact with data...
  9. M

    Parse Files for JPG Header

    At my previous job we had file like this that contained an index at the beginning of the file letting you know each image's start position and file length. Does yours have something like that? Here's an example that should get you far enough to find the start of a jpeg. Plenty of stuff left...
  10. M

    Url Re-writing

    Here's a good start: URL Rewriting in ASP.NET.
  11. M

    Question casting String array to object

    It would help if we had some code to look at...
  12. M

    ghost reading file

    Each line is terminated by CR-CR-LF like JohnH said. I'd recommend something better than Notepad to check out the files. Notepad++ is my editor of choice. It will actually show the extra blank line when you open the file. You can show all the symbols in the document with Notepad++ by...
  13. M

    Keys.PageDown.tostring = Next?

    I remember running into this problem years ago. Here's a thread explaining what's happening: String representation of Keys enum The only fix I came up with was checking for that particular key and hard coding PageDown as the return value.
  14. M

    Question text file name

    That's a part we don't know. Where are the files? Are they the same every time? How do you know which ones they are?
  15. M

    Question text file name

    Try breaking it down into smaller parts: 1. Get a list of text file names and display them in a combobox. 2. When a file is selected display its contents. Try getting step 1 done and then move on to step 2. If you get stuck post the code you've got so far and we'll help you from there.
  16. M

    Linq to Object from XML

    Rather than do a.Parent.Parent.Attribute("assayname") thing it's cleaner to use XNode.Ancestors a.Ancestors("NodeName").Attribute("assayname")
  17. M

    Linq to Object from XML

    Restructure your From statement to go to <column>. Here's a small example that will get you 4 items in your List(Of AssayColumn). Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim xdoc =...
  18. M

    Parameratized database example?

    While parameterizing your query is definitely a good practice (always to this) if you've got a 45 minute call you're trying to get down to a couple of minutes you're looking in the wrong place. The first thing I would personally look for is 'IN' clauses in the query and replace those with...
  19. M

    Question browse for all pdf file in the directory?

    The question you have to ask yourself is if 'C:\Users\COD\Desktop\input' is a file.
  20. M

    Question Required some examples using entity framework (linq)

    Here's the section from the LINQ 101 example dealing with WHERE.
Back
Top