Click here to Skip to main content
15,905,614 members
Home / Discussions / C#
   

C#

 
GeneralRe: TCP Class - Send Function Pin
Programm3r6-Dec-07 0:32
Programm3r6-Dec-07 0:32 
QuestionRegarding parameterizedthreadstart??? Pin
Ron.S5-Dec-07 21:24
Ron.S5-Dec-07 21:24 
AnswerRe: Regarding parameterizedthreadstart??? Pin
CKnig5-Dec-07 23:26
CKnig5-Dec-07 23:26 
QuestionAbout Combobox's ValueMember and DisplayMember Pin
Zerox MXI5-Dec-07 20:07
Zerox MXI5-Dec-07 20:07 
GeneralRe: About Combobox's ValueMember and DisplayMember Pin
CKnig5-Dec-07 20:13
CKnig5-Dec-07 20:13 
GeneralRe: About Combobox's ValueMember and DisplayMember Pin
Zerox MXI5-Dec-07 20:23
Zerox MXI5-Dec-07 20:23 
GeneralRe: About Combobox's ValueMember and DisplayMember Pin
CKnig5-Dec-07 23:30
CKnig5-Dec-07 23:30 
GeneralRe: About Combobox's ValueMember and DisplayMember Pin
Zerox MXI6-Dec-07 3:10
Zerox MXI6-Dec-07 3:10 
Questionhow to export datagridview contents to excel Pin
Nitin Raj5-Dec-07 19:56
Nitin Raj5-Dec-07 19:56 
GeneralRe: how to export datagridview contents to excel Pin
DKalepu5-Dec-07 22:49
DKalepu5-Dec-07 22:49 
QuestionHow To : coerce a ref to an enum into a ref to an int. Pin
urbane.tiger5-Dec-07 18:59
urbane.tiger5-Dec-07 18:59 
AnswerRe: How To : coerce a ref to an enum into a ref to an int. Pin
Skippums6-Dec-07 10:39
Skippums6-Dec-07 10:39 
Question[Message Deleted] Pin
rockz...5-Dec-07 18:52
rockz...5-Dec-07 18:52 
GeneralRe: Serial No. for rows in datagrid Pin
Sathesh Sakthivel5-Dec-07 19:00
Sathesh Sakthivel5-Dec-07 19:00 
GeneralRe: Serial No. for rows in datagrid Pin
dan!sh 5-Dec-07 19:28
professional dan!sh 5-Dec-07 19:28 
Questionhow to populate a single column from a table to a datagridview Pin
kssknov5-Dec-07 18:46
kssknov5-Dec-07 18:46 
AnswerRe: how to populate a single column from a table to a datagridview Pin
Sathesh Sakthivel5-Dec-07 18:55
Sathesh Sakthivel5-Dec-07 18:55 
GeneralRe: how to populate a single column from a table to a datagridview Pin
kssknov5-Dec-07 19:06
kssknov5-Dec-07 19:06 
AnswerRe: how to populate a single column from a table to a datagridview Pin
I.explore.code5-Dec-07 23:49
I.explore.code5-Dec-07 23:49 
GeneralPrint data from webbrowser used on windows form Pin
D i x y5-Dec-07 18:09
D i x y5-Dec-07 18:09 
GeneralJava script using windows form Pin
Satish - Developer5-Dec-07 17:53
Satish - Developer5-Dec-07 17:53 
GeneralRe: Java script using windows form Pin
Sathesh Sakthivel5-Dec-07 17:58
Sathesh Sakthivel5-Dec-07 17:58 
I have also faced the same situation i solved this by calling
Page_ClientValidate() function before printing. Don't directly call
window.print() instead
<br />
<br />
private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
StringBuilder myScript = new StringBuilder();<br />
<br />
myScript.Append("<script language='Javascript'>");<br />
myScript.Append(" function PrintForm(){");<br />
myScript.Append(" if (Page_ClientValidate()){");<br />
myScript.Append(" window.print();}");<br />
myScript.Append("}");<br />
myScript.Append("</script>");<br />
<br />
this.RegisterStartupScript("MyScript", myScript.ToString());<br />
<br />
Button2.Attributes.Add("onclick","javascript:PrintForm();");<br />
}<br />
<br />


this should help.

SSK.

Anyone who says sunshine brings happiness has never danced in the rain.

GeneralRe: Java script using windows form Pin
Satish - Developer5-Dec-07 18:09
Satish - Developer5-Dec-07 18:09 
GeneralRe: Java script using windows form Pin
Sun Rays5-Dec-07 18:36
Sun Rays5-Dec-07 18:36 
GeneralA tiny issue with ".NET Snap To Screen Form" Pin
EEssam5-Dec-07 17:48
EEssam5-Dec-07 17:48 

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.