Write An Url Sniffer Type Application Like Firebug - Obtain The Headers Using The Method?

Dec 14, 2009

I'm going to write a url sniffer type application like firebug, just for the exercise.I have used httpRequest/response in the past and wonder how i could obtain the headers using this method? or perhaps i need to be going down the root of sockets which i know nothing of value about? perhaps it can be done using webbrowser too.

View 1 Replies


ADVERTISEMENT

C# - Calling A Method In A FACTORY Class When Application Is Closed / Disposed Without Using Application's Dispose() Method

Mar 28, 2012

I am indifferent if you are a VB.NET or C# or other .NET developer. I have a FACTORY class like the following:

[Code]...

View 2 Replies

Custom ComBobox With Headers - Prevent Selection Of Headers?

Dec 15, 2009

I am working on a windows application using VB.net 2.0 and want to create a custom ComboboxControl which displays multiple groups. I was able to display the items in Custom combobox with headers. Below is the sample.

Header 1
Item 1_1
Item 1_2

[code]....

I want to prevent users from selecting the header items. I managed to revert back to the previously selected item if user selects the header item. Problem with this approach is drop down collapses and then reverts back to previously selected item. Is there a way to check, if the item being selected is a header item and if it is a header item, do not collapse the dropdown. Basically I want to implement behavior of HTML select list with optgroup.

1_1 1_2 1_3 2_1 2_2 2_3

View 4 Replies

Any Third Party Dll That Can Be Incorporated In A WPF Application To Obtain On Fly Encryption?

Jul 4, 2010

Is there any third party dll that can be incorporated in a WPF (vb.net) application to obtain a on the fly encryption?

View 2 Replies

Obtain Handles Of Controls Of An External Application?

Dec 29, 2010

If I use Spy++ and pass it Finder over the controls of every desktop window I can see the Handle of each of these controls.

View 2 Replies

.net - Get A Base Class Method Return Type To Be The Subclass Type?

Nov 23, 2009

I have a copy function that I'd like to override in subclasses to return the type of the subclass. Here are my interfaces:

Public Interface IBase(Of T)
Function Copy() As T
End Interface

[Code]....

View 4 Replies

LINQ To Entities Does Not Recognize The Method [Type] GetValue[Type]?

Mar 14, 2012

I've a simple class like this:

Public Class CalculationParameter{
public Long TariffId{get;set;}
}

In a workflow activity, I've an Assign like this:

(From tariffDetail In db.Context.TariffDetails
Where tariffDetial.TariffId = calculationParameter.TariffId).FirstOrDefault()

Dto is passed to Activity as an Input Argument.It raise following error and I'm wondering how to assign Id.LINQ to Entities does not recognize the method 'Int64

GetValue[Int64](System.Activities.LocationReference)' method, and this method cannot be translated into a store expression.

How can I assign the calculationParameter.TariffId to tariffDetial.TariffId?!

UPDATE:Screen shot attached shows that how I'm trying to assign calculationParameter.TariffId to tariffDetail.TariffId (car.Id = Dto.Id) and the query result should assign to CurrentTrafficDetail object.

View 1 Replies

Obtain Information From Active Directory In A VB 2008 Console Application?

Dec 29, 2009

I am new to VB; am developing my first VB program; and require some help in getting started. I wish to query information from an Active Directory server using a Visual Basic 2008 console application. I have .NET Framwork 3.5 installed and VB 2008 Express installed. Do I need to install anything else (any additional libraries or components)? Is VB 2008 Express capable of accessing information from Active Directory? Where can I find information about the classes and methods I should use query information from Active Directory?

View 6 Replies

Cast Value Type To Nullable Enumeration Type In Generic Object If All Types Are Unknown At Write-time?

Dec 14, 2011

I have a generic Class I'm using to hold information loaded from a database.I have a method which takes a DataRow as an argument, uses the object's known column name and extracts the data from the DataRow, such that:Dim loadData As T = CType(myDataRow("myColumnName"), T))works as my default assignment in most cases.Unfortunately, due to some horrifying design constraints, some of my columns may be null, and may also be taken from enumerations.This means that when <T> is Nullable(Of SomeEnumeration) the above code does not work because I can't cast 0 directly to SomeEnumeration.Zero.Is there some way to check whether <T> is Nullable(Of [Enum])? Or some way to write a method which allows Integers to be cast to Nullable(Of [Enum])?I feel like I'm forgetting something that would allow me to write one of the other of these, but my weak google-fu is turning up nothing.

EDIT: Okay, thanks to dasblinkenlight's answer below, I can detect when this circumstance is occurring, but what I need to do now is to take a type <T> which I know is Nullable(Of SomeClass), get a type reference to SomeClass and then create a new object of type Nullable(Of SomeClass) and assign that to LoadData.My problem was that I had a lot of difficulty in finding any function which would accept baseType as an actual Type.Parse accepted baseType as a parameter, I knew baseType was an [Enum] type because of dasblinkenlight's code, so I was, in this instance, able to code a solution. It's a solution which is very specific to my problem (i.e., T is Nullable(of SomeEnumeration)), but it's a solution nonetheless.

View 2 Replies

Pointers For A Web Sniffer/auto Responder?

Sep 11, 2011

I'm looking to make a simple web traffic sniffer that will automatically reply toauthentication requests from a predefined source, but I'm not entirely sure how tostart/what I am looking at my self here.I guess it's easier to explain if you have a short backstory;I use WebDAV, but Windows does NOT have good support for this (lacking Basic auth support, and Digest support being flawed at best), so you are forced to manuallyauthenticate with a username and password every time you open a file, when you start your computer or a word document (for example) loads resource such as images (imagine writing yoru username and password for every image in a powerpoint!).

View 2 Replies

Make A Packet Sniffer That Will Give SSL Packets

Oct 11, 2010

I need to make a packet sniffer that will give me SSL packets. It doesn't need to give me any other information than the body of the packet, the actual data being sent to me. It does not need to differentiate between different IP addresses. And, it doesn't even need to differentiate between things which are and are not SSL packets. Any packets will be fine, it just needs to support SSL packets. The fewer lines of code the better...

View 5 Replies

VS 2005 : Avoid Packet Sniffer To Pick Up The Outcoming Connection Details?

Aug 17, 2010

I am thinking of creating a code to allows my project to pass through the port forward without the outcoming connection details being pass on the third party software such as packet sniffer.Is it possible to avoid packet sniffer to pick up the outcoming connection details?

View 2 Replies

VS 2008 Uploading Files With FTP Then People Can Always Read My Information With Network Sniffer

May 20, 2009

Well when i am uploading files with FTP then people can always read my information with a Network Sniffer.Thats why i now want to solve it with a PHP-Script now:This is the information when i upload a file:everything that is red i do not understand i tryed it then with the code below but doesent work. [code]

View 3 Replies

Get The Number Type Data As A Number Type Using The Dataset Readxml Method?

Feb 17, 2010

i am getting the xml using readxml method. And then display the data in datagrid. But number type columns comes as string type in the dataset. So when datagrid displays , sortingdatagrid columns is not correct. For example it sorts like this:

Salary
1180
12133

[code]......

View 2 Replies

Write Method For Insert Into Table?

Jun 2, 2011

I want to write a method or function that help me for insert into database.[code]...

View 2 Replies

C# - Write An Embedded Method For An Expression In MS Reports?

Jan 11, 2012

I want to create a (vb.net) method and call it from an expression like this:

=Code.WhereDoIWriteThiscode(Fields!SomeValue.Value)

Where do I write this WhereDoIWriteThiscode method ?The documentation says it is an embedded method.

View 1 Replies

Cannot Write XML Declaration. WriteStartDocument Method Has Already Written It

Sep 10, 2009

I want to pass an XmlDocument as a parameter to my webservice method. After I have loaded an XML file from a path, when I try to send the XmlDocument as a parameter by webservice method, I come across this error. What can be the reason? I use StreamWriter and I close it. I don't use XmlWriter.The development environment is VS 2008

Error Message:

Cannot write XML declaration. WriteStartDocument method has already written it.

Edit (from comments):I can't post all the code because it has more than 1000 lines. Also when I load Xmldocument in web, I can't use this method without problem. Maybe Webservice causes a problem?

Dim xml As New XmlDocument
xml.Load("My Documents" & xmlfile & ".xml")
myTransfer.Save_XML(xml, 1)

[code]....

View 1 Replies

Linq - Write Lambda Select Method In .net?

May 22, 2012

For I've tried this:Dim exampleItems As Dictionary(Of String, String) = New Dictionary(Of String, String)
Dim blah = exampleItems.Select (Function(x) New (x.Key, x.Value)).ToList 'error here

But I'm getting a syntax error and all the examples that I've seen are in C#.

View 1 Replies

Write A Generic Extension Method For Every Enumerable(Of T)?

May 30, 2012

After looking at this thread.>>

How to randomize the alphabet I have decided to make it into an extension method for a String and a List.

Note: Please see the following post if you are still using VB.Net 2002, 2003 or 2005

this code is for use with 2008 and later versions of VB.Net

String.Mix and also List.Mix I was trying to write a generic extension method for every Enumerable(Of T)

I settled on just doing it for a STRING

[Code]...

View 16 Replies

Write A Method To Shuffle A Deck Of Cards

Nov 13, 2011

I have a standard deck of 52 cards is represented in an array. Each card is represented as an integer. I wrote the below function to shuffle the cards. Does the code below look ok?

Module Module3
Sub Main()
' initialize array

[Code].....

View 3 Replies

Html Source Code Doesn't Show Html But In Firebug Inspect Element Html Is There?

Jan 10, 2012

This may sound really stupid but I have to ask cause I'm not finding this answer anywhere.I have an application where the user will need to sign up for a new user account on the website [URL]..However when I am using Firefox's plug-in Firebug to view html I am getting something totally different than when I just right click on the site and view the page source.

What I am trying to do is to get the captcha from the website and display it in a picturebox on the application so the user can view the captcha, solve the captcha and then the app post is back to the service for a response.

Here is the source that I am getting using Firefox's Firebug to inspect the element:

<td>
<input type="hidden" value="Oo3Jo1I8bgzK68agMqo3s79ZZib2OkbK" name="iden">
<img class="capimage" src="/captcha/Oo3Jo1I8bgzK68agMqo3s79ZZib2OkbK.png" alt="i wonder if these things even work">
</td>

[Code]...

Why would the two be showing me two different versions of the HTML?

And how would you be able to grab that source to view in a picturebox using webclient?

View 2 Replies

Call A Method That Compute Some Data That Method Is On Another Form In Windows Form Application?

Mar 17, 2012

i want to which way is better when concentration is on processing speed. i want to call a method that compute some data that method is on another form in my windows form application then what you prefer is better way 1) to call that method in another form and use returned value or create similar method in form where it is required.i want to make it's processing fast.

View 3 Replies

Write A Method That Is Called From A Variety Of Forms At Load?

Nov 29, 2010

I'm trying to write a method that is called from a variety of forms at load. So with a Form1 load event I would call the following:

Dim testpoint As New Point(10, 20)
DrawVerticalStringFromBottomUp("Hello", testpoint, Me)
The DrawVerticalSTringFromBottomUp Method is as follows:

[Code]....

When I call the code at a form's load event, nothing happens. When I call it from a button click after the form has loaded it works! I know this should be called from the paint method, but that doesn't suit my purposes.

way to make this work from the form load event?

View 4 Replies

Unable To Cast Object Of Type 'System.IO.FileStream' To Type 'Excel.Application'

Jun 1, 2009

I'm having a problem with converting from one source type to a destination type. I have a form with 2 buttons (button 2 uses the OpenFileDialog to have the user open an excel file set to NewFile),(button 1 takes the contents from specific cells in NewFile and arranges them how I need into oXLApp1).

The error I get is "Unable to cast object of type 'System.IO.FileStream' to type 'Excel.Application'." in line 14 of the code below.

Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

[Code]....

View 4 Replies

Winforms - Calling A Method From Different Class To Write Text On A Form?

Dec 5, 2011

I have two forms Form1 and Form 2. I am passing a function with three values from Form1 and want the load event of form2 to trigger this function.. Basically I want to "paint" the values of qseq, midline and hseq on form2

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code].....

When I run this, nothing gets printed on form2 as when load event is triggered thee drawstring method is not called. how can I call drawstring from load method as drawstring takes in arguments and is called from Form1 class.

View 1 Replies

.net - Extension Method And Type Constraints?

Sep 13, 2010

I am starting to play with extension methods and i came across with this problem:In the next scenario i get a: "extension method has a type constraint that can never be satisfied"

Public Interface IKeyedObject(Of TKey As IEquatable(Of TKey))
ReadOnly Property InstanceKey() As TKey
End Interface

[Code]...

View 1 Replies

Access Method Of ServiceHost Type?

Dec 2, 2009

So I have a WCF Service that has service methods. One of the methods needs to be called from the application that is hosting the service. I am using a ServiceHost to host it. [code]...

View 1 Replies

C#: Why Does The String Type Have A .ToString() Method

Apr 25, 2012

Possible Duplicate: C#: why does the string type have a .ToString() method?Why is there a ToString method exist in String class (VB.NET)?

String.ToString()

Will it be a overhead if it is used like

TextBox.Text.ToString()

View 5 Replies

Using Process.Start Method To Launch Another Application From Application?

Feb 27, 2010

I'm using Process.Start method to launch another application from my application. Until today, there was no problem. But I have tested my application in a different OS, Windows XP (SP3), and my application didn't work right on that. I'm also using arguments to run that application. I guess for some reason my application couldn't send arguments to other application correctly under Windows XP. Maybe it is related to my code. But you should know, it works great on Windows 7.

[Code]...

View 3 Replies

Calling A Method Over Variable Of Type Object In Vb And C#

Jul 5, 2009

in vb I can do that

sub SetFocusControl(byref ctl as object)
ctl.Focus
end sub

in c# the compiler complaint that object doesn't have a Focus method

void SetFocusControl(ref object ctl)
{
ctl.Focus();
}

how can I do the same in c#?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved