2
Answers

how to create a notepad in windows form c#.net

Photo of Nitin Sharma

Nitin Sharma

10y
3.6k
1
Dear All
I have almost crated a notepad for using windows form and c#.net . In this application i have used a richTextBox and menustrip control, all coding i have done but word warp code not work, i have using this code but this code show an error "instance ref not set"
wordWrapToolStripMenuItem.Checked = !(wordWrapToolStripMenuItem.Checked);
richTextBox1.WordWrap = wordWrapToolStripMenuItem.Checked; 
Kindly please help me and advice the code of wordwrap
also advise me the code of find, find next, replace and goto. 

Answers (2)

0
Photo of Mitesh Mistry
NA 27 1.4k 9y
it shows me this error : localhost.SqlParameter does not contain a constructor that takes 2 arguments
 
in
param[0] = new localhost.SqlParameter("KeyWord", b[1].ToString());
this line...
 
 
0
Photo of Khan Abrar Ahmed
NA 5.8k 200k 9y
Hi u can try like this
 
localhost.SqlParameter[] param = new localhost.SqlParameter[2];
param[0] = new localhost.SqlParameter("KeyWord", "Testing");
param[1] = new localhost.SqlParameter("PageSize", 20);
var objGetDetail = Obj1.GetDetail("SP_Related", param).Tables[0];