Create Streams Of Images To Be Viewed In Browser?
Aug 16, 2010
I want to be able to take snapshots of the desktop periodically(about 1 every 300 ms) then be able to view them live through a web browser.
Here is what I already have:
I already have a form which takes the snapshots, overwrites a file called 1.jpg with the image. I also already have an http server running which succesfully serves up html documents.[code]...
View 1 Replies
ADVERTISEMENT
Dec 4, 2009
generally i'm trying to make a simple web broswer... my program has a button and a tab control. that when i click on the button a new tabpage is added to the tabcontrol with a web browser inside. now i have added a textbox for the url and another button that when i click on it the viewed web browser in the current tabpage is navigated to the url that i have typed in the textbox.
[Code]...
View 1 Replies
Jul 5, 2011
i am creating a web browser using microsoft vb.net 2008 and i want to save all images only displaying on any web page in my browser. i have added check box to save images. browser.PNG when i click on check box , the browser will prompt to save only images files on web page.
View 9 Replies
Sep 20, 2011
how I could do that to click a button on a Winform send a URL or you can (with parameters) to a Reporting Services and it loads in a browser.
View 4 Replies
Aug 3, 2010
When I select a node in my treeview I have no problem seeing them in my web browser.
My problem is that when I try to collapse my tree then my last viewed document in the web browser remains visibe.
How can I ensure that when I collapse my tree my web browser will also become totallt empty?
View 1 Replies
Dec 14, 2010
I am Developing a POS System in with VB.Net .On that i m using Web browser control to display the item images, because it can support both the flash and images I am am using Webbrowser.DocumentText to push the document source of the browser control But if i change the code with another image the browser is not refreshing.the following are the code snippets I am using a method for changing the document text ' Method to add html source to the web browser
Public Function set_image(ByVal img As String) As Boolean
Dim src As String = "<html><head></head><body style='padding:2px;margin:0'>"
src &= img
[code]....
then i m calling the method as follows
set_image("<img src='C:one.jpg' width='246' height='246' style='margin:0;padding:0' />")
but if i use set_image again for blank the browser it will work
set_image("")
after that if i call the set_image again its not getting updated
View 2 Replies
Apr 1, 2010
I have a web browser on the form, kids can use it to browse sites. sometimes, on some sites, I want to filter some images (or just show some images), is it possible to do this? or, have to go low level to filter images?
View 3 Replies
May 18, 2011
am working with Web Browser control and with emails ".eml" ,simply am just navigating the WeBBrowser to the email object in my computer and is displaying my email body
but if the email has attachment picture(NOT AN EMBEDDED PICTURE) then the Browser automatically display that image to the center of the browser for example the last line of the html code is <CENTER><IMG SRC="CID:{A4BE96B0-6195-4D93- 45E-97D4B1CA3539}/nature2.jpg"></CENTER> but actually the email dose not has this picture as embedded but is only an attachment ,and the browser is displaying it.
is there any way which i can easily disable that functionality or i should modified the code and replace that string with nothing. ?
View 4 Replies
Sep 5, 2010
I'm currently blocking all the images from loading in the web browser control by using the registry key. I would like to find a way were I could allow images from some sites to be shown.
View 1 Replies
Aug 28, 2009
I have create a CMS to upload all image to a folder using ed all my images to a folder using,
file.SaveAs(Server.MapPath("../images/") + advertID.ToString + "_" + i.ToString + fileExt)
Now, all images are saved and i forgot it create thumbnails. :(
I need to read all images at once and create thumbnails,
myimg = System.Drawing.Image.FromFile(imgFileName)
myimg = myimg.GetThumbnailImage(154, 94, Nothing, IntPtr.Zero)
myimg.Save(Server.MapPath("../Content/") + "Thumb_" + imgFileName, myimg.RawFormat)
I need this to function fast. I don't seems to know how to read these image names one by one.
View 1 Replies
Jun 24, 2009
I have this code for compressing datasets into files:
Using fs As New System.IO.FileStream(flnm, IO.FileMode.OpenOrCreate, IO.FileAccess.Write, IO.FileShare.Write)
Using zStrm As New System.IO.Compression.GZipStream(fs,
[code].....
View 1 Replies
Mar 23, 2012
I am serializing and deserializing a class - and sending it around with httplisteners - code looks like this Dim inputstream As Stream = request.InputStream()Deserialize(FSOb, inputstream)With the Deserialize function looking like this (and the Serialize as well - it deals with a memorystream)
Public Sub Deserialize(ByRef FSOb As FSObject, ByRef st As Stream)
Dim bf As New BinaryFormatter()
FSOb = CType(bf.Deserialize(st), FSObject)
End Sub
[Code]...
View 5 Replies
Dec 28, 2009
I found that the overlay function was working fine. However, it seems that if I use the overlay function while reading an image from a stream, that it would enlarge the picture before overlaying it.
ie:
overlay = New Bitmap(stream)
g.DrawImage(overlay, 0, 0)
Seems to enlarge the image before overlaying it, whereas this:
overlay = New Bitmap(My.Resources.Pic)
g.DrawImage(overlay, 0, 0)
Seems to overlay the image fine.
What could be the reason for this?
View 1 Replies
Dec 20, 2011
I am new to .NET from VB6. So I do not have any background with streams, however the concept seems straight forward. I am trying to populate a listbox using the ADD method with the data originating in a text file. Using a stream reader I am aquiring the data (I can prove that the data is there at every itteration using the debugging tools). However, it doesn't make it into the listbox. I have other data appear withn the listbox in a couple of different ways just to prove that there is nothing wrong with the way the listbox is setup or coded. The listbox is a single instance item on a form, all setup is done through the properties window.
[Code]....
View 7 Replies
Nov 12, 2011
I experimenting with the Twitter streaming api, an am trying to open a stream for a user to consume events as they happen. I using a standard set of classes for making REST api calls to twitter. When using url... in a "GET" call the response stream never ends.I'm opening a StreamReader and reading the response as I would with any other REST call to Twitter. This is probably obvious to others, but how do I "consume" this stream... Is there a way to read the StreamReader as it's reading (meaning before it closes)? or maybe there a different method I can user to consume this stream.... again, I apologize if this seams to be elementary to some, but I can't figure it out at the moment. Here is the original source I started troubleshooting this with.This method was fabricated from a set of C# Classes I found in a forum on LinkedIn. At the line that reads "responseData = responseReader.ReadToEnd()" the method starts to "drink" the stream... but do so like a bottomless cup... reading this stream of data in real time before it closes (which is essentially until I stop debugging or kill the process) is the question I'm tackling.[code]
This write the opened twitter stream to the file, and every time I Tweet, Retweet, Delete, Direct Message... and so on.The file grows with a JSON object appended to the text. I used the Do While 0 < 1 for testing here, because I just wanted to see it working. I see on MSDN StreamReader Constructor Description that the New constructor is supposed to accept a Boolean value for "leaveOpen", but no such argument allowed when I try to add this to the constructor.Does anyone have a good example of how to do this with forcing and infinite loop or just a better approach than this... I would like to simply read new updates sent each time from Twitter, and address them accordingly? There is obviously a way, I'm just new to the concept of consuming a stream like this with out it being closed.
View 2 Replies
Apr 18, 2010
I build an application that has two forms; one gets an employee info and stores in on a txt file (I accomplished that) and the other for viewing the records and searching for a record. I'm having troubles with viewing the records one by one when I click on the "Next Record" button.
The code below is only for view form
vb.net
Imports System.IO
Public Class frmView
'Dim strFilename As String
[Code] .....
View 11 Replies
Feb 21, 2009
am programming a media player in VB.Net using the Microsoft.DirectX.AudioVideoPlayback namespace. I would like to be able to play video files which have multiple audio streams (eg. several languages or commentary) and select which audio stream to play. As far as I can tell the Video and Audio classes don't provide this functionality.
View 1 Replies
Dec 15, 2009
I have written a simple module to access NTFS Alternate Data Streams (ADS), which looks like this:
Imports System.IO
Module Module_ADS ' Alternate Data Streams
Private Const GENERIC_ALL As Int32 = &H10000000
[code]....
View 2 Replies
Jun 16, 2012
How can I access some of the Geo encoding for a website I am making?I would like to extract the location information of where the site is being viewed/used at. This would allow the check-in process to go more smoothly when the users do.
View 3 Replies
Mar 25, 2011
I'm creating a simple web browser. I have a combobox for the url address bar. I'd like the combobox to drop down and display the sites that have already been viewed. I think I can use the BeforeNavigate2 event to do this but I'm unsure how to use it.
View 3 Replies
Jan 8, 2009
I am looking to get a list of websiets viewed from the registry. I think the code below is fine but how do i populate a combobox with the typedurls it finds. I have tried myself but i still get blank in the combobox
Imports System
Imports Microsoft.Win32
Imports System.Windows.Forms
[Code]....
View 4 Replies
Sep 13, 2011
Apparently, there is some kind of "bug" or "feature" in 64-bit Windows that prohibits a 32-bit app from "seeing" certain icons. Testing this is simple:Create a basic Windows Form app on a 64-bit machine.In the Project Properties, go to Compile > Advanced Compile Options > Target CPU. Set Target CPU to "x86".Add a button to your app that triggers an OpenFileDialog. Run the app and click the button to open the OpenFileDialog.Browse to: C:UsersDefaultAppDataRoamingMicrosoftWindowsStart MenuProgramsMaintenance
You should see the "Backup and Restore" shortcut, but its icon will be a blank white sheet. (If you don't see it there, it might be in C:Users[MyUser]AppDataetcetcetcMaintenance).
Now, close your app... go back to Project Properties > Compile > Advanced Compile Options > Target CPU and set Target CPU back to "AnyCPU" (this will cause it to run as 64-bit).Run the app and browse to the same folder. Now "Backup and Restore"s icon will be visible.This happens on all 32-bit apps. I tried it in Firefox (using "Open File...") and it can't see that icon (and many others) either. as a result of this behavior, when I try to extract icons from files when running under 32-bit, it produces an error. If I run the same code under 64-bit, it works just fine. running my app as 64-bit isn't an option. I'd literally quit programming if I weren't able to use Edit-and-Continue, and for some brilliant reason, 64-bit apps can't Edit-and-Continue, so I make them all in 32-bit).
View 8 Replies
Aug 2, 2011
I have a system which needs to be secure which streams relatively large documents from a webservice to a proxy (Web site) whch then grabs the stream and pushes this to the client. This works but there are some issues where it seems the response is not being pushed until the entire stream is complete? whether this is the case Im not sure have run charles and until it completes it is "Waiting for response".
The documents are currently PDF but it needs to handle many other types for the future. The octet stream etc is mostly testing related, how to get the Dialog to show - saying save as? for the large files the little ones don't matter to much but the big ones leave a big waiting period with no response.
Dim IncomingResponse As HttpWebResponse = DirectCast(Request.GetResponse(), HttpWebResponse)
Dim IncomingStream = IncomingResponse.GetResponseStream()
Dim BufferSize As Integer = 65536
Dim Buffer(BufferSize) As Byte
[code].....................
View 1 Replies
Aug 14, 2010
I'm trying to create a row of images associated with a string value. When the user MouseOver's the image, I need a label to update with the value of said string. The images are added at runtime. What control(s) would best suite this?
View 1 Replies
Jul 7, 2011
I have an application in windows forms and I'd like to improve the GUI with customized buttons, forms and textbox.
Is it a good idea create my components in C++ using images?
View 1 Replies
Jan 17, 2011
How do you create an array for images, specifically to develop a slot machine game so-to-speak. Because our class is using a really, really old version of Visual Basic (that is, VB 4.0...ick), I decided to move myself up in the ranks and play alongside and learn the newer software.I've mentioned arrays before if you recognize my screen name, but situations caused me to bump up again to 2010, so now I need some help reacquainting myself with the software.
View 3 Replies
Jun 21, 2010
Part of the app I am writing allows users to create an encrypted, password-protected output file that they can email safely to a central store. I can't have the users choose their own password for the encryption as the central store needs to access the contents of all the output files emailed to it. So there is one password that gets set within my vb app.I am worried that security will be compromised if the vb executable is somehow deconstructed? Is it possible to read the contents of an exe file (and thus find out the password)?
View 3 Replies
Jan 15, 2012
I am working on some sort of client + project management system. Each client can have many projects, many projects can have many staff. The Link (Junction) table allows for many staff members to be linked to the projects. I have attached the relationships which have been put together in Access 2007. In order to display the data in my VB forms, I am making use of OleDb, by having a OleDbDataAdapter and DataSet. I am using SQL queries to select, insert etc data from the original database tables.
My issue; I can't work out the best way to link the data together so it can be viewed on one form. So once I access Client 1, I can see the projects they have with us, and then within that, all the staff they have working on that project.
View 2 Replies
Dec 23, 2009
my program i abot searching in a database viewed by datagridview and i want to search within two columns i'm using this code to do so:
InstructorsBindingSource.Filter = "PhoneNumber = '" & Trim(ToolStripTextBox1.Text) & "' and instructors = '" & Trim(ToolStripTextBox2.Text) & "'"
but its not working
View 4 Replies
Jun 27, 2012
im trying to create a context menu for images i created dynamically. My context menu doesnt show
Private Sub MyPicClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs)
If e.Button = Windows.Forms.MouseButtons.Right Then
[Code]....
Ive create the pictures dynamically, ive added a handler for click event (shown above), i detect the right click ok and assign another handle for the click of the item.
View 6 Replies