Click here to Skip to main content
15,891,943 members
Home / Discussions / C#
   

C#

 
AnswerRe: Synchronize reading text with nariation Pin
Judah Gabriel Himango16-Nov-05 4:58
sponsorJudah Gabriel Himango16-Nov-05 4:58 
GeneralRe: Synchronize reading text with nariation Pin
Mike Jeferson17-Nov-05 5:32
Mike Jeferson17-Nov-05 5:32 
GeneralRe: Synchronize reading text with nariation Pin
Judah Gabriel Himango17-Nov-05 9:03
sponsorJudah Gabriel Himango17-Nov-05 9:03 
QuestionUlrtraWinGrid Meging Cells Pin
servik16-Nov-05 3:13
servik16-Nov-05 3:13 
Questiongetting webBrowser lines of innertext Pin
Mike Jeferson16-Nov-05 3:02
Mike Jeferson16-Nov-05 3:02 
AnswerRe: getting webBrowser lines of innertext Pin
Raj Lal17-Nov-05 16:01
professionalRaj Lal17-Nov-05 16:01 
QuestionSingle Instance of a Form Pin
PHDENG8116-Nov-05 1:31
PHDENG8116-Nov-05 1:31 
AnswerRe: Single Instance of a Form Pin
S. Senthil Kumar16-Nov-05 4:49
S. Senthil Kumar16-Nov-05 4:49 
You can do that using reflection. But you'd then need to maintain a hashtable of sorts to keep track of which forms are currently visible. If you can do that, then the following code will work.
private Form CreateIfNeeded(Type formType)
{
    Form f = (Form) formMap[formType]; //formMap maintains forms which are currently visible.
    if (f == null)
    {
       f = (Form)Activator.CreateInstance(formType);
       f.Show();
    }
    f.BringToFront();
} 


Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
Answer[Message Deleted] Pin
S. Senthil Kumar16-Nov-05 4:49
S. Senthil Kumar16-Nov-05 4:49 
GeneralRe: Single Instance of a Form Pin
PHDENG8116-Nov-05 7:22
PHDENG8116-Nov-05 7:22 
GeneralRe: Single Instance of a Form Pin
S. Senthil Kumar16-Nov-05 19:43
S. Senthil Kumar16-Nov-05 19:43 
QuestionStatic Linking in .NET? Pin
Joel Holdsworth16-Nov-05 1:28
Joel Holdsworth16-Nov-05 1:28 
AnswerRe: Static Linking in .NET? Pin
Bob Stanneveld16-Nov-05 1:42
Bob Stanneveld16-Nov-05 1:42 
GeneralRe: Static Linking in .NET? Pin
Joel Holdsworth16-Nov-05 1:51
Joel Holdsworth16-Nov-05 1:51 
GeneralRe: Static Linking in .NET? Pin
Bob Stanneveld16-Nov-05 3:10
Bob Stanneveld16-Nov-05 3:10 
QuestionHow to Saving data from the website text boxes Pin
Rusyl16-Nov-05 1:24
Rusyl16-Nov-05 1:24 
QuestionCollection editor Pin
monteiz16-Nov-05 0:53
monteiz16-Nov-05 0:53 
QuestionRemoting Channel problem with .NET 2.0 Pin
Bob Stanneveld15-Nov-05 23:54
Bob Stanneveld15-Nov-05 23:54 
AnswerRe: Remoting Channel problem with .NET 2.0 Pin
S. Senthil Kumar16-Nov-05 4:55
S. Senthil Kumar16-Nov-05 4:55 
GeneralRe: Remoting Channel problem with .NET 2.0 Pin
Bob Stanneveld16-Nov-05 5:43
Bob Stanneveld16-Nov-05 5:43 
QuestionEventLog TimeGenerated problem Pin
Michael van Rooijen15-Nov-05 23:20
Michael van Rooijen15-Nov-05 23:20 
QuestionSystem.Data.SqlClient.SqlException Pin
Lebanese15-Nov-05 23:00
Lebanese15-Nov-05 23:00 
AnswerRe: System.Data.SqlClient.SqlException Pin
Igor Sukhov16-Nov-05 0:20
Igor Sukhov16-Nov-05 0:20 
GeneralRe: System.Data.SqlClient.SqlException Pin
Lebanese16-Nov-05 1:30
Lebanese16-Nov-05 1:30 
GeneralRe: System.Data.SqlClient.SqlException Pin
Lebanese16-Nov-05 1:31
Lebanese16-Nov-05 1:31 

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.