Search results for query: *

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

    byte array bounds checking

    I have a website that is to read a .txt file and display it's contents in a formatted way. The problem has arised that a file may be locked and therefore it will need be readable using file.readalltext(filepath).split(vbcrlf). I am now working on reading each file through a byte array and msdn...
  2. M

    Scaling a form to fit to page

    I have code that takes a snapshot of a form to send to a printer. Dim g As Graphics = Me.CreateGraphics() Dim s As Size = Me.Size memoryImage = New Bitmap(s.Width, s.Height, g) Dim mg As Graphics = Graphics.FromImage(memoryImage) Dim dc1 As IntPtr =...
  3. M

    Being able to fax

    I need some help on faxing within my application. I am using vb.net 2005 and .net framework 2.0. The only reference I can find referencing faxes is a COM Fax control 1.0. I really don't want to download a third-party object to fax. Is there anything else I can do? Thanks
  4. M

    Relative path question (server.mappath())

    I am having substantial problems with a Web site I have created. There are different files that get accessed from a "Data Files" folder and .jpg from a "Images" folder. Testing from my PC and others in the same office, the Server.Mappath("Data Files") and Server.Mappath("Images") works great...
  5. M

    Reading an XML file

    I need some help authenticating through an XML file. The .XML has the following format <USERS> <user1>pw</user1> <user2>pw</user2> ... </USERS>I use this code to read and authenticate Protected Sub Login1_Authenticate(ByVal sender As Object, ByVal e As _...
  6. M

    .txt formatting with vbCrLf

    I need a little bit of help with the following code. I am trying to print in a particular format, which I thought this did, but it seems to add an extra vbCrLf to the .txt file, to make it appear to be double spaced. I took out some of the vbCrLf's and all that did was not move to the next...
  7. M

    ftp a local file

    Const localFile As String = "C:\Test.txt" Const remoteFile As String = "/bin/Testing/Test.txt" Const host As String = "ftp://ftp.website.com" Const UserName As String = "user" Const Password As String = "******" Dim URI As String = host & remoteFile Dim ftp As...
  8. M

    printing a string of text

    Public Sub PrintFormatText(ByVal PrintText As String, ByVal Handle As Long, ByVal cpl As Byte) Dim ts As String Dim ln As Integer Dim vr As Array Dim i As Integer vr = Split(PrintText, vbCrLf) For i = LBound(vr) To UBound(vr) ts =...
  9. M

    sorting an array

    I am writing a for/next loop to go through an ArrayList. Each object in the array contain a FromDate, ToDate, and Location. I need to sort out each object first by ToDate, in ascending order, then by FromDate, in ascending order. The kicker is that if both dates match in an object, that when...
  10. M

    emailing in .net

    I am a vb newbie and I have a question concerning sending an email in an application. The application requires that I gather certain info from a db, sort it and then email it. I need to know what are all the steps in setting up this email server. Namespaces, etc. And if you know where I can...
Back
Top