My wife's Dell XPS laptop with windows 10 (came with Windows 7 Pro) has a mini display port. I plug one of these into it and plug the other end into the back of the projectors VGA slot. Works great.
https/www.amazon.com/gp/product/B0031SEMBQ/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1
Let me clarify after reading Solandri's response: after I start up the laptop, I plug that adapter into the mini display port on the laptop, then I plug the other end into the projector (fairly new Viewsonic projector.).
Once the connections are done, I turn on the projector and after it gets warmed up, it finds the connection/laptop and.....voila! What is on my wife's laptop is now being shown from the projector. The image on the laptop shrinks a bit, there is now a black border, maybe 1/2" thick around the outside edge of the laptops display, but you don't see the black border when viewing the projector but we still can see and operate from the laptops display.
I make no changes in the display section of the laptop settings or anywhere else, the projector finds it!
But like Solandri said, sometimes getting the projector and the laptop to see each other can be difficult depending on what make/model laptop you are using.
It took me awhile to figure out that the mini display port was what I needed. The Dell laptop has a HDMI port and the mini display port.
The HDMI port wouldn't work, no matter what I tried for adapters. I called Viewsonic to get help and that was a wasted phone call.
I search Google for hours before I came across that Amazon part I listed above, not knowing if that would work but I ordered it anyway. Many reviewers gave it high marks and mentioned having the same problem as I was having.
My wife teaches class on the weekends, early childhood development, to college students and this was a great addition.