Click here to Skip to main content
15,904,023 members
Home / Discussions / C#
   

C#

 
GeneralRe: Interfacing managed C# code and a C-shared Matlab library Pin
Jan Arjen Kraak19-Nov-09 20:43
Jan Arjen Kraak19-Nov-09 20:43 
GeneralRe: Interfacing managed C# code and a C-shared Matlab library2 Pin
nizar3213-Nov-09 11:24
nizar3213-Nov-09 11:24 
GeneralRe: Interfacing managed C# code and a C-shared Matlab library Pin
nizar3213-Nov-09 11:49
nizar3213-Nov-09 11:49 
GeneralRe: Interfacing managed C# code and a C-shared Matlab library Pin
Jan Arjen Kraak19-Nov-09 20:45
Jan Arjen Kraak19-Nov-09 20:45 
QuestionCode coverage Pin
K.v.S.12-Aug-09 4:20
K.v.S.12-Aug-09 4:20 
AnswerRe: Code coverage Pin
Luc Pattyn12-Aug-09 7:50
sitebuilderLuc Pattyn12-Aug-09 7:50 
QuestionQuerystring needed to set to empty Pin
kKamel12-Aug-09 4:08
kKamel12-Aug-09 4:08 
GeneralRe: Querystring needed to set to empty Pin
musefan12-Aug-09 4:54
musefan12-Aug-09 4:54 
GeneralRe: Querystring needed to set to empty Pin
kKamel12-Aug-09 5:04
kKamel12-Aug-09 5:04 
GeneralRe: Querystring needed to set to empty Pin
musefan12-Aug-09 5:07
musefan12-Aug-09 5:07 
AnswerRe: Querystring needed to set to empty Pin
Coding C#12-Aug-09 21:35
Coding C#12-Aug-09 21:35 
QuestionOpen Child Form and threading Pin
Saamir12-Aug-09 3:50
Saamir12-Aug-09 3:50 
AnswerRe: Open Child Form and threading Pin
0x3c012-Aug-09 3:57
0x3c012-Aug-09 3:57 
GeneralRe: Open Child Form and threading Pin
Saamir12-Aug-09 4:05
Saamir12-Aug-09 4:05 
GeneralRe: Open Child Form and threading Pin
0x3c012-Aug-09 4:16
0x3c012-Aug-09 4:16 
GeneralRe: Open Child Form and threading Pin
Saamir12-Aug-09 4:33
Saamir12-Aug-09 4:33 
GeneralRe: Open Child Form and threading Pin
0x3c012-Aug-09 4:49
0x3c012-Aug-09 4:49 
GeneralRe: Open Child Form and threading Pin
Saamir12-Aug-09 5:27
Saamir12-Aug-09 5:27 
GeneralRe: Open Child Form and threading Pin
Dave Kreskowiak12-Aug-09 6:23
mveDave Kreskowiak12-Aug-09 6:23 
GeneralRe: Open Child Form and threading Pin
Saamir12-Aug-09 6:51
Saamir12-Aug-09 6:51 
GeneralRe: Open Child Form and threading Pin
Luc Pattyn12-Aug-09 7:59
sitebuilderLuc Pattyn12-Aug-09 7:59 
QuestionCut,Copy ,Paste Problem... Pin
Rahul DSG12-Aug-09 3:00
Rahul DSG12-Aug-09 3:00 
Private StringBuilder sb=null

private void CutCopyPaste(bool Cut, bool Copy, bool Paste)
{
foreach (Form f in this.MdiChildren)
{
if (f.ContainsFocus)
{
foreach (Control c in f.Controls)
{
if (c.Focused)
{
if (c.GetType() != typeof(Label))
{
if (Cut)
{
sb.Append(c.Text);
c.Text = "";
}
else if (Copy)
sb.Append(c.Text);
else if (Paste)
c.Text = sb.ToString();
break;
}
}
}
}
}
}



private void copyToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
sb = null;
sb = new StringBuilder();
CutCopyPaste(false, true, false);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}

private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
if (sb != null)
CutCopyPaste(false, false, true);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}

private void cutToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
sb = null;
sb = new StringBuilder();
CutCopyPaste(true, false, false);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}

It is the complete code for cut copy and paste but if we take textbox inside the container like groupbox,panel etc. its not working ...and i want also include the feature Undo and SelectAll...how can i do this...
AnswerRe: Cut,Copy ,Paste Problem... Pin
ricmil4212-Aug-09 3:46
ricmil4212-Aug-09 3:46 
GeneralRe: Cut,Copy ,Paste Problem... Pin
Rahul DSG12-Aug-09 18:38
Rahul DSG12-Aug-09 18:38 
GeneralRe: Cut,Copy ,Paste Problem... Pin
ricmil4213-Aug-09 3:26
ricmil4213-Aug-09 3:26 

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.