And I found something else on StackOverflow that I didn’t know existed. For this Stackoverflow user there seemed to be a problem when using CopyFromScreen. I used to use the GDI+ version for this. Which this might well just be a wrapper for. But for me this code works just fine. Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As EventArgs) Handles MyBase.Load Dim screenSize = SystemInformation.PrimaryMonitorSize Dim bitmap = New Bitmap(screenSize.Width, screenSize.Height) Using g As Graphics = Graphics.FromImage(bitmap) g.CopyFromScreen(New Point(0, 0), New Point(0, 0), screenSize) End Using PictureBox1.Image = bitmap bitmap.Save("c:tempscreenshot.png", Imaging.ImageFormat.Png) End Sub End Class As you can see in this screenshot.
This is an archive of the posts published to LessThanDot from 2008 to 2018, over a decade of useful content. While we're no longer adding new content, we still receive a lot of visitors and wanted to make sure the content didn't disappear forever.
Introduction From time to time I answer a few questions on Stackoverflow, mostly because you can learn a lot from someone else’s problems and it makes you think. [ ][1] Thinking is something you need to practice every day. By answering those question I found a use for two functions I rarely use. Namely the SkipWhile extension method and String.Join.
I am pretty sure that none of our readers would fall for this social engineering scam that would make you share your computer with someone else, I am writing about it because I know of one person who had a call like this but she luckily hung up. I heard about this on Twit’s Security Now( With Steve Gibson and Leo Laporte ). Here is how it works, you will get a call from someone based in India working for Microsoft telling you that your computer is infected. The first thing they do is tell you to go to start/run box, type eventvwr and it will bring up Windows Event Viewer. Now they have you go to the aplication folder and look at all the errors that are there, this is because the computer is infected.
Introduction I normally use Nunit for all my unittesting with VB.Net but for winforms testing MS-test is so much easier to use. And I know that in the past there have been attempts to make some frameworks to make this easer but MS-test just makes it trivial to do. MS-test What we want to test is if our textbox selects all text when we enter it. Now let’s try this.
PASS Summit 2011 is fast approaching – in only four weeks, thousands of SQL Server professionals will take Seattle, WA by storm. There are two days of full-day, in-depth pre-conference sessions (Monday and Tuesday), then three days packed with keynotes, training sessions, coffee, vendors, prizes, coffee, training, the Microsoft CAT and CSS teams, networking, coffee, more people that even I can talk to in a week, and (of course) karaoke.
a git repository on a share. It’s a fairly easy process and works very well and fast. But now I wanted to move that repo to a new place and searched the webs on how to do this. I found nothing that was just copy-pasteable but I got it working and it is very easy. You can find lots of other ways to move a git repo, but they all seemed so complex.
If your processor does not support Virtualization Technology then you can’t run Windows 8 in Virtual Box….you will get a black screen of death. In order to find out if your CPU supports hardware Virtualization Technology you can download the Intel Processor Identification Utility here http://www.intel.com/p/en_US/support/highlights/processors/toolspiu/ Run it and look if Virtualization Technology is enabled…see the bottom of this picture
Microsoft has made available a couple of Windows 8 ISO images that you can download right now. I already downloaded and installed, the screenshot above is my start screen, as you can see I did not really customize it yet Here is what is available: Windows Developer Preview with developer tools English, 64-bit (x64) 4.8 GB
You don’t catch me doing SQL posts that often, probably because I spend far more time working in a development world that seems to be moving further and further away from SQL. That being said, the database server is optimized towards handling large sets of data and data manipulations, so rather than second-guessing developers that know far more (and have far larger budgets), I like to take advantage of database-side solutions when I can. The time saved not dragging data back and forth on the network is an extra bonus.
All the way back in 2010 Google realized that JavaScript is a dead end programming language. Here is what was posted on the com.googlegroups.google-caja-discuss list Javascript has fundamental flaws that cannot be fixed merely by evolving the language. We’ll adopt a two-pronged strategy for the future of Javascript: – Harmony (low risk/low reward): continue working in conjunction with TC39 (the EcmaScript standards body) to evolve Javascript – Dash (high risk/high reward): Develop a new language (called Dash) that