Click here to Skip to main content
15,909,651 members
Home / Discussions / C#
   

C#

 
AnswerRe: Place an ICON on a folder? Pin
dan!sh 30-Aug-09 22:25
professional dan!sh 30-Aug-09 22:25 
QuestionAJAX, C# and webpage source Pin
kaytrance30-Aug-09 21:03
kaytrance30-Aug-09 21:03 
AnswerRe: AJAX, C# and webpage source Pin
stancrm30-Aug-09 21:04
stancrm30-Aug-09 21:04 
GeneralRe: AJAX, C# and webpage source Pin
kaytrance30-Aug-09 21:23
kaytrance30-Aug-09 21:23 
QuestionUndo And Select All Pin
Rahul DSG30-Aug-09 20:24
Rahul DSG30-Aug-09 20:24 
AnswerRe: Undo And Select All Pin
stancrm30-Aug-09 21:03
stancrm30-Aug-09 21:03 
GeneralRe: Undo And Select All Pin
Rahul DSG30-Aug-09 21:17
Rahul DSG30-Aug-09 21:17 
GeneralRe: Undo And Select All Pin
Rahul DSG30-Aug-09 21:37
Rahul DSG30-Aug-09 21:37 
And also i have to give the functionality of cut copy paste ...i have the code but its not working inside the Group box or panel...
can u modified it ..



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);
}
}
QuestionConervsion formula for XY coordinates of Picture Box to Lat/Long Pin
kjsl2k930-Aug-09 19:13
kjsl2k930-Aug-09 19:13 
AnswerRe: Conervsion formula for XY coordinates of Picture Box to Lat/Long Pin
Abhishek Sur30-Aug-09 22:06
professionalAbhishek Sur30-Aug-09 22:06 
AnswerRe: Conervsion formula for XY coordinates of Picture Box to Lat/Long Pin
stancrm30-Aug-09 22:48
stancrm30-Aug-09 22:48 
GeneralRe: Conervsion formula for XY coordinates of Picture Box to Lat/Long Pin
kjsl2k931-Aug-09 1:09
kjsl2k931-Aug-09 1:09 
QuestionHi peoples Pin
Hema Bairavan30-Aug-09 18:54
Hema Bairavan30-Aug-09 18:54 
AnswerRe: Hi peoples Pin
Mycroft Holmes30-Aug-09 19:43
professionalMycroft Holmes30-Aug-09 19:43 
QuestionUsingText File Pin
gamer112730-Aug-09 17:56
gamer112730-Aug-09 17:56 
AnswerRe: UsingText File Pin
PIEBALDconsult30-Aug-09 18:22
mvePIEBALDconsult30-Aug-09 18:22 
GeneralRe: UsingText File Pin
gamer112730-Aug-09 19:27
gamer112730-Aug-09 19:27 
AnswerRe: UsingText File Pin
Mycroft Holmes30-Aug-09 19:46
professionalMycroft Holmes30-Aug-09 19:46 
GeneralRe: UsingText File Pin
Luc Pattyn31-Aug-09 0:52
sitebuilderLuc Pattyn31-Aug-09 0:52 
AnswerRe: UsingText File Pin
Luc Pattyn31-Aug-09 0:54
sitebuilderLuc Pattyn31-Aug-09 0:54 
GeneralRe: UsingText File Pin
Richard MacCutchan31-Aug-09 9:51
mveRichard MacCutchan31-Aug-09 9:51 
GeneralRe: UsingText File Pin
Luc Pattyn31-Aug-09 11:04
sitebuilderLuc Pattyn31-Aug-09 11:04 
AnswerRe: UsingText File Pin
Richard MacCutchan31-Aug-09 23:04
mveRichard MacCutchan31-Aug-09 23:04 
AnswerRe: UsingText File Pin
Abdul Rahman Hamidy31-Aug-09 1:58
Abdul Rahman Hamidy31-Aug-09 1:58 
Questiondeployment Pin
Shuaib wasif khan30-Aug-09 14:33
Shuaib wasif khan30-Aug-09 14:33 

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.