Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
GeneralRe: get datetime values from database in dd/MM/yyyy HH:mm:ss format irrespective of system date/time format Pin
NarVish2-Apr-13 19:55
NarVish2-Apr-13 19:55 
QuestionLeft click works right does not Pin
electriac2-Apr-13 0:29
electriac2-Apr-13 0:29 
QuestionRe: Left click works right does not Pin
Eddy Vluggen2-Apr-13 0:33
professionalEddy Vluggen2-Apr-13 0:33 
AnswerRe: Left click works right does not Pin
electriac2-Apr-13 0:39
electriac2-Apr-13 0:39 
AnswerRe: Left click works right does not Pin
electriac2-Apr-13 0:50
electriac2-Apr-13 0:50 
AnswerRe: Left click works right does not Pin
Richard MacCutchan2-Apr-13 2:14
mveRichard MacCutchan2-Apr-13 2:14 
GeneralRe: Left click works right does not Pin
electriac2-Apr-13 2:41
electriac2-Apr-13 2:41 
GeneralRe: Left click works right does not Pin
electriac2-Apr-13 2:45
electriac2-Apr-13 2:45 
GeneralRe: Left click works right does not Pin
Richard MacCutchan2-Apr-13 2:50
mveRichard MacCutchan2-Apr-13 2:50 
AnswerRe: Left click works right does not Pin
Bernhard Hiller2-Apr-13 21:26
Bernhard Hiller2-Apr-13 21:26 
AnswerRe: Left click works right does not Pin
raeeschaudhary2-Apr-13 21:41
raeeschaudhary2-Apr-13 21:41 
QuestionRead PDF Pin
Kevin Marois1-Apr-13 12:53
professionalKevin Marois1-Apr-13 12:53 
AnswerRe: Read PDF Pin
Eddy Vluggen1-Apr-13 13:15
professionalEddy Vluggen1-Apr-13 13:15 
GeneralRe: Read PDF Pin
Kevin Marois1-Apr-13 13:16
professionalKevin Marois1-Apr-13 13:16 
GeneralRe: Read PDF Pin
Eddy Vluggen1-Apr-13 13:21
professionalEddy Vluggen1-Apr-13 13:21 
AnswerRe: Read PDF Pin
Abhinav S1-Apr-13 20:47
Abhinav S1-Apr-13 20:47 
QuestionFavorites from HTML Pin
MAW301-Apr-13 12:15
MAW301-Apr-13 12:15 
AnswerRe: Favorites from HTML Pin
Eddy Vluggen1-Apr-13 13:20
professionalEddy Vluggen1-Apr-13 13:20 
QuestionOpenOffice API for DotNet Pin
ASPnoob1-Apr-13 6:45
ASPnoob1-Apr-13 6:45 
AnswerRe: OpenOffice API for DotNet Pin
NotPolitcallyCorrect1-Apr-13 7:13
NotPolitcallyCorrect1-Apr-13 7:13 
QuestionEach page of report viewer contain single report(.rdlc) Pin
M. K. BASHER1-Apr-13 2:23
M. K. BASHER1-Apr-13 2:23 
QuestionHow to use IWin32Window Pin
mhd almidani31-Mar-13 23:31
mhd almidani31-Mar-13 23:31 
AnswerRe: How to use IWin32Window Pin
Eddy Vluggen1-Apr-13 0:03
professionalEddy Vluggen1-Apr-13 0:03 
GeneralRe: How to use IWin32Window Pin
mhd almidani1-Apr-13 5:09
mhd almidani1-Apr-13 5:09 
GeneralRe: How to use IWin32Window Pin
Alan N1-Apr-13 5:24
Alan N1-Apr-13 5:24 
I am guessing from the name of the method that you want to open a Form as a modal dialog. If that is the case then the code would be almost identical to that already presented by Eddy.

C#
void ShowDialog(IWin32Window owner)
{
  using (Form f = new Form())
  {
    f.ShowDialog(owner); 
  }
}


If this isn't the correct answer then you will need to say what you actually want your method to do.

Alan.

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.