Click here to Skip to main content
16,016,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: showDialog Pin
Stefan Troschuetz30-Aug-05 7:31
Stefan Troschuetz30-Aug-05 7:31 
QuestionHow to avoid getting code when decompile exe? Pin
pubududilena29-Aug-05 6:48
pubududilena29-Aug-05 6:48 
AnswerRe: How to avoid getting code when decompile exe? Pin
Dan Neely29-Aug-05 7:03
Dan Neely29-Aug-05 7:03 
AnswerRe: How to avoid getting code when decompile exe? Pin
Marcello Cantelmo29-Aug-05 11:37
Marcello Cantelmo29-Aug-05 11:37 
QuestionTroubles Capturing a Screen Shot - 'Print Screen' key functionality Pin
rcurrie29-Aug-05 6:13
rcurrie29-Aug-05 6:13 
AnswerRe: Troubles Capturing a Screen Shot - 'Print Screen' key functionality Pin
Rei Miyasaka29-Aug-05 12:40
Rei Miyasaka29-Aug-05 12:40 
GeneralRe: Troubles Capturing a Screen Shot - 'Print Screen' key functionality Pin
rcurrie30-Aug-05 6:58
rcurrie30-Aug-05 6:58 
AnswerRe: Troubles Capturing a Screen Shot - 'Print Screen' key functionality Pin
Mohamad Al Husseiny29-Aug-05 13:04
Mohamad Al Husseiny29-Aug-05 13:04 
You can simulate PrintScreen in your Program using
keybd_event API Function
This small program will take screen shot and display it in picture box
[DllImport("user32.dll")]
static extern void keybd_event(byte bVk, byte bScan, uint dwFlags,UIntPtr dwExtraInfo);

<code>private void btnPrintScreen_Click(object sender, System.EventArgs e)
{
keybd_event(44,0,0,UIntPtr.Zero);
IDataObject screen=Clipboard.GetDataObject();
if(screen.GetDataPresent(DataFormats.Bitmap))
{
pictureBox1.Image=(Image)screen.GetData(DataFormats.Bitmap,true);
}
}</code>

Note:
It use the Clipboard to get the image you can save the clipboard before printscreen and restore it after you get the image to get it back to its original state

MCAD

-- modified at 21:23 Monday 29th August, 2005
QuestionDubbging using JIT Debugger Pin
LiamD29-Aug-05 5:16
LiamD29-Aug-05 5:16 
QuestionHighlight office area in the map? Pin
BEXPERT29-Aug-05 5:12
BEXPERT29-Aug-05 5:12 
AnswerRe: Highlight office area in the map? Pin
Dave Kreskowiak29-Aug-05 13:22
mveDave Kreskowiak29-Aug-05 13:22 
GeneralRe: Highlight office area in the map? Pin
BEXPERT29-Aug-05 20:00
BEXPERT29-Aug-05 20:00 
GeneralRe: Highlight office area in the map? Pin
Dave Kreskowiak30-Aug-05 2:21
mveDave Kreskowiak30-Aug-05 2:21 
QuestionSystem.Net.Sockets class delay Pin
Jason Weibel29-Aug-05 4:54
Jason Weibel29-Aug-05 4:54 
QuestionHow to send clicks Pin
Dario Solera29-Aug-05 4:52
Dario Solera29-Aug-05 4:52 
AnswerRe: How to send clicks Pin
Daniel Turini29-Aug-05 7:53
Daniel Turini29-Aug-05 7:53 
AnswerRe: How to send clicks Pin
Mohamad Al Husseiny29-Aug-05 8:21
Mohamad Al Husseiny29-Aug-05 8:21 
GeneralRe: How to send clicks Pin
Dario Solera29-Aug-05 8:55
Dario Solera29-Aug-05 8:55 
QuestionDetermining Enter events cause Pin
Member 197725229-Aug-05 3:39
Member 197725229-Aug-05 3:39 
AnswerRe: Determining Enter events cause Pin
Dave Kreskowiak29-Aug-05 4:50
mveDave Kreskowiak29-Aug-05 4:50 
QuestionString Size Problem Pin
wasife29-Aug-05 3:21
wasife29-Aug-05 3:21 
AnswerRe: String Size Problem Pin
occcy29-Aug-05 3:46
occcy29-Aug-05 3:46 
QuestionDocumentation Pin
Anonymous29-Aug-05 1:33
Anonymous29-Aug-05 1:33 
AnswerRe: Documentation Pin
Dario Solera29-Aug-05 4:09
Dario Solera29-Aug-05 4:09 
Questionhelp Pin
ravimohan1629-Aug-05 1:29
ravimohan1629-Aug-05 1:29 

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.