User Profile

Collapse

Profile Sidebar

Collapse
Asprisa
Asprisa
Last Activity: Jul 7 '15, 07:49 AM
Joined: Oct 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi Frinny,

    Thanks for the reply, I was doing some thinking last night and managed to come up with the answer this morning.

    It goes along the lines you were thinking at the bottom of your post:

    Code:
    theBody.AppendLine("<p>")
    
    Using SR = New IO.StringReader(description)
    
    While SR.Peek >= 0
    
    Dim l As String = SR.ReadLine()
    
    theBody.AppendLine(l
    ...
    See more | Go to post

    Leave a comment:


  • String Variable not formatted in HTML Email

    Hi Guys,

    Been racking my brain most of the afternoon on this one, if anyone can shed any light, i would really appriciate it.

    Basically I am pulling the body of an email out as text not HTML into a variable called Description (string), if i show the variable in a msgbox it is formatted in terms of line breaks etc.

    I then add the description variable to a line in an HTML formatted email, the email is perfect...
    See more | Go to post

  • I managed to fix my own problem, the issue was if the property was empty it caused the rest of the query to go a bit loopy, so get around it i used this:

    Code:
    li = Me.ListView1.Items.Add(ItemRes.Properties("samaccountname")(0).ToString())
    
    If ItemRes.Properties.Contains("department") Then
    
    li.SubItems.Add(ItemRes.Properties("department")(0).ToString())
    
    Else
    ...
    See more | Go to post

    Leave a comment:


  • Asprisa
    started a topic Active Directory Query to Listview

    Active Directory Query to Listview

    Hi All,

    Something weried happening when i try and return 4 AD properties to a listview box, here is my code:

    Code:
            
    Dim li As ListViewItem
    
    Dim dirEntry As DirectoryEntry = New DirectoryEntry("LDAP://172.16.0.3/OU=Staff,OU=Users,OU=Accounts,OU=Network,DC=X,DC=local")
    
    dirEntry.Username = "x"
    dirEntry.Password = "x"
    
    Dim search As
    ...
    See more | Go to post

  • Asprisa
    replied to Change the size of textbox
    could you try addressbar.widt h = me.width - 606

    I would make it a function and call the function in the rezise event.
    See more | Go to post

    Leave a comment:


  • Asprisa
    replied to Label appears after 10 seconds
    Hi,

    I assume you have timer2.start() in the form_load?

    Also in the tick event, flag has not been set to anything, i would first assign Flag a value like 0, but then your code says flag = flag + 1 so the value would be 1, meaning the value of the label would be set to visible = false, and at the end of the event Flag is set back to 0, meaning the value would only ever be 1 or visible = false.

    I do not know what...
    See more | Go to post
    Last edited by Frinavale; Oct 31 '12, 04:21 PM. Reason: Added code tags

    Leave a comment:


  • Asprisa
    started a topic Scrolling Text Slow down?

    Scrolling Text Slow down?

    Hi Guys,

    I am developing an application to serve as a TV based informational board. I am using a timer to scroll 2 labels (1 to the right of the other)from right to left on the screen to make it look like a marquee, however after about 25 seconds or roughly when the second label starts trailing the first the speed of the labels slows down dramatically, would someone mind looking at my code and letting me know what could be going wrong?...
    See more | Go to post

  • object reference not set to an instance of an object

    Hi Guys,

    We have a aspx page on a web server that was created by someone who has now left our company which for some reason just started throwing an error, i have been looking into reasons for about 3 days now and am not getting any where, can any one put me in the right direction?

    The error is:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------...
    See more | Go to post
    Last edited by Frinavale; Apr 7 '10, 08:08 PM. Reason: Please post code in [code] ... [/code] tags. It makes it easier for us to read your posted code. Added code tags.

  • Asprisa
    started a topic Listbox to Word Document
    in .NET

    Listbox to Word Document

    Hi Guys,

    I am half way through a program and have hit a bit of a wall, I am putting variables from a program (labels and text boxes) into a word document template, So far i have been putting the variables into the document by using this code:

    Code:
    thisDoc.Content.Find.Execute(FindText"<<TITLECOUNT, ReplaceWith:=lblcomputername.Text, Replace:=Word.WdReplace.wdReplaceOne)
    The problem i have is that...
    See more | Go to post
    Last edited by Asprisa; Jan 23 '09, 08:20 PM. Reason: Code Syntax issue....

  • Asprisa
    replied to wrdApp.Selection() question
    in .NET
    Hi There,

    I have extracted this code as an example to show you, basically it opens a word doc, and writes text and images onto the document, but when it does it, there is automatically a line seperating two lines of text, so i wondered if there was a way of setting the paragraph to 'no spacing' .

    Code:
     Dim wrdApp As Word.Application
        Dim wrdDoc As Word._Document
    
     ' Create an instance of Word  and
    ...
    See more | Go to post

    Leave a comment:


  • Asprisa
    started a topic wrdApp.Selection() question
    in .NET

    wrdApp.Selection() question

    Hi Guys,

    Hopefully this is a quick one, i am currently building an application that mail merge's data to Microsoft Word, when the text is sent across it has line spacing all i want to do is set it to no spacing, i have looked at:

    wrdSelection.Pa ragraphs.Format .space1
    wrdSelection.Pa ragraphs.Format .space15
    wrdSelection.Pa ragraphs.Format .space2

    i cannot seem to find either a "no line space"...
    See more | Go to post

  • Asprisa
    replied to Connecting to network share
    in .NET
    i just came across this code i will try this and let you know what happens.

    Code:
     Dim imp As New RunAs_Impersonator 
    Try
    imp.ImpersonateStart(DomainName, UserName, Password) 'creates new context using token for user
     
    Add code to run as UserName here 'everything between ImpersonateStart and ImpersonateStop will be run as the impersonated user
     
    imp.ImpersonateStop() 
    Catch ex As Exception 'make sure
    ...
    See more | Go to post
    Last edited by DrBunchman; Jul 3 '08, 12:19 PM. Reason: Added code tags - Please use the # button

    Leave a comment:


  • Asprisa
    replied to Connecting to network share
    in .NET
    Sorry it is a windows app
    See more | Go to post

    Leave a comment:


  • Asprisa
    replied to Connecting to network share
    in .NET
    im not sure if this is possible as it will be run locally on around 128 notebooks, i want to obvisouly make as little work as possible for myself and anyone else who works on this project in the future. Is this possible the way you talk about?
    See more | Go to post

    Leave a comment:


  • Asprisa
    replied to PHP file upload
    in PHP
    Hi Guys,

    Thank you very much for your replies, i managed to get the code working!

    Jay!
    See more | Go to post

    Leave a comment:


  • Asprisa
    started a topic Connecting to network share
    in .NET

    Connecting to network share

    hi guys,

    i was wondering if there is a way to connect to a server share that requires a username and password without mapping it as a drive, what i wish to do is open a session so i can save a log file, but i do not wish the user who is running the application to see the share or the log file, i ahve played with an oledb connection but it kept complaining about workgroup information being missing.

    Here is my code:
    ...
    See more | Go to post
    Last edited by DrBunchman; Jul 3 '08, 12:20 PM. Reason: Added code tags - Please use the # button

  • Asprisa
    started a topic PHP file upload
    in PHP

    PHP file upload

    Hi guys,

    I have managed to code a file that uploads a file, resizes it to 100 x 100 px, and then generates a random number and renames the image (so i do not get images over writing each other), what i am stuck on is trying to block uploads that are over 200kb, and if there is no file to upload (as there will be no need sometimes to upload a file) to skip the code all together in order to process some more code i got going on after...
    See more | Go to post

  • Asprisa
    replied to Ping Problems
    in .NET
    Hi Guys!

    I have tried playing with the Use the System.Threadin g.Timer object and it seemed unsuccessful. I have moved the ping code into a sperate function and am calling the function from the form load, the first ping works fine, the app takes a little time to load but when i loop the code after a timer etc.. the app freezes until the loop has continued, this is not an issue if all i was going to do was loop the code but i wish to...
    See more | Go to post

    Leave a comment:


  • Asprisa
    started a topic Ping Problems
    in .NET

    Ping Problems

    Hi Guys,

    I am developing a small app just to check our servers are still online, at the moment i have got the my.computer.net work.ping pinging 12 of our servers and changing a label to say either server online or server offline, i am trying to get this to happen every 15 seconds, i have tried loops etc but it freezes the app, i came across application.doe vents which enabled the form to load without freezing. I was wondering if someone...
    See more | Go to post

  • Asprisa
    replied to ListView and Opening Items
    Thanks to all those that helped! jamesd0142 - Your Solution worked wonders, i would of thought that something this basic would be all over the internet but i could not find it any where!

    All the best!

    Jay!
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...