Click here to Skip to main content
15,917,538 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problems with File Download Pin
Guffa27-Mar-06 7:09
Guffa27-Mar-06 7:09 
QuestionPlease help about TableAdapter Pin
emran83427-Mar-06 3:32
emran83427-Mar-06 3:32 
QuestionLocalization Issue Pin
adityap27-Mar-06 3:13
adityap27-Mar-06 3:13 
AnswerRe: Localization Issue Pin
Ricardo Casquete27-Mar-06 4:24
Ricardo Casquete27-Mar-06 4:24 
QuestionTextbox enter Pin
Dave McCool27-Mar-06 2:57
Dave McCool27-Mar-06 2:57 
AnswerRe: Textbox enter Pin
albCode27-Mar-06 3:11
albCode27-Mar-06 3:11 
AnswerRe: Textbox enter Pin
Jimbo2227-Mar-06 5:06
Jimbo2227-Mar-06 5:06 
AnswerRe: Textbox enter Pin
Ricardo Casquete27-Mar-06 5:07
Ricardo Casquete27-Mar-06 5:07 
I think a nice solution could be done using a bit of Reflection...

<br />
<br />
string inputFormName = this.textBox1.Text;<br />
string CurrentFormAssemblyQualifiedName = this.GetType().AssemblyQualifiedName;<br />
<br />
string TargetFormAssemblyQualifiedName = CurrentFormAssemblyQualifiedName.Replace ( this.Name, inputFormName );<br />
<br />
System.Type formType = System.Type.GetType ( TargetFormAssemblyQualifiedName );<br />
<br />
if ( formType != null )<br />
{<br />
        System.Windows.Forms.Form frm = ( System.Windows.Forms.Form )Activator.CreateInstance ( formType );<br />
	frm.Show ();		<br />
}<br />
<br />


This Example is working in my PC, because I have tested... It is based in the fact that both forms are in the Same project and folder ( means Exactly Namespace, and the TextBox has exactly the name of the Form... so you'll have to play a bit with it... )

Good Luck

Ricardo Casquete
QuestionProblem in using Timers Pin
smadan27-Mar-06 2:56
smadan27-Mar-06 2:56 
AnswerRe: Problem in using Timers Pin
BlackDice27-Mar-06 7:25
BlackDice27-Mar-06 7:25 
QuestionRe: Problem in using Timers Pin
smadan27-Mar-06 18:49
smadan27-Mar-06 18:49 
QuestionAnagram Algorithm Pin
martin_hughes27-Mar-06 2:38
martin_hughes27-Mar-06 2:38 
AnswerRe: Anagram Algorithm Pin
leppie27-Mar-06 3:32
leppie27-Mar-06 3:32 
AnswerRe: Anagram Algorithm Pin
Michael Potter27-Mar-06 3:32
Michael Potter27-Mar-06 3:32 
Questionembed flash object? Pin
Dave McCool27-Mar-06 2:23
Dave McCool27-Mar-06 2:23 
QuestionDataGrid, WinForm - how do I set column width to &quot;AutoFit&quot;? Pin
devvvy27-Mar-06 1:40
devvvy27-Mar-06 1:40 
AnswerRe: DataGrid, WinForm - how do I set column width to &quot;AutoFit&quot;? Pin
sathish s27-Mar-06 2:00
sathish s27-Mar-06 2:00 
QuestionSynchronized painting Pin
magja27-Mar-06 1:33
magja27-Mar-06 1:33 
Question.NET profiling -- request recommendation Pin
spin vector27-Mar-06 1:19
spin vector27-Mar-06 1:19 
AnswerRe: .NET profiling -- request recommendation Pin
Nicholas Butler27-Mar-06 1:46
sitebuilderNicholas Butler27-Mar-06 1:46 
QuestionC# - Crystal Reports Problem Pin
Abhijeet Ballal27-Mar-06 0:44
Abhijeet Ballal27-Mar-06 0:44 
AnswerRe: C# - Crystal Reports Problem Pin
V.27-Mar-06 1:11
professionalV.27-Mar-06 1:11 
GeneralRe: C# - Crystal Reports Problem Pin
Abhijeet Ballal27-Mar-06 1:25
Abhijeet Ballal27-Mar-06 1:25 
GeneralRe: C# - Crystal Reports Problem Pin
V.27-Mar-06 1:30
professionalV.27-Mar-06 1:30 
QuestionDownloading a File Pin
SreekanthJ27-Mar-06 0:31
SreekanthJ27-Mar-06 0: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.