Click here to Skip to main content
15,892,746 members
Everything / Screen

Screen

screen

Great Reads

by ToughDev
Revisiting Mario Game Written in Pascal
by Harry Truman
Screencasting (demo screen, screensharing) already works in Google Chrome. The technology allows capturing a window of the browser itself as well as windows of other applicaitons. For example, you can capture Firefox running in a separate window.
by jmix90
Creating a full-screen window in WPF is quite simple, set WindowState to Maximized and WindowStyle to None. However, a border is still visible on the bottom and on the right sides. In this post we'll discover how to remove it.
by Anton Lesnichenko
Add AllowsTransparency="True" and there will not be a border.

Latest Articles

by ToughDev
Revisiting Mario Game Written in Pascal
by ToughDev
Emulate parallel port printer to capture data from Tektronix 1230 Logic Analyzer
by Minh Danh Nguyen (ToughDev)
This is a cheap 320×240 2.8″ TFT LCD module that uses the ILI9320 controller for the display and the XPT2046.
by Harry Truman
Screencasting (demo screen, screensharing) already works in Google Chrome. The technology allows capturing a window of the browser itself as well as windows of other applicaitons. For example, you can capture Firefox running in a separate window.

All Articles

Sort by Score

Screen 

12 Apr 2018 by Harry Truman
Screencasting (demo screen, screensharing) already works in Google Chrome. The technology allows capturing a window of the browser itself as well as windows of other applicaitons. For example, you can capture Firefox running in a separate window.
16 Jun 2011 by Kim Togo
Check out Screen Class[^]If you run this code: foreach (Screen screen in Screen.AllScreens) { Console.WriteLine("Device Name: " + screen.DeviceName); Console.WriteLine("Bounds: " + screen.Bounds.ToString()); Console.WriteLine("Type: "...
16 Apr 2013 by Manfred Rudolf Bihy
There is a way of checking if the screensaver is still running. See the discussion on MSDN: Screen Saver notifications[^]. nobugz[^] answer shows how to pinvoke SystemParametersInfo to poll the current status of the screensaver.Google search: "C# screen saver running"Regards,—...
10 Sep 2010 by alrosan
the idea from your problem takes multiple screen capture every constant time period and compare the images which taken pixel by pixel to select the part of screen was changed and captured it Bitmap image1; Bitmap image2; Graphics gr; private void...
28 Feb 2011 by jmix90
Creating a full-screen window in WPF is quite simple, set WindowState to Maximized and WindowStyle to None. However, a border is still visible on the bottom and on the right sides. In this post we'll discover how to remove it.
2 Dec 2013 by nv3
(1) In every loop iteration you are aquiring a new DC and you obviously never return it by calling ReleaseDC as you should. That is probably the reason why your program runs out of resources after nine thousand and something iterations.Why don't you acquire the hdc before the loop, instead...
25 Jul 2016 by OriginalGriff
The trouble is that you've designed it to fit a single resolution - your screen - and the user doesn't have that large a display. While it's possible to make controls grow and shrink automatically in WinForms via the Anchor and Dock properties, it generally isn't very successful on a large scale...
25 Jul 2016 by BillWoodruff
If your screen resolution is the same as your client's, and you are both using monitors with the same standard aspect ratio (typically, today, 16:9 for desktop monitors) ... the client should have no problem.Welcome to the great puzzle of dealing with different display device sizes, screen...
19 Jan 2016 by Jochen Arndt
It seems that the full screen mode requires that the video is actually played. When your code tries to switch to full screen mode, the media player has probably not finished his startup. So you have to wait until the state has changed. This can be done using the IWMPEvents::PlayStateChange...
28 Feb 2011 by Anton Lesnichenko
Add AllowsTransparency="True" and there will not be a border.
1 May 2011 by RaviRanjanKr
Try Image Capture Whole Web Page using C#[^]Capture web page as image using ASP.NET[^]
18 May 2011 by Abhinav S
You need to use a TimerCallBack delegate [^] that executes once the time elapses.To capture the screen, you can look at the following link[^].
16 Jun 2011 by Theingi Win
Your try like this,Screen[] sc; sc = Screen.AllScreens; //get all the screen width and heights if (sc.Length > 1) { customerdisplay.FormBorderStyle = FormBorderStyle.None; customerdisplay.Left =...
12 Jan 2012 by All Time Programming
Get actual screen size for the application layout dynamically
6 Feb 2012 by E.F. Nijboer
This is how it is done in c# for directx 9, 10 and 11:http://spazzarama.wordpress.com/2011/03/14/c-screen-capture-and-overlays-for-direct3d-9-10-and-11-using-api-hooks/[^]Here an article that also has a vb.net example:Capture Sample with DirectX and .NET[^]Good luck!
16 Apr 2012 by CharlieSimon
Thanks for your answer, it led me to the actual answer...Since I'm in WPF, there are properties in SystemParameters which seem to work. Rect rr = new Rect() { Width = SystemParameters.PrimaryScreenWidth, Height = SystemParameters.PrimaryScreenHeight };
1 May 2012 by Ed Nutting
I implemented this one myself over the weekend from an adaptation of this[^] code:/*Copyright Edward Nutting. This may be adapted but all adaptations must at least credit myself and http://blog.trostalex.com/?p=114 as the original sources.*/import android.graphics.Point;import...
31 Jul 2012 by pasztorpisti
Your app shouldn't handle monitors, you just have to avoid making some mistakes by using api from one monitored old times. All you have to do in your clipboard viewer app is saving the restored (not maximized) position of your window, plus saving if its maximized or not. When the app starts it...
13 Dec 2012 by OriginalGriff
There is no "magic code" which makes it work. If you want to have a UI that re-sizes gracefully, then using winforms is a mistake - you need to look at WPF which is designed to do that kind of thing.There is no automatic way to stretch things in Winforms - you can make the controls expand...
13 Dec 2012 by Aarti Meswania
visit link...http://social.msdn.microsoft.com/Forums/en-US/winformsdesigner/thread/6753e124-70c1-4e3a-b8f7-f4c076837627[^]Happy Coding!:)
22 May 2014 by OriginalGriff
Ask the person who wrote it.If you look at the article, there is a forum at the bottom for that - and each message there gets sent to the author, so he knows you want to speak to him.Posting here relies on him "dropping by" and realising it is for him.
9 May 2015 by Richard MacCutchan
A number of suggestions to be considered at https://www.google.com/search?q=dpi+aware+c%23[^].
2 Jun 2015 by Ralf Meier
I'm sorry that I posted you a Link with an Information, which isn't working. I thought that posts on MSDN would word - my mistake. By searching in the Internet I found more Snippets like the posted one, which have nearly the same code.But now I have a Link for you which guides you to a...
14 Aug 2015 by Sergey Alexandrovich Kryukov
Please see my comment to the question.See also my past answers on virtual keyboards: How to fire a Key Press event of a Key on button click in WPF [1],How to fire a Key Press event of a Key on button click in WPF [3],Application focus getting and losing.Don't pay attention that...
5 May 2017 by Jochen Arndt
You are using the Graphics class which is GDI+ based. But games might use other rendering methods like DirectX or OpenGL. Especially with DirectX games you have usually no access to the video memory: Multiple-Monitor Operations[^]: When a device is successfully reset (with Device.Reset) or...
6 Feb 2018 by F-ES Sitecore
Services don't have access to the interactive desktop Interactive Services (Windows)[^] If you google "c# take screenshot windows service" you'll find various articles and examples from other people who have tried this kind of thing. Monitoring desktop windows from a Windows service[^]
27 Jul 2018 by Jochen Arndt
You have to call a Windows API function: ChangeDisplaySettingsA function | Microsoft Docs[^] This requires using invoke or writing a wrapper. But such has been done already: Changing Display Settings Programmatically[^] Dynamic Screen Resolution[^] Change Resolution Before Starting Application[^]
11 Nov 2018 by Richard MacCutchan
ScreenResolution class vb.net - Google Search[^]
11 Nov 2018 by Dave Kreskowiak
The better question is why would you want to? Do that on my machine and I'll uninstall your app before you can even begin to ask why. Changing screen resolution is up to the user, not your app. If you change the resolution, you also change the layout of every icon on the users desktop, forcing...
21 Jun 2019 by OriginalGriff
Probably your only solution is to go back to the company and ask them: it's their intellectual property and they are protecting it. We are not here to help people bypass legitimate security; heck, many of us are producing software which is protected by legitimate security! Go back to the...
29 Mar 2020 by OriginalGriff
Unless your game is designed from scratch to support different sized screens, there is no real way to do this - screen resolution (and text size as well) varies from screen to screen. For example I have three, all with different resolutions: one...
8 May 2023 by ToughDev
Emulate parallel port printer to capture data from Tektronix 1230 Logic Analyzer
11 Sep 2010 by Abhinav S
Maybe something here[^] can help.
12 Sep 2010 by Abhishek Sur
Did you see my article on screen capture. http://www.codeproject.com/Articles/91487/Screen-Capture-in-WPF-WinForms-Application.aspx[^]I have also provided you a sample application with my article.
12 Sep 2010 by Ruselo Riva Asentista
It really depends on what form would you want the screen capture to be.If you just wanted a Bitmap object, this should do:Bitmap screen_image = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); Just tweak out the width and height
22 Sep 2010 by fmalik123
I have a requirement where my .NET application will run on a computer having two active monitors.The main application will be running on 1 monitor (meanwhile the second monitor should not show any thing), but at a specific event (hiting of a button in the main application), the desired...
22 Sep 2010 by Not Active
You can use SystemInformation.VirtualScreen[^] and other SystemInformation properties to determine the screen size and position. Then position the windows appropriately.
21 Apr 2011 by programmer1234
I downloaded the source file from this tutorial on how to screen capture a webpage in C#:Image Capture Whole Web Page using C#[^] Now, the programs runs fine, but when I screen capture a webpage the image doesn't display. Instead, it just displays a black image?
21 Apr 2011 by BobJanova
The article is from 2005, Microsoft have probably changed things it depends on.Can you not use SendKeys to send an Alt+PrntScrn to the browser window?
21 Apr 2011 by Nish Nishant
The thread below suggests saving as an MHT file and then rendering that as an image :http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/b4710708-8a9f-4139-9b24-fae8e5093327[^]
21 Apr 2011 by RaviRanjanKr
Try Capture Web Page as Image[^]
1 May 2011 by programmer1234
I've made a webpage in asp.net and I was wondering how can I screen cap a webpage using asp.net, is there a control in asp that allows me to do this or would I need to manually create it?EDIT: I've used the code from this website...
4 May 2011 by anthony 008
well non of the aboven suggesions did realy help, there is neither a workaround for this problem on google after 2 days of searching. How ever the hospitol uses a agent which will handle the screensaver now instead of the windows as temperaly work around thanks for the tips and ideas for the...
5 May 2011 by musefan
Look like your EXE file cannot be found in the location that it is looking.Are you sure "~\IECapt.exe" is actually where your EXE is?
24 May 2011 by Mel Padden
From a utility I'm working on. Compatible with SQL-92 INFORMATION_SCHEMA views.
15 Jun 2011 by hungba3010
I'm using VLC activeX and development language C # to run dual screen software video from a video file.But have not found the Count to the user.Hope you help!
15 Jun 2011 by Christian Graus
IF you can't do it, then you've got the wrong project. If you cna't explain what you've tried and where you're stuck, then you're asking us to write your project. The jobs board is for that.
21 Jun 2011 by JTRizos
I have developed a touchscreen application on a kiosk running Windows XP. The app is a Windows Form written in C#. All works fine and I am ready to deploy. Since these kiosks will be in public places, I thought a screensaver showing pictures and information with different transistions would...
21 Jun 2011 by Sergey Alexandrovich Kryukov
Strange problem. The solution you want would not help you much. You will create another problem: the user won't be able to get rid off the your splash or screen saver in one touch. Many will be confused.However, there is much better work-around. Before showing touch screen, disable...
4 Aug 2011 by prathameshpitale
Hi,My Application is Designed in c#.net 3.5,I want to Handle Unhandled Exceptions occured while running the application!How can i do this? I Googled this Question but cant find answer!How can i collect the Log of Errors, As my Application is Client Server, I need to Collect ALl the...
17 Aug 2011 by ehanff
Is there any directshow filter for capturing game video?
17 Aug 2011 by Anthony Mushrow
Interestingly, No[^]You basically have 2 options though, to do what was already suggested and just record the screen. Or go down the complicated route of hooking into DirectX and OpenGL to capture the rendered frames (which I believe is what Fraps does). I've no idea how you'd do that, and...
26 Aug 2011 by enhzflep
If I understand you correctly, you've a window that doesn't get bigger than 800x600. With a screen resolution of 1366x768 it won't fill up the whole screen. The only way to do that is to set the resolution to 800x600, which causes problems with something else.While not changing the...
27 Aug 2011 by mbue
I dont kown what exactly you mean by full screen, but you can preventing the window becoming resized larger than 800x600. You only must handle the window message WM_GETMINMAXINFO.Regards.
27 Aug 2011 by Philippe Mori
Although I have never tried it, I would think that a virtual machine (VMWare, Virtual PC...) would be the solution for thus problem. Simply set the resolution of the guess OS to 800x600 and start your application in that virtual machine.
14 Sep 2011 by Rutvik Dave
Try this code in your Form move event, this is a quick test code, you can change it based on your requirement.private void frmMain_Move(object sender, EventArgs e){ if (MousePosition.X
10 Dec 2011 by Matias234
In a custom view how would it be possible to get how much of a finger touched the screen. In other words, to get if the user used the tip of his finger or a larger area. And then to be able to get each dimension of the rectangle.
21 Dec 2011 by nakashi
Hello all,I want to write the logon screen of Windows 7 (add feature to input my 2nd password in order to increase security). I don't know where to start now.Any ideas would be appreciated.
21 Dec 2011 by Richard MacCutchan
Start with Windows GINA[^].
15 Apr 2012 by Bernhard Hiller
There are some properties to look at: AutoSize, AutoSizeMode, AutoScaleMode. But they do interfere with each other...
14 May 2012 by Sergey Alexandrovich Kryukov
No, you don't really need to move a cursor outside of the screen. Possible or not does not matter. If the cursor is "outside the screen" (what should it mean, by the way?), you should not use its location, so it does not matter if it's possible or not.However, if you think that you can...
13 Jul 2012 by S.AmmarHasan
Hi I wanna develop an application like a classroom. where a teacher is delivering lesson and the student is seeing the teachers screen and listen to the voice remotely.share the screen and do voice chat over the internet in c#.net, desktop applicationlike Teamviewer + Voice Chathow...
13 Jul 2012 by Sandeep Mewara
any similar app. will be greatSkype? MSN messenger? GoToMeeting? WebEx?Apart from that, if you plan to develop one of your own, then you need to start step-by-step. Gather the features needed, design, implement. TRY what you want to do! You may find that it's not that hard.In case,...
31 Jul 2012 by Momir Zecevic
Hi folks,I am writing an add on for existing application dialog based. It has to have following feature:When user hit button named preview application has to display content of a clipboard (i know how to handle clipboard), Scaled or over the black background, in FullScreen on a selected...
14 Nov 2012 by Light.D.Right
Hello all,i'm new here, if i'm in the wrong section sorry.Here is my problem.I did a Layered Window (WS_EX_LAYERED) and draw a bitmap on it.Using alpha blending function from msdn.Behind the Scenes: The Splash ScreenHere is a screen.Pictureand here is my...
10 Oct 2018 by Yossi Maoz
Hi,I'm looking for some software that can record my screen as a video.There are many options but I have some specific needs and I haven't found something that fits.What I need is:1) API that I can use from .Net. I need the ability to control the software from my code - including...
5 Dec 2012 by angel parks
Hello,Good day!Currently, I am trying to rotate the screen manually using the ChangeDisplaySettingsEx APIin Win 8 and it seems that the rotation is not smooth as with if we tilt the system. Can you helpme identify which API that can rotate the screen smoothly?I have tried this...
13 Dec 2012 by Code-Hunt
Hi all I m developing one windows application and i want it to run in any screen resolution.can u please tell me how to do that..Thank you
15 Dec 2012 by Zaf Khan
Here is a code block to do JUST what you want.NOTE:Its not my own code, although i did write something similar over 10 years ago.This sample is from Planet Source CodeEvery time i tried to paste the link it conked out for some mad reason.So i have simply pasted the code...
15 Jan 2013 by tarsus04
Hi @analogx. You are right, I were not using hooks properly, but it has been rare. Firstly, about setWindowsHookEx function, I have read WH_CALLWNDPROC or WH_SYSMSGFILTER must be used to get WM_SYSCOMMAND sent messages, and then get SC_SCREENSAVE wParam. In this case, I don't know why and maybe...
12 Feb 2013 by Atta ur Rehman 1
Hi :), Please can any one help in sharing screen of android phones, I mean to share screen of 1 phone to another android phone through WiFi. Please help. Thanks[Edit: Removed shouting...]
12 Feb 2013 by dachazz
I would try and start here: http://developer.android.com/index.htmlDownloads: http://developer.android.com/sdk/index.htmlForums: https://groups.google.com/forum/?fromgroups#!forum/android-developersThat should get you started
2 Mar 2013 by afrika1
hi Guys,Am looking to develop a screen lock software1. Just something similar to a cyber cafe screen lock that locks the screen and disables ctrl alt and del, and requests a password.2. A process that runs in the background3. Would request a password everytime you logon to the...
2 Mar 2013 by Richard MacCutchan
1. What's wrong with Windows logon?2. Do you mean a service?3. See 1.4. See http://technet.microsoft.com/en-us/library/ee156540.aspx[^].
2 Mar 2013 by Ian A Davidson
It sounds as if you want to develop a Credential Provider (or, for XP or Server 2003 and earlier, a GINA dll). It would be best if you can write it so that it calls to the standard Credential Provider (or for a GINA, sits on top of the standard GINA), to avoid you having to write the...
2 Mar 2013 by Ian A Davidson
Hi afrika1,I don't think your different requirements do necessarily follow from each other.The Windows Credential Providers sit in Session 0, and gets called by the authentication sub-system. You might be able to write one to modify the look and feel of the logon screen (I'm straying into...
10 Jun 2013 by KishoreUHG
Hi,Can anybody tell me how to do the screen scraping?I have a scenario like i have intranet app the page contains 2 textboxes and 1 button. I need to implement a app like have to set the values in the textboxes automatically and need to click on the button in asp.net.I don't know...
10 Jun 2013 by Abhinav S
You can loop through all controls on the web page For e.g.foreach(Control ctrl in this.Controls) { if (ctrl is TextBox) { //Set value here ] }
11 Oct 2013 by ASP.NET Community
After few projects, finally come out with this simple loading panel scripts. Hope it useful for your.JavaScripts  function ShowLoading() {
26 Oct 2013 by Fess59
Hello!There is the problem of changing the color depth when I get a shot of the screen with the SharpDX. Normally only works if the selected format A8R8G8B8, for changing the format to A1R5G5B5, comes out with a blank error message:HRESULT: [0x8876086C], Module: [SharpDX.Direct3D9],...
2 Dec 2013 by cysy
The code below writes in console x,y and color of a pixel pointed by the mouse. It's working, but has 3 faults:1. After 9997 calls GetDC(HWND_DESKTOP) stops giving sensible data.My pragmatic solution is to count loops, call a link pointing to exe and exit.2. Size of memory used...
2 Dec 2013 by Ron Beyer
Why not save the desktop bitmap to a memory buffer and loop through that to check the pixels? Seems like getting the desktop pixel would be an expensive operation that you can buffer.I would look at code examples on taking a screen shot, then save the screen shot to a bitmap, then you can...
2 Dec 2013 by Sergey Alexandrovich Kryukov
No, 3 milliseconds for individual pixel is not the high price. It would be high price if it was average time per pixel for massive pixel operations. That simply should tell you that GetPixel/SetPixel is only acceptable when you only need to operate on just one pixel or very few of them. For all...
19 Dec 2013 by ProDavy
Which exec function should I use to start a screen session:execl, execlp, execle, execv, execvp, execvpe ?I just need to know if the exec was successful.
19 Dec 2013 by Richard MacCutchan
Any of these functions can be used; it all depends on what information you want to pass to the target, and how you want to formulate your parameters. For full details refer to the man pages[^].
28 Dec 2013 by Nelek
The best place to ask about problems with the tutorial is the message board at the bottom of the article / tutorial you are following. The one that can answer you best is the author of that tutorial. Besides, if you write a message there, the author will get a notification, what can make you get...
4 Mar 2014 by Sergey Alexandrovich Kryukov
Thank you for all the clarifications.I don't know such project, but I would be able to develop such thing in a relatively short period of time. I already described the plan in my past answer: mstscax.dll - could I use this for remote desktop?[^].Please pay attention only for the second...
18 Mar 2014 by DoingWork
Dear all,I'm biggenner in programming world.....My development PC's LCD size is 17-inch. I develop application which fits to my LCD. Every controls is placed at proper place and whole screen area is used.Problem is that end-users of this application has different screen size i.e....
18 Mar 2014 by OriginalGriff
Basically, you can't. It's not the physical size of the screen that is the problem, but rather the resolution at which you application is being displayed: with can vary from (say) 800 by 600 to 2,560 by 1,600 - which is not just a change in resolution, but in shape as well. Since your form is...
18 Mar 2014 by Sergey Alexandrovich Kryukov
Consider the following HTML, without any Javascript and CSS:This is the example of fluid HTML Isn't that obvious: if you resize the browser window, this content is shown properly and remains readable for almost all sizes? Conclusion? Keep it...
15 Jun 2014 by Sergey Alexandrovich Kryukov
Please see my comment to the question. All you need to do is to adjust location and the size of your client part of the window.Most likely, you want to copy the non-client area of some window. So, the problem is reduced to calculation of the position and size of the client part. This...
6 Jul 2014 by Richard MacCutchan
8 Jul 2014 by JJMatthews
here is a solution with code: ScreenTool[^]
12 Aug 2014 by Sergey Alexandrovich Kryukov
The biggest problem is your "24 frames per second" requirement. Windows is not a real-time system, so, with some probability, you may fail to deliver exact frame rate; some delays will be possible. You can use multimedia-system timer to improve the reliability if it, but it will require P/Invoke...
29 Aug 2014 by OriginalGriff
Yes: I have seen eight monitors connected to a single PC - you may need to see if the video card you are using supports it however.Once you have them connected and the driver configured to show them in the correct place, they will act as a single monitor as far as screen addressing is...
5 Dec 2014 by Satish kumar Vadlavalli
You can't. It's beyond your control, because print screen is not a browser feature it's a system feature.
5 Dec 2014 by /\jmot
same question.Stop print Screen for all web browser[^]
2 Feb 2015 by Shreesh Uniyal
Is it possible to record screen video of current running windows 8 app from the same app? I have to record the app's screen video and audio with the app.