User Profile

Collapse

Profile Sidebar

Collapse
AndrewBuchan
AndrewBuchan
Last Activity: May 23 '12, 04:05 AM
Joined: Oct 20 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • AndrewBuchan
    started a topic Windows Service to monitor HTTP requests
    in .NET

    Windows Service to monitor HTTP requests

    Hello.

    I developed a Console application which monitored HTTP requests using the third party component called Fiddler (fiddlerCore). This works as expected.

    I need to convert this functionality into a Windows Service. The code is the same as the console application except for that it is in a Windows Service.

    I can install the service and start it correctly but none of the events which monitor HTTP requests...
    See more | Go to post

  • Hi.

    Thanks for your reply.

    There is no SQL Server entry in the services.msc list, nor is there an Instance Names in the registry.

    Is there anyway I can create an instance?
    See more | Go to post

    Leave a comment:


  • AndrewBuchan
    replied to counter increment in a program
    What you need to do is read from the a.txt file before you write your next 'hey baby' line, increment the value and then write out your text.
    See more | Go to post

    Leave a comment:


  • Yes I tried localhost.

    Is there anywhere that lists these? Right now I have the Management Studio but no apparent way to create a server, thus no way of creating a database...
    See more | Go to post

    Leave a comment:


  • Installed SQL Server 2008, how to create an instance

    Hello.

    I just installed SQL Server 2008 (version: 10.0.1600.22)

    Now when I open Management Studio I am asked to Connect To Server. Now, no server is listed, presumably because I have not created one yet.

    So how do I do this? Should the install have done this? If so what is the default instance name?

    Thanks,
    Andrew
    See more | Go to post

  • Application exception - External Component has thrown an exception

    Hello.

    I develop an internal system used to manage our customers. We have 2 offices who use this software every day.

    Every now and again, users of one of the offices run into an error which reads:

    System.Runtime. InteropServices .SEHException: External component has thrown an exception.

    This only happens for one of our offices, and not across the board (I had one user inform me of this exception...
    See more | Go to post

  • AndrewBuchan
    started a topic How to split RDLC into 2 columns

    How to split RDLC into 2 columns

    I am designing an RDLC report which needs to have 2 columns of data.

    The data is grouped by certain fields, there are no page breaks between each instance of a group.

    What I need is for the groups to go down the left hand side of the page, then depending on the dataset I am using to populate the report; if there is enough data then the next group should go to the right of the first group.

    Currently the...
    See more | Go to post

  • AndrewBuchan
    replied to Picturebox and image co-ordinates
    I am just setting the Image property of the PictureBox to the image and then stretching it to fill the PictureBox, the PictureBox is set to Anchor Top, Left, Right, Bottom (in other words to fill the form).

    Exactly, I am looking for a way to map the coord on the PictureBox containing the image to the size of the PictureBox, not the image as the image is smaller than the PictureBox.
    See more | Go to post

    Leave a comment:


  • AndrewBuchan
    replied to Picturebox and image co-ordinates
    Hi Gary.

    I apologise for using the thread for a different issue.

    In reply to your question, I am retrieving data from a SQL Server database which in layman terms is coverage around the world. Depending on the data retrieved, I draw lines on different areas of the world such as covering Australia, US East coast, the UK, etc...

    So currently I am loading an image of the world map, retrieving the data from the db,...
    See more | Go to post

    Leave a comment:


  • AndrewBuchan
    started a topic Picturebox and image co-ordinates

    Picturebox and image co-ordinates

    Thank you for your patience Gary, I followed your advice and have got this functioning.

    Just a side note, if you do not mind.

    The text and lines I am adding are position specific - that is to say, when my form is maximised I draw lines and text in certain positions, the width of the image I load is w500, h347.

    However when I am drawing on the image my coords refer to the coords of the PictureBox cursor...
    See more | Go to post
    Last edited by Stewart Ross; Nov 10 '10, 09:13 PM.

  • I did as I suggested above and the lines using the g object do not seem to be registering - the image does not contain the lines/text I add.

    My constructor looks like this:

    Code:
    private void ResizeAndDisplayImage()
    {
        baseImage = Image.FromFile(imagePath);
        modifiedImage = (Image)baseImage.Clone();
        pbDemo.Image = baseImage;
        pbDemo.SizeMode = PictureBoxSizeMode.StretchImage;
    ...
    See more | Go to post

    Leave a comment:


  • Thanks for your fast reply.

    So when I open the file I do your first and second line, right?

    And in my button event for saving I do the second 2 lines?
    See more | Go to post

    Leave a comment:


  • Draw on an image in a picturebox, then save it as jpg

    I have a .jpg image which I display in a PictureBox like so:

    Code:
    // Members of this form
    private Bitmap bm;
    private string imagePath = "file.jpg";
    
    // Inside constructor of form
    bm = new Bitmap(imagePath);
    pbDemo.Image = _bm;
    This works as expected.

    Now, inside the pbDemo_Paint event I use a Graphics object to draw lines and text onto...
    See more | Go to post

  • AndrewBuchan
    started a topic Grouping data in a Report.rdlc/DataSource

    Grouping data in a Report.rdlc/DataSource

    I am running a Stored Procedure which populates a DataTable. The data returned is 8 columns, varying number of rows. One column in the row defines the "Agent" of that row - basically who manages it (my company, our london office, our greek office etc).

    When my report is displayed I want to group the rows by this column, so for example it lists all corresponding rows for "MyCompany" then "London Office"...
    See more | Go to post
No activity results to display
Show More
Working...