Given a list of DLL paths, find their version number and all assemblies referenced. Some may point to the same DLL but with a different path or version.
My Code:
Dim otherDomain As AppDomain = AppDomain.CreateDomain("otherDomain")
otherDomain.DoCallBack(Sub()
Assembly.ReflectionOnlyLoadFrom("filePath")
how to collect a piece of information from a web page. Here is the web page I want to retrieve the information from: RuneScape - The Number 1 Free Multiplayer Game
I would like to retrieve the first "Price" of the item and collect the price every time I execute the code.I understand how to retrieve the source code of the webpage and split strings but how would I retrieve that price?
Am using MS Access as my back end and I am having a table called "Dept" with 2 columns (dename & cname). In Vb.Net when I click a command button, all the data's of the first column should be displayed in ListBox1 and the Second column in ListBox2. I do not know how to proceed
I'm trying to understand how I would retrieve information about a running process on my machine from a VB.Net routine.For instance, Assume I open Task Manager and see a process called "Bob.exe".From Task manager I can see the PID for Bob.exe, the memory it uses, the I/O information, etc.I want to be able to query the machine for this information for Bob.exe from a method within VB.Net.
I want to create a program in Visual Basic Express which will log into a website by inputting the user name and password for that site and then retrieve certain data from
I need to pull hardware info and display into some type of a control like a ListView. I've been doing some general research and found that most people have used WMI. I would like to avoid WMI if possible because of possible compatibility problems.However, if that's the best way, then that's the way I'll go.I was wondering if anyone knew of other methods, perhaps an API or other unmanaged code?
Right now i have a form in the VB where there are 2 combobox in it. user can choose from a range of products that comes together with some description and these are to be stored in a database table.. when i retrieve these data from another form in VB, i'm only able to retrieve the first product and it repeat e same product in my second textbox.
The program is currently trying to pull information from three different database tables and compiling the information onto one screen, to do this i am using three different connections and a function to handle the data at each stage. The issue is as my code hits PageLoadStage of "2" and runs the QueryDatabase() Function i am encountering an error of: "OleDB exception unhandled: No value given for one or more of the required parameters." This occurs on line 15 of the first code snippet. Can anyone explain this and/or identify any code issues if that is the cause.
I was looking for some stuff online, and i was looking through my reference sheets for vb.net, but it seems in the code i have found, there is declare in methods. Below is an example i am talking about. The thing is, that i dont recognize it and believe that it is an earlier version of Visual Basic ( 6 or earlier) which used it. Should i just keep looking for different code?
Public Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal _ lpSubKey As String, phkResult As Long) As Long
Goal: Find information on how to implement a method which will check if a certain DSN exists, and then if it does, extract the information and use the information for connection purposes.
I have a text box where i am entering numbers of double datatype andon the Keytdown event of the textbox some checks take pace and in certain circumstances I want to be able to stop the user from entering other information until they enter the right information in the textbox (where it says right here) . now when I say exit sub the textbox somehow loses focus . but this is not how I want it to be I want the textbox to remain with the focus so the user can change the information . How can i go about this. And the other thing is why is my txtDestPayRate1.Focus() just befor the exit sub not working?
Private Sub txtDestPayRate1_KeyDown1(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles txtDestPayRate1.KeyDown
I am designing a backup/restore utility for work.atm i have been able to populate field for PC name, IP address, MAC address, number of printers installed on the PC but i am wondering is it possble to get all the printer information 'with the click of a button' to print all information like the prnmngr.vbs script down.I am able to run a batch file but i wanna get it to go from that app or even embed to batch file to the app and run it form there .
I am using VB2005 and trying to put an application together.What it needs to do is retrieve information from a binary file, possibly alter that information, and put it back into a new file.The file is a .wav file with data appened to the end. There is an additional section at the end of the .wav file which stores xml data.I have found that if I open this in a hex editor and make a 1:1 swap on any of the bytes that the application that the file is for can still read the XML.If I tried to add or remove characters from the XML then it would not read. I located a header byte and incremented it to resolve this.
This worked as an excellent bandage to do conversions where the data always needed to be changed to the same thing.What I have been asked to do is build logic that allows for different things to happen depending upon what data is contained within the file.The method that I am currently trying to impliment is:
Read through the file with a system.io.binaryreader
Searche for a bytestream that will signal data is coming
For example:
If System.IO.File.Exists("C: est estread.wav") Then Dim findit() As Integer = New Integer() {&H3C, &H55, &H73, &H72, &H44, &H65, &H66, &H30, &H31, &H30} Dim i As Integer[code].....
And then extract all the data till the end of element marker "<" It seemed like there should be a better way and I was looking for some insight. If I proceed with this method, I will have to read the file one time to gather the information and then a second time to write it all out with the header modified for length.This is my first experiene with working with binary files in this way.Also,I've been experiementing with building a string and slapping it back in at the end using the binarywriter.write(string) method.I noticed that it was putting in header characters before the string.These seem to change if I change the length of the string.At one point it was d0 07. Later it became e7 07. Does anyone know of a way to prevent this header from being inserted?
I tried a for each loop to grab all of the characters from the string, convert them to a byte array and deposit the byte array into the file, but the header remained the same. When I write the byte array generated from a system.io.binaryreader I do not get this header.
I have a fair bit of experience with VB.NET and C# (In this case I chose VB.NET, blame my laziness), but I do most of my professional work using PHP. I have no experience what so ever in using any database with VB.NET let alone MySQL.Just FYI, at the moment I am only trying to Query the database to gather the information required to activate. The Activation wizard and algorithm building (which is finished anyway), and everything else will come soon. I chose the MySQL database because I have experience with it, and it seems the best option for remote usage.The whole idea already works in PHP, I'm just have major issues moving it accross into VB.NET (Using the MySQL Connector.NET);I understand the basics, and all I need to know how to do is Count Rows and gain access to the other information in a row based on provoided information (in PHP, through mysql_ result)
So, here goes nothing, this is the Query code I am using in PHP to complete the job I want to do in VB.NET. [code] As you can see, I basically need to get the PHP code into VB.NET to fit into the 'btnQueryDB.Click' Command in VB.NET. By Equivalent, the Product ID in VB.NET will come from 'txtPID' and similar, Serial Number will come from txtSNUM. Once counted to be 1, the Activation Code and Status will be fed into 2 other text boxes in the form. (acCode, and acStatus).
I have a databound combobox that contains 2 fields but obviously only 1 is displayed. My question is...how do I retrieve the field that is NOT the "Displaymember"?
how come when I retrieve my data from SQL my date field returns the date along with a time of 12:00:00 AM???? The Sql BD Type is Date and it is a date only in the SqlDB. I'm populating the date into a textbox.
I'm trying to download files and fill the progressbar correctly. The problem is that I'm missing something in the code below, because it doesn't work:
Dim streamer As MemoryStream = New MemoryStream Dim reader As StreamReader = New StreamReader(streamer) Using fs As New IO.FileStream(PathAndFile, IO.FileMode.Create, IO.FileAccess.Write)
retriving the DNS server ip of my computer. But with my codes i only manage to the IP address of my computer.
Dim IPAddress As IPAddress = Dns.GetHostEntry(Dns.GetHostName).AddressList(1) Dim strIPAddress As String = IPAddress.ToString TextBox3.Text = strIPAddress
I have a rather simple task, retrieving an image file from a virtual folder outside of my ASP.Net web Application (The Virtual Folder is in the root of the website) and then displaying it in an image control. I am able to to access a Virtual Folder that is within the web site. Here is my code that
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim sourcefile As String = Server.MapPath("~/Common/Images/LAPDPatch.jpg") Image1.ImageUrl = sourcefile End Sub
What am I doing wrong?
Ok, I was able to figure it out: Ok, I was able to get it working, I was using the wrong "slash" character I was using the forward slash instead of the back slash:
Dim sourcefile As String = Server.MapPath("VitualFolderName") & "ImagesLAPDPatch.jpg"
I got a weird problem here like I got a site that users can post comments on a friend profile page.Everytime a user post a comment my application sends e-mail to that page owner, you know to inform for a new posted comment on his/her profile page.The problem is I want to stop the application from sending email if that user has just recently posted a comment say like 5 hours ago/earlier.Here is the function I use that would try to check it:
I've created a module for my website and when a button is clicked, it calls a VB sub on the server.
I need this sub to retrieve the values that were filled in on the form, but the things I need to retrieve values from are not asp controls, they are simple <input> and <select> tags.
How can I retrieve values from input on a .aspx page from VB code executed behind it?
Public Class Class1 Public mSize As Integer End Class
1) How to define another method inside the Class1 that allows other programs to retrieve the value of mSize and 2) How to disallow client programs from directly accessing mSize.
I am doing invoicing using VS2008 VB. I use Crystal Reports to produce the invoice. I create an in memory dataset to pass to Crystal Reports. What I would like to do is save the dataset I sent to Crystal Reports as an audit trail of the exact invoice. It would only be retrieved in the event of a dispute concerning the original invoice. I thought of using the WriteXML, ReadXML. But that would overwrite the existing XML. Does anyone have a better way of saving the XML for future retrieval?
I have MSaccess database.I have 2 tables 1) CUSTOMER TABLE=----CUSTOMER ID-Primary --AUTO NUMBER2) ORDER TABLE =----(CUSTOMER ID--Foreign KEY) Now From the front end using VB.net I have an page in which if i enter Customer details and press button add .I have to INSERT into values into CUSTOMER TABLE and I Also at the same time INSERT into ORDER TABLE with this CUSTOMER ID which i generated now.How is it possibl
Dim NewOutwarsDeliveryNoteNumber As Integer Dim iSql As String = "SELECT MAX(OutwardsRefNumber) FROM NewOutwards" Dim da As OleDbDataAdapter = New OleDbDataAdapter(iSql, LoginForm1.Conn)
[code]....
when I try and run this code it gives me the error that says "Column 'OutwardsRefNumber' does not belong to table ."BUt I am 100% sure this column is in my table. what can I do to correct it?
I'm uploading a flv / swf file and I need to capture the dimensions of those files so I could later retrieve it from a database and embed it into a page.
I'd like my application to be able to detect a where a particular USB device has been mounted, and adapt accordingly. Ideally, I'd associate paths with a USB serial number, rather than with a given path. However, I cannot figure out a simple way to access these unique IDs from VB.Net code.