VS 2008 : Get Part Of A Webpage?
Jul 1, 2009Is there a way to load and get let's say only the first 500 characters of a website instead of the whole thing?
View 6 RepliesIs there a way to load and get let's say only the first 500 characters of a website instead of the whole thing?
View 6 Repliesi would need to extract a part of a website like this
<span id="wood" title="4800" class="res">85206</span>
I want to get the value "85206".
How to show a specific part of web page in visual basic form or in webbrowser?
this is problem for someone but like my problem.I am creating a application,at present my application is in development stage My app has a web browser control and a button the web browser will load you tube videos in the web page.i need to do display the video but i like to skip the other parts of the web page.this means showing video player on the web page and skipping the other parts
on a site, there is a chat that is closed source. Is there a way that i can have a webbrowser view only a certain part of a webpage?
View 1 RepliesI'm trying to make an application which will log me into a site and read the text of the site and display a certain part of that text in my form. I'm stuck at the login, its a .php page with 2 text boxes, 1 check box and 1 button.Is there any way to manipulate those objects by using controls in my form?
View 14 Repliesim making an application in vb.net (duh!) anyway i have created and coded the whole project and it performs exactly as i want it to (i dont need code help). my problem lies with the fact that my project is 2-3 parts
1.a setup form that gathers inital data about the enviroment stores this data encrypted in a config file. after inital setup this form is not displayed again. but needs to be run on both computers
2. the second form is the real application form im in the process of turning this part in to a background service anyway this form is the one that establishes the connection between two nodes it works correctly
3. the config files
anyway here is my problem i want to make this application distributional with just one file the (.exe) and have this .exe make everything else happen. it runs the setup form and creates the first config file which it does then it needs to produce a copy of just the second form and the config file to transfer to workstation #2 that will run independtly without the whole application which i cant make happen then it needs to turn both workstations application on by only starting one on either computer and invoke the other computer to start its corrosponding app also no idea how to make this happen any ideas or suggestions as to where to look to try to find my answers.im thinking i might need to make two seperate applications (a setup app, and the running app) and include them both in a project and use the setup.exe to to package them together this is a little side project that im making for my self to use to make programming a little easier so i plan on giving it out to some fellow students to test and tell me what they think so im not really worried about ease of use or complicated procedures yet but if it turns out to work and actually be of use to anyone else i would be willing to rewrite it to distribute to the masses but for now i just want it to work for me.
i have an aspx page with vb.net back end. in that page i get names and url's from the database depending on different conditions. My requirement is that when i get the url, the code should then use that url and have that webpage in a small preview form on my existing aspx page. so basically i have a table as follows -
[Code]...
my requirement is that i have to count occurrence of a certain date and between two months
suppose i have 10-jan-2012 now i have a date range 1-jan-2012 between 1-feb-2013 my requirement is that if i find 10-jan between 1-jan-2012 between 1-feb-2013 irrespective of year i know that 10-jan will come twice between 1-jan-2012 between 1-feb-2013 i am not understanding how to do this.i meanto say that i have to compare only day and month part of the date which will solve my problem
I have an image in a picturebox that changes, and the background of the image is ls always the same. is there a way I can change the background of the image? Here is the picture, or at least one of them.
The white background behind the character is what I need to remove. How can I replace certain colors of pixels with another color?
I have this HTML sting:
<img class="main-prod-img" src="http://www.ibood.com/img/product/4026_7n_hi_1236258897.jpg" alt="....
From that string i need to get the SRC part. so from the " to the ". Can tell me the regex code.
how to remove a line?I have:
Dim PenColor As New Pen(Color.Black) and after I received the values I draw the line with:
objGraphics.DrawLine(PenColor, Xstart, Ystart, Xend, Yend)
The user can do this 10 times... (so 10 lines)...But if the user presses a cancel button, the last line drawn shall be removed (and the user can click until he is back at 0)..Would I use PenColor white here (to draw over the line)? Or is there a way to remove line directly in visual basic? I couldn't find it.
I'm doing program that I can capture a part of the screen. Heres code, I don't know why it's not working.
[code]...
If I have a string, like "FilesTwoFilesMoreFilesFile.txt". How can I split everything in front of the last to a string called 'firstPart' (That would be "FilesTwoFilesMoreFiles") and the 'secondPart' to be "File.txt"?
View 6 RepliesI want to be able to:
1) save the screen as an image
2) use this image and search for a smaller image inside of it (pixel sequence)
Basically, I need the program to detect when an image comes onto the screen.NOT a pixel color at a certain coordinate, it is similar to this but instead of one pixel, it should detect multiple ones.is there any way I can put the image I want to detect in a picturebox, and it will go look at that image and keep checking to see if it exists on the screen?I have it working for pixel detection (only 1 pixel), but it isn't very reliable as there could be many other instances of this color on the screen.
I'm saving potentially very large amounts of data to disk as a single serialized class. But there is a sub class that I would like to be able to retrieve and write back to the disk without having to read the entire file or write back the entire file. Trust me, my reasons for doing this are good, and the design behind this is more than correct.In VB6 this is very easily done. A single statement gets the portion of the data you want from the front of the file and saves it straight to the Type it belongs to, flawlessly. Likewise, if the dimensions of the data haven't changed, but only the values, then Put can be used to save it right back to the file without disturbing the integrity of the entire file.When needed, the entire file is read into a larger structure, and the entire file is put back, but only when necessary. Most of the time the only information being read from and written to the file are in the first few hundred kilobytes of the file.
Now that I've got serialization working, I'm trying to use it to read (deserialize) only the first member of the class serialized to disk. I haven't been able to find any examples of this anywhere that have lead me toward making the sort of progress I'm hoping for.So I suppose the first question is this: Is it possible to read only part of a serialized class from the open file stream? Specifically, in one case I want to read the first two integers stored in the class. In another case I want to read only the first block (sub class) from the open file stream. In both cases I do not want to read the entire file, but just what I'm interested in starting from block 0. I don't need to write back the integers to the first file, but I do need to write back the block to the second.Assuming that the answer to the above is yes. My second question would then be: How is this done? I want to work with the file stream already open rather than opening and closing file streams over and over.I
I have split container in which I am dragging controls (picture boxes). I would like that part of the dragged control (picture box) that is outside the split container to be invisible. Currently it is on top, and the entire control is visible. Please help me know how can that be accomplished?
View 9 RepliesHow do I paint the part pointed to?
View 1 RepliesI'm wondering if it's possible to refresh only a part of a code, the reason why is that I'm adding an item from Form2 to a listbox in Form1.The code in Form2 for adding is : [code]I need to press a button in Form2 to trigger the refresh in the code I posted above + it needs to do this action.[code]
View 5 RepliesI have added a ribbon control to my application but i have a problem. i have added a simple button to that ribbon or Orb
When i click on the RibbonOrbOption at run time i just see this.But i do not see the item1 button displayed.
This is the properties menu image
I wanted to split a string before the ",". For Example "ARIAL, 9PT" I just want the bolded part "ARIAL".
Dim family_name As String = ""
Dim sentence As String
If Not (FontTypeComboBox.SelectedItem Is Nothing) Then
[Code]....
OK I was a little hasty in marking my earlier thread resolved... I'm sending a file from my server using the following code :
[Code]...
The received file (in my test case it is a PNG file) comes through corrupted - I'm 99.99% sure its a case of encoding but I've tried various options and in each case when I open the original file and the received file in notepad the files are visibly of the same origin but some characters are wrong in the received file. I'm sure its a simple answer but I can't find it - what am I doing wrong in terms of re-assembling the received file?
how can i add a certain part of a textbox to a variabele
eg.
[Code]...
I am making a web browser whit a google search. The intention is that the search term (single words) is split and that each word is added to another variable
in my text file i have two part. Called bottom and top. So i need to read the Top part first then and match the line with bottom part. Its like this
[Code]...
I have a for each item in listbox:
try
'code goes here
catch ex as exception
end try
next
now, in my code, i also have if ex = certain error. i'd like it to go back to the top of the try. reason for not letting it do its thing is, i am wanting it to retry it, under the same item. So, is there a way to goto a portion of the code.
File create error, not sure why?
Private Sub createStream()
Dim i As Integer
Dim j As Integer
Dim s As String
[code]....
Basically, I want PictureBox1 to zoom in on a certain location of a form.
Like this
PictureBox zooms in on part of the form.
NO I dont want it to change a fixed zoomed in image so dont tell me to zoom it in and put a fixed imaged. As the image i wanted zoomed in constantly changes.
P.S This example isn't my form, just an example
Just to make it clear, I want my pictureBox to zoom in on a different part of the form. The image is on a part of a WebBrowser.
i have a listbox that adds the contents of a file to listbox1, this works fine. The list is a list of customer email then name like: [URL]:Peter it adds it like above to the list with the below code using regex VB
[Code]...
how to remove part of a text file between two points
For example, say i have a text file that contains:
START
<LOWER_LINE>
-4.920156 -2.543200 4.277774
-4.649939 -3.075088 4.222839
[Code]....
I want to write directly to the source file. The files I want to edit are only about 30KB
I have found a simple UDP project at [URL] which is a project written in VB2003. I have imported it into VB2008 Express edition. I have no problems with the send part of the project. I'm able to send messages to internal (eg. 127.000.000.001) and external (in my case the other device has 192.168.0.100) addresses. Now for the receive part... I'm able to receive messagess sent form the same computer (127.000.000.001) but none of the packets are being received by the aplication if sent from an external source.
[Code]...
I need to take the image and clip a sliver in the middle and repeat it to make it like the second attachment. (so its 320px wide)i dont need to save the result... I need to cut it in half... then use drawimg to draw the left half, then the center "slice" then the left half.
View 4 Replies