Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2010 > BOOK: Visual Basic 2010 Programmer's Reference
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Visual Basic 2010 Programmer's Reference
This is the forum to discuss the Wrox book Visual Basic 2010 Programmer's Reference by Rod Stephens; ISBN: 9780470499832
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Basic 2010 Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 11th, 2012, 12:35 PM
Registered User
Points: 37, Level: 1
Points: 37, Level: 1 Points: 37, Level: 1 Points: 37, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create New Desktop using VB.NET

I cannot find any info in the VB 2010 reference book regarding creating new Windows desktops.

Does anyone have any VB.NET code they can share? I would like to be able to create a new desktop and run a kiosk type application on it.... just like this VB6 sample kiosk app I found at the link below.

http://www.vbaccelerator.com/home/VB...top_Sample.asp

So far I've only been able to create the new desktop and switch to it, then back to the original but cannot run an app on the new desktop. I'm using Imports System.Runtime.InteropServices and the CreateDesktop, OpenDesktop, and SwitchDesktop API's.

Thanks!

Code:
    Private Declare Function OpenDesktop Lib "user32" Alias "OpenDesktopA" _
       (ByVal lpszDesktop As String, _
        ByVal dwFlags As IntPtr, _
        ByVal fInherit As Boolean, _
        ByVal dwDesiredAccess As IntPtr) As IntPtr

    Private Declare Function CreateDesktop Lib "user32" Alias "CreateDesktopA" _
        (ByVal lpszDesktop As String, _
        ByVal lpszDevice As String, _
        ByVal lpDevMode As IntPtr, _
        ByVal dwFlags As IntPtr, _
        ByVal dwDesiredAccess As IntPtr,
        ByVal lpSecAttrib As IntPtr) As IntPtr

    Private Declare Function SwitchDesktop Lib "user32" (ByVal hDesktop As IntPtr) As IntPtr
Reply With Quote
  #2 (permalink)  
Old July 11th, 2012, 12:49 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,141, Level: 23
Points: 3,141, Level: 23 Points: 3,141, Level: 23 Points: 3,141, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 640
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Sorry but I for one haven't tried anything like this before. If anyone else has any ideas, please share!

You might get more response from the Microsoft discussion groups. They get more participation. You might try one of these:
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
Reply With Quote
  #3 (permalink)  
Old July 11th, 2012, 01:00 PM
Registered User
Points: 37, Level: 1
Points: 37, Level: 1 Points: 37, Level: 1 Points: 37, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks

Rod, thanks for the info and for the quick response. I will try the forums you suggested. By the way, I also have your VB 24 hour trainer book... what a great book! I've learned so much in such a short time using your books... please keep up the great work!
Reply With Quote
  #4 (permalink)  
Old July 11th, 2012, 01:14 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,141, Level: 23
Points: 3,141, Level: 23 Points: 3,141, Level: 23 Points: 3,141, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 640
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Thanks for the kind words. Post a review when you have a chance!

If you get a good solution to the desktop issue, let us know.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create desktop sharing application? arnab-jit WinForms/Console Application Design 2 December 18th, 2012 05:28 PM
How to create a VB.NET softphone? JillyBee VB How-To 0 June 24th, 2011 02:36 AM
Create desktop icon using p&D wizard akhilesh_g Pro VB 6 0 January 7th, 2008 03:05 AM
create setup file with sql desktop engine pkuchalia C# 0 May 4th, 2007 03:17 AM
Create HomePage Shortcut On Desktop windows_mss ASP.NET 1.0 and 1.1 Professional 1 March 16th, 2007 03:31 AM



All times are GMT -4. The time now is 12:24 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.