There are two ways of doing this through a single process called a SnapShot.
1. You can capture your entire display area, or
2. by defining a rectangular area on the display area called the ROI (Region Of Interest)
There are lots of code samples out there that covers both scenarios. Use Google to search for "How to take a snapshot of my display" or "How to capture an area of my screen".
You can then save the memory stream (the captured information will be stored in a memory stream) in a few formats - JPG, TIFF, PNG and BMP.
I have a program created by me which I've been using for some time now. It's a tool for android and ios. I want to make it so if there is a connected android or ios device on my computer my program will automatically detect it but unfortunately where to start. I've been searching all over Google and found nothing of use. For example when the device is connected my label1 text will say something along the lines of "ios device connected"
Presumably your wrote this tool. And presumably it already does something with both devices.
So why can't you just find a do nothing API for each device, such as a query for version number, and put that in a thread that polls every X seconds. If it gets a result then the device is there. If no result then the device isn't.
Regarding Out-of-Office-Replies, let me tell a bad story.
Someday, a customer told us they could not receive emails from our company. They found out that the emails were blocked due to some spam filter rules. Somewhere in their spma-checking chain, they used a blacklist from spamhaus. And our company was listed there as a sender of spam.
How did we get there?
Some spammer sent an email to a colleague. Because she was on holiday, an Out-of-Office-Reply was sent to the "sender" of that email. But the "sender" was forged: it was a honey-pot address of spamhaus. Great!
Well, I do not know the further steps taken then to recover our status as a non-spammer - having analysed the situation to that point, I forwarded the issue to higher management. I do not know if they paid the money normally required by spamhaus or if they could convince spamhaus that the spam originated from some other place.
Anyway, since that time I suggest not to use spamhaus, and not to use Out-of-Office-replies either.
But who cares about that experience?
I seem to be having problems when trying to run the shared sub from another class in my form1 application. The code works flawless when its called directly but when i try to multi thread the controls on form1 will not update.
The shared function and sub
PublicSharedFunction FileCount(PathName AsString) AsLongTryDim FSO AsNew FileSystemObject
Dim fld As Folder
If FSO.FolderExists(PathName) Then
fld = FSO.GetFolder(PathName)
FileCount = fld.Files.Count
Catch ex As DirectoryNotFoundException
EndTryEndFunction'Calculate File Count
PublicSharedSub StartNewScan(ByVal FilePath AsString)
Dim Allfile AsString = "*.*"Dim FFcount AsLongDim MyFolderSize AsLongDim FullPath AsStringUsing fse AsNew FindFiles.FileSystemEnumerator(FilePath, Allfile, True)
Dim ien As IEnumerator(Of FileInfo) = fse.Matches().GetEnumerator()
ForEach fi As FileInfo In fse.Matches()
FFcount += CStr(FileCount(fi.DirectoryName)).Length
Form1.Label3.Text = CStr( "File Count:" & FFcount)
MyFolderSize += fi.Length
FullPath = fi.FullName
Form1.Label4.Text = "File Path:" & FullPath
I am trying to call the shared sub in form1 like so
Dim StartSharedSub asnew threading.thread(addressof Startnewscan)
I am aware of delegates and that it may be necessary in my case to use that to update my UI controls but I am confused how to implement it in my case.
Hi all - I'm looking for a motivated full stack developer to work independently within a team. The ideal candidate would be excited to learn and experiment with new technologies and with a passion for user-oriented design.
If you are interested, or know of someone who would be, please let me know. Thank you!
• Microsoft .NET Framework ecosystem with C#
• ASP.NET MVC3 / MVC4
• Microsoft SQL Server 2008 / 2012
• Bachelor's Degree in Computer Science Preferred
• Web Development: HTML5, CSS3
• Knowledge of NoSQL
• Experience with Kendo UI
• Good communication skills
• Knowledge of IIS 7
• Web API/WCF