Click here to Skip to main content
11,430,708 members (78,350 online)
   

C#

 
AnswerRe: how to confirm Security risk alert in C# web browser Pin
Pete O'Hanlon25-Feb-14 4:11
protectorPete O'Hanlon25-Feb-14 4:11 
GeneralRe: how to confirm Security risk alert in C# web browser Pin
Abhinaw Kumar Singh25-Feb-14 7:18
memberAbhinaw Kumar Singh25-Feb-14 7:18 
GeneralRe: how to confirm Security risk alert in C# web browser Pin
Richard Deeming25-Feb-14 8:16
professionalRichard Deeming25-Feb-14 8:16 
GeneralRe: how to confirm Security risk alert in C# web browser Pin
Bernhard Hiller25-Feb-14 22:39
professionalBernhard Hiller25-Feb-14 22:39 
QuestionCreating DTO using TDD approach Pin
ramsai197325-Feb-14 2:22
memberramsai197325-Feb-14 2:22 
Questionhow to restore a sql database programmatically in c#? Pin
rincy sivan25-Feb-14 0:35
memberrincy sivan25-Feb-14 0:35 
AnswerRe: how to restore a sql database programmatically in c#? Pin
Nicholas Marty25-Feb-14 0:54
professionalNicholas Marty25-Feb-14 0:54 
AnswerRe: how to restore a sql database programmatically in c#? Pin
OriginalGriff25-Feb-14 0:57
protectorOriginalGriff25-Feb-14 0:57 
AnswerRe: how to restore a sql database programmatically in c#? Pin
Raj Mouli26-Feb-14 20:44
memberRaj Mouli26-Feb-14 20:44 
AnswerRe: how to restore a sql database programmatically in c#? Pin
Raj Mouli26-Feb-14 20:45
memberRaj Mouli26-Feb-14 20:45 
QuestionSerialComm Port to send and receive sms Pin
yomag4chi24-Feb-14 22:51
memberyomag4chi24-Feb-14 22:51 
AnswerRe: SerialComm Port to send and receive sms Pin
Richard MacCutchan24-Feb-14 23:04
protectorRichard MacCutchan24-Feb-14 23:04 
AnswerRe: SerialComm Port to send and receive sms Pin
OriginalGriff24-Feb-14 23:29
protectorOriginalGriff24-Feb-14 23:29 
Questionhow to prevent form open twice Pin
Aman Susanto24-Feb-14 3:50
memberAman Susanto24-Feb-14 3:50 
hi every body, i use dynamically toolstripmenu to generate menu, i don't know how to prevent form open twice, please help.

this is my code :

ToolStripMenuItem SubMenu = new ToolStripMenuItem(sdr1["description"].ToString(), null, new EventHandler(klikMenu));

private void klikMenu(object sender, EventArgs e)
            {
                  string sFormName = "AIO_System." + ((ToolStripMenuItem)sender).Tag.ToString();
                  System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();

                  Form frm = (Form)asm.CreateInstance(sFormName);      <======
                  if(!IsFormOpen(frm.GetType()))
                        {
                              frm.Owner = this;
                              frm.Show();
                        }
                        else
                              frm.Focus();
                  }
            }

            private bool IsFormOpen(Type formType)
            {
                  foreach (Form form in Application.OpenForms)
                        if (form.GetType().Name == form.Name)
                              return true;
                  return false;
            }
AnswerRe: how to prevent form open twice Pin
johannesnestler24-Feb-14 4:15
memberjohannesnestler24-Feb-14 4:15 
GeneralRe: how to prevent form open twice Pin
Eddy Vluggen24-Feb-14 7:57
professionalEddy Vluggen24-Feb-14 7:57 
GeneralRe: how to prevent form open twice Pin
johannesnestler24-Feb-14 9:12
memberjohannesnestler24-Feb-14 9:12 
AnswerRe: how to prevent form open twice [modified] Pin
BillWoodruff24-Feb-14 7:41
memberBillWoodruff24-Feb-14 7:41 
AnswerRe: how to prevent form open twice Pin
Richard Deeming24-Feb-14 10:00
professionalRichard Deeming24-Feb-14 10:00 
GeneralRe: how to prevent form open twice Pin
BillWoodruff24-Feb-14 14:21
memberBillWoodruff24-Feb-14 14:21 
SuggestionRe: how to prevent form open twice Pin
azhar9925-Feb-14 21:50
memberazhar9925-Feb-14 21:50 
QuestionA first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in Microsoft.Phone.Data.Internal.ni.dll Pin
Gene Lim23-Feb-14 23:40
memberGene Lim23-Feb-14 23:40 
AnswerRe: A first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in Microsoft.Phone.Data.Internal.ni.dll Pin
Naveen Kumar Krishnan24-Feb-14 2:18
memberNaveen Kumar Krishnan24-Feb-14 2:18 
GeneralRe: A first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in Microsoft.Phone.Data.Internal.ni.dll Pin
Gene Lim24-Feb-14 3:53
memberGene Lim24-Feb-14 3:53 
QuestionSQL SELECT Current User c# Pin
mcgurdan22-Feb-14 10:49
membermcgurdan22-Feb-14 10:49 
AnswerRe: SQL SELECT Current User c# Pin
Ravi Bhavnani22-Feb-14 12:13
professionalRavi Bhavnani22-Feb-14 12:13 
QuestionHow do I inherit ComboBox to implement my function Pin
Member 1041329221-Feb-14 22:50
professionalMember 1041329221-Feb-14 22:50 
AnswerRe: How do I inherit ComboBox to implement my function Pin
Richard MacCutchan22-Feb-14 0:10
protectorRichard MacCutchan22-Feb-14 0:10 
GeneralRe: How do I inherit ComboBox to implement my function Pin
BillWoodruff22-Feb-14 6:44
memberBillWoodruff22-Feb-14 6:44 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Dave Kreskowiak22-Feb-14 9:11
mvpDave Kreskowiak22-Feb-14 9:11 
GeneralRe: How do I inherit ComboBox to implement my function Pin
BillWoodruff22-Feb-14 9:30
memberBillWoodruff22-Feb-14 9:30 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Ravi Bhavnani22-Feb-14 12:15
professionalRavi Bhavnani22-Feb-14 12:15 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Dave Kreskowiak23-Feb-14 5:47
mvpDave Kreskowiak23-Feb-14 5:47 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Ravi Bhavnani23-Feb-14 7:34
professionalRavi Bhavnani23-Feb-14 7:34 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Richard MacCutchan23-Feb-14 22:59
protectorRichard MacCutchan23-Feb-14 22:59 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Member 1041329223-Feb-14 14:53
professionalMember 1041329223-Feb-14 14:53 
AnswerRe: How do I inherit ComboBox to implement my function Pin
BillWoodruff22-Feb-14 5:48
memberBillWoodruff22-Feb-14 5:48 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Member 1041329223-Feb-14 14:50
professionalMember 1041329223-Feb-14 14:50 
GeneralRe: How do I inherit ComboBox to implement my function Pin
BillWoodruff23-Feb-14 15:06
memberBillWoodruff23-Feb-14 15:06 
Questionslow motion problem in picture box... Pin
Edalat_201121-Feb-14 22:36
memberEdalat_201121-Feb-14 22:36 
AnswerRe: slow motion problem in picture box... Pin
BillWoodruff22-Feb-14 10:11
memberBillWoodruff22-Feb-14 10:11 
AnswerRe: slow motion problem in picture box... Pin
TnTinMn23-Feb-14 12:10
memberTnTinMn23-Feb-14 12:10 
QuestionAcroRd32.exe command line options and alternatives Pin
kranthi198821-Feb-14 11:58
memberkranthi198821-Feb-14 11:58 
AnswerRe: AcroRd32.exe command line options and alternatives Pin
Garth J Lancaster21-Feb-14 12:14
memberGarth J Lancaster21-Feb-14 12:14 
Questionhow to use a key in md5 algorithm in c# Pin
rincy sivan21-Feb-14 1:22
memberrincy sivan21-Feb-14 1:22 
AnswerRe: how to use a key in md5 algorithm in c# Pin
Eddy Vluggen21-Feb-14 1:27
professionalEddy Vluggen21-Feb-14 1:27 
GeneralRe: how to use a key in md5 algorithm in c# Pin
OriginalGriff21-Feb-14 1:57
protectorOriginalGriff21-Feb-14 1:57 
AnswerRe: how to use a key in md5 algorithm in c# Pin
OriginalGriff21-Feb-14 2:03
protectorOriginalGriff21-Feb-14 2:03 
JokeRe: how to use a key in md5 algorithm in c# Pin
Marco Bertschi21-Feb-14 2:18
protectorMarco Bertschi21-Feb-14 2:18 
GeneralRe: how to use a key in md5 algorithm in c# Pin
OriginalGriff21-Feb-14 4:30
protectorOriginalGriff21-Feb-14 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150428.2 | Last Updated 4 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid