Click here to Skip to main content
15,889,403 members
Home / Discussions / C#
   

C#

 
GeneralRe: pls help with this print codes Pin
Vipin Venugopal31-Jul-06 19:21
Vipin Venugopal31-Jul-06 19:21 
GeneralRe: pls help with this print codes Pin
skyeddie31-Jul-06 20:10
skyeddie31-Jul-06 20:10 
GeneralRe: pls help with this print codes Pin
Vipin Venugopal31-Jul-06 20:24
Vipin Venugopal31-Jul-06 20:24 
Questionplacing the cursor Pin
sarojkumarjena30-Jul-06 23:09
sarojkumarjena30-Jul-06 23:09 
AnswerRe: placing the cursor Pin
stancrm30-Jul-06 23:29
stancrm30-Jul-06 23:29 
AnswerRe: placing the cursor Pin
LongRange.Shooter31-Jul-06 5:29
LongRange.Shooter31-Jul-06 5:29 
QuestionHow to disable "Ctrl+A, Ctrl+C" buttons on WebBrowser? Pin
COBECTb30-Jul-06 22:40
COBECTb30-Jul-06 22:40 
AnswerRe: How to disable "Ctrl+A, Ctrl+C" buttons on WebBrowser? Pin
Vipin Venugopal30-Jul-06 23:11
Vipin Venugopal30-Jul-06 23:11 
Try this.

var isIE = ( document.all != null );

function initIframe()
{
if ( isIE )
{
//wiring to onkeydown event
editor.attachEvent('onkeydown', editorEvents);
...
}
else
{
editor.addEventListener('keypress', editorEvents, true);
...
}
}

function editorEvents(evt)
{
//this is just old habit
evt = ( evt == null ) ? event; evt;

var keyCode = evt.keyCode ? evt.keyCode : evt.charCode;
var keyCodeChar = String.fromCharCode(keyCode).toLowerCase();

if ( !isIE )//-->If FireFox
{
if (evt.type=='keypress' && evt.ctrlKey)
{
...
}
}


if ( isIE )//-->If IE
{
//changed the type to "keydown" to catch new wiring.
if (evt.type=='keydown' && keyCodeChar=='v' && evt.ctrlKey)
{
//do something.

//setting the returnValue will cause the event to stop bubbling.
evt.returnValue = false;
//no return needed
}

}

return true;
}

Vipin
GeneralRe: How to disable "Ctrl+A, Ctrl+C" buttons on WebBrowser? Pin
COBECTb30-Jul-06 23:38
COBECTb30-Jul-06 23:38 
GeneralRe: How to disable "Ctrl+A, Ctrl+C" buttons on WebBrowser? Pin
Vipin Venugopal31-Jul-06 0:03
Vipin Venugopal31-Jul-06 0:03 
GeneralRe: How to disable "Ctrl+A, Ctrl+C" buttons on WebBrowser? Pin
COBECTb31-Jul-06 3:33
COBECTb31-Jul-06 3:33 
GeneralRe: How to disable "Ctrl+A, Ctrl+C" buttons on WebBrowser? Pin
Vipin Venugopal31-Jul-06 20:29
Vipin Venugopal31-Jul-06 20:29 
GeneralRe: How to disable "Ctrl+A, Ctrl+C" buttons on WebBrowser? Pin
COBECTb3-Aug-06 5:54
COBECTb3-Aug-06 5:54 
QuestionSimple question... Pin
SoftcodeSoftware30-Jul-06 22:02
SoftcodeSoftware30-Jul-06 22:02 
AnswerRe: Simple question... [modified] Pin
coolestCoder30-Jul-06 22:06
coolestCoder30-Jul-06 22:06 
GeneralRe: Simple question... Pin
SoftcodeSoftware30-Jul-06 22:09
SoftcodeSoftware30-Jul-06 22:09 
GeneralRe: Simple question... Pin
S. Senthil Kumar30-Jul-06 23:11
S. Senthil Kumar30-Jul-06 23:11 
GeneralRe: Simple question... Pin
Guffa30-Jul-06 23:39
Guffa30-Jul-06 23:39 
QuestionOOP Book Pin
fmardani30-Jul-06 21:58
fmardani30-Jul-06 21:58 
AnswerRe: OOP Book Pin
Saqib Mehmood30-Jul-06 23:28
Saqib Mehmood30-Jul-06 23:28 
AnswerRe: OOP Book Pin
moon_stick31-Jul-06 2:30
moon_stick31-Jul-06 2:30 
AnswerRe: OOP Book Pin
L Viljoen1-Aug-06 2:14
professionalL Viljoen1-Aug-06 2:14 
QuestionFileSystemWatcher Problem ! Pin
coolestCoder30-Jul-06 21:40
coolestCoder30-Jul-06 21:40 
AnswerRe: FileSystemWatcher Problem ! Pin
LongRange.Shooter31-Jul-06 5:35
LongRange.Shooter31-Jul-06 5:35 
GeneralRe: FileSystemWatcher Problem ! [modified] Pin
coolestCoder31-Jul-06 20:49
coolestCoder31-Jul-06 20:49 

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.