Im using lockbits to get some img data and the img depth is 24 bit. This means that when i read the values from memory I get the following result. BLUE GREEN RED And I need them in the RED GREEN BLUE Format. I don't know if i can just reverse the bits (i don't know how) or if i need to extract the the values independently(I also don't know how to do this.
I have a combo box which is databound at run time & I need to iterate through it to get all the values in it (not display items) & then add these to an array or collection.
I was just wondering how to extract or parse any particual tags (whichever I specify) from webpages. I know how to extract text and links from webpages, but I tried to use the same method from the following code for div tags, title tags etcetera and it doesn't seem to work:
I have found a good amount of threads, but I don't know what my problem is. I cannot seem to get it. It should be simple but I cannot figure it out. Here is the HTML
I am using DotNetZip for use of extracting a .ZIP from the resources. When I run the standalone .EXE, errors appear about a missing DLL, so I added it into the resources via the properties panel, but I still get the same error. How do I use the embedded .DLL?
Another question, might be the wrong place to ask it but I am having problems extracting 'Conroy.zip' from my resources using DotNetZip. If anyone could show me the code or give advice,
I want to extract some information from a web site (Bloomberg). This side has a search textbox with a onKeyUp event that, as far as I can understand, uses AJAX to create a table. Is it possible to insert some text in the textbox and then get the table created with AJAX? Given the source code of the page with the tabled already AJAXed (If you understand what I want to say here), I can easily retrieve the table. I just need to get the source code with the table already on it.
I am trying to create an application to make self-extracting Exe's in Visual Studio 2010 Express. I would like to have a box in which files can be dropped into, then when you click "Compile" it will compress all files dropped into the box along with 3 others I must have delivered to this self-extracting exe. When the newly created exe is run, it will launch "Install.exe". I know there are other items out there to build the self-extracting exe's. I would however like to make my own that always delivers these 3 specific files along with whatever is dropped into the application.
lets say webpage has 2 strings named sampleObj="sample1" and sampleObj="sample2" Even though sampleObj remains the same the text inside, however, changes.How would you loop inside page and get sampleObj text each time? I tried Regular Expressions and GetElementsByTagName but no luck.
I recently started learning Visual Basic, so my knowledge base on it is very poor.What I am trying to do, is creating a simple form with three scroll bars for RGB colors (valued from 0 to 255) and according to the RGB values changing the backcolor property of a picturebox.
I ran into a dead end while trying to convert the scrollbar integer values into color values and I have no idea what to do. Any suggestions how I should perform these kind of operations?
I'm trying to extract the text between: <label for=field_1> and </label> I have captured the HTML into a string using the webbrowser control, and am using the following function to try and get the text within the tag:Public Function midReturn(ByVal first As String, ByVal last As String, ByVal total As String) As String
[Code]...
However, this code will not work, if I use <label for=field_1> as the first string and </label> as the second.
I had a richtextbox1 contains the following text: <REPLY username =chicco1502 status = OK user_id =3377436 > <user_register.php: 2011-02-19 10:00:06 POST username=edwardzhao [Code] .....
So once I click button1 it should extract only Email plus Password into Email: Password edwardzh*2@hotmail.com:640716 gabriele.sc*hi@email.it:010585 So the email symbol is email= <email that should be extracted here> and so the password sympol password= <password that should be extracted here> Source code [URL]
I have been working lately on a program who extracts URl Source codes!The program does work with most of URL but not for MEdiafire URL!When i check the source code from the web browser i can see there is some code missing;y tried diferrent types of Encoding.
Example:This is the final source code extracted from WEBBROWSER(Firefox,InternetExplorer,GoogleCrome)
I have a text file I'm trying to pull specific data from to make a report in excel and am wanting to know if my code can be improved or if I have something wrong. If it's apparent to anyone that I should be doing something elThis code does work but, very slow. These reports take up to 20 minutes for about 100 files so I am wanting to decrease the time somehow. I have attached the whole sub in a text file, it's about 900 lines long so don't think I should post all of it. This is one part that seems to take the longest:Partial code that reads the text into a string, then each line is read to find whether it holds the data or not. Inside this while loop, I am checking numerous lines to see what they hold and extract specific items. First I verify it's a interface by checking for "line protocol".
Dim str As StreamReader = File.OpenText(filefound) While (str.Peek <> -1) If txtLine.Contains("line protocol") = True Then 'Found an interface,
I'm trying to create a small program, which I think will be helpful to others(in here). My aim is to convert the English text shown in screen to Malayalam. English-to-Malayalam conversion is not a problem. But the problem is, how to extract the text from the screen. In most of the converter/translator, the text needs to be copied or written down in the translator tool. But my program will cut off that part. That is, simply move the program window (having a rectangle hollow portion) to the English word that needs to be converted. And upon pressing a button (or autodetect), the English word is converted to Malayalam.
So, my question is how to extract the English text(or words) from the screen (which is seen through the hollow portion of the window.
I'm trying to write a tool for our Field Engineers to help verify data they come across at customers sites. I need to be able to convert a series of characters to Hex, and then add the values of each Hex pair together, then take the last 2 digits of that sum and use it as a checksum to verify the line's contents.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim byteArray() As Byte Dim hexNumbers As System.Text.StringBuilder = New System.Text.StringBuilder
[code]...
This takes whatever text is entered in Textbox1, and outputs the corresponding HEX values in Box2.For example, "HI" = 48 49 (output as 4849). What I need to now figure out is how to either sum the character values together, or maybe split them apart into an array and add each line of the array together(so I need to add 48+49, to get 91 in this case) I thought about using the "hexnumbers.tostring()" line to then split the string, and add each pair together, but this does not work if there are letters involved, since you can only add letters in Hex.
cliff notes version:Need to add to the above code, so that it takes text entered, such as "HELLO" which = a hex value of "48454C4C4F" and adds 48+45+4C+4C+4F, which should = 174, and then strips everything but the last two digits, so in this case "74".
I'm trying to add some values into a .sdf, but I'm getting the error: cmd.ExecuteNonQuery(): [Token line number=1, Token line offset=202, Token in error=WHERE]
vb.net Dim insertSQL As String = "INSERT INTO myTable(color1, color2, color3) VALUES (@color1, @color2, @color3,) WHERE name=" & myCombobox.Text Try
I know this is possible but not quite how... I'm trying to implement another application start it up invinsible and get/set values inside textboxes. Nothings totally impossible in VS but i guess this might not be easy.
I am writing an administration tool for a game. I have a list of weapons in the game, and each weapon has a unique Id (numeric). Until recently I had this Id just 0, 1, 2, 3, etc... Now however I need some way to allow the user to restrict use of some weapons, and store that information in an Access database. The most obvious approach I thought was to give the weapons Ids that were powers of two: 1, 2, 4, 8, 16, etc... This way, a user can check a number of weapons (via checkboxes or whatever), and I simply store the sum of their Ids in the database. Then I can use a bitmask and the bitwise And operator to check which weapons are restricted and which aren't.
Example: the user selects weapons with Id 2, 4 and 16. The database then stores the value 2+4+16 = 22. Later, I come around and want to check if some weapon is restricted. I then take the bitwise AND operator of 22 and the Id of that weapon. If the result is the Id of the weapon, that means the weapon is restricted. Just the usual bitmasking..Anyway... Long story short: that won't work for the simple reason that I have too many weapons! There are 81 weapons (and counting...) if I counted correctly, which means I'd need values up to 2^81. As far as I know no integer value type in .NET supports numbers that high, except perhaps the BigInteger. But remember: I have to store those Ids in the database as well theoretically even up to 2^82 - 1 if the user decides to restrict every weapon), and I don't think an Access database supports anything over 2^64 (long).
I'm confused at the variety of different ways to say "null" in VB.net. I've got text and numerical fields with checkboxes to mark unknown values; I just want to populate a table with the fields' values (if the corresponding checkbox is not checked) or null values (if checked) so I can later input them into a mySQL database.So my question is just which of the various null types I should be using in what situations.