Click here to Skip to main content
15,926,507 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCalling NetUserSetGroups API in VB.Net Pin
Calvinix4-Dec-05 18:22
Calvinix4-Dec-05 18:22 
QuestionRe: Drag'n'Drop --> VB6 Pin
Hoopla!4-Dec-05 15:21
Hoopla!4-Dec-05 15:21 
QuestionArraylist using classes Pin
chrischik4-Dec-05 10:49
chrischik4-Dec-05 10:49 
AnswerRe: Arraylist using classes Pin
Briga4-Dec-05 22:38
Briga4-Dec-05 22:38 
GeneralRe: Arraylist using classes Pin
chrischik5-Dec-05 0:17
chrischik5-Dec-05 0:17 
GeneralRe: Arraylist using classes Pin
Briga5-Dec-05 4:56
Briga5-Dec-05 4:56 
GeneralRe: Arraylist using classes Pin
chrischik6-Dec-05 6:45
chrischik6-Dec-05 6:45 
QuestionScreenshot of a Control Pin
vocaris4-Dec-05 8:59
vocaris4-Dec-05 8:59 
I want to make a screenshot of a control, but with a code I found in the Internet (posted below) the screenshot contains for example the explorer bar or a window that is in front of my control (like a real screenshot). What I want is a screenshot of the control only. My control contains other controls (Container-Control).
And now the code:
   Public Function ScreenShot() As Bitmap<br />
      Dim formGraphics As Graphics = Me.CreateGraphics<br />
<br />
      Dim formImage As New Bitmap(Me.Width, Me.Height, formGraphics)<br />
<br />
      Dim memGraphics As Graphics = Graphics.FromImage(formImage)<br />
<br />
      Dim sourceDC As IntPtr = formGraphics.GetHdc<br />
      Dim targetDC As IntPtr = memGraphics.GetHdc<br />
<br />
      BitBlt(targetDC, _<br />
       0, 0, _<br />
       Me.Width, _<br />
       Me.Height, _<br />
        sourceDC, _<br />
       0, 0, _<br />
       SRCCOPY)<br />
<br />
      ' Release DCs and dispose objects<br />
      formGraphics.ReleaseHdc(sourceDC)<br />
      formGraphics.Dispose()<br />
      memGraphics.ReleaseHdc(targetDC)<br />
      memGraphics.Dispose()<br />
<br />
      Return formImage<br />
   End Function<br />

Questionhiiiiiiiiiii Pin
Barakota4-Dec-05 5:11
Barakota4-Dec-05 5:11 
AnswerRe: hiiiiiiiiiii Pin
Colin Angus Mackay4-Dec-05 16:06
Colin Angus Mackay4-Dec-05 16:06 
QuestionAdvantages &amp; Disadvantages of Shared Interface Pin
Vipul Mehta4-Dec-05 2:51
Vipul Mehta4-Dec-05 2:51 
AnswerRe: Advantages &amp;amp; Disadvantages of Shared Interface Pin
Dave Kreskowiak4-Dec-05 5:42
mveDave Kreskowiak4-Dec-05 5:42 
QuestionI need to create a windows service Pin
Wilbur J. Pereira4-Dec-05 2:44
Wilbur J. Pereira4-Dec-05 2:44 
AnswerRe: I need to create a windows service Pin
Dave Kreskowiak4-Dec-05 5:19
mveDave Kreskowiak4-Dec-05 5:19 
GeneralRe: I need to create a windows service Pin
Wilbur J. Pereira5-Dec-05 18:22
Wilbur J. Pereira5-Dec-05 18:22 
QuestionAbout mciSendstring VB.Net Pin
JUNEYT4-Dec-05 0:09
JUNEYT4-Dec-05 0:09 
AnswerRe: About mciSendstring VB.Net Pin
Dave Kreskowiak4-Dec-05 5:14
mveDave Kreskowiak4-Dec-05 5:14 
AnswerRe: About mciSendstring VB.Net Pin
progload4-Dec-05 6:02
progload4-Dec-05 6:02 
QuestionHow to make Filesystemwhatcher monitor Network drives? Pin
Zenly3-Dec-05 15:46
Zenly3-Dec-05 15:46 
AnswerRe: How to make Filesystemwhatcher monitor Network drives? Pin
Dave Kreskowiak3-Dec-05 16:45
mveDave Kreskowiak3-Dec-05 16:45 
GeneralRe: How to make Filesystemwhatcher monitor Network drives? Pin
Zenly3-Dec-05 18:46
Zenly3-Dec-05 18:46 
GeneralRe: How to make Filesystemwhatcher monitor Network drives? Pin
Dave Kreskowiak4-Dec-05 5:08
mveDave Kreskowiak4-Dec-05 5:08 
GeneralRe: How to make Filesystemwhatcher monitor Network drives? Pin
Zenly7-Dec-05 11:19
Zenly7-Dec-05 11:19 
QuestionVideo Compression Pin
greenai3-Dec-05 11:38
greenai3-Dec-05 11:38 
AnswerRe: Video Compression Pin
Dave Kreskowiak3-Dec-05 16:38
mveDave Kreskowiak3-Dec-05 16:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.