Click here to Skip to main content
15,907,326 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multiple entries per row in a datagrid Pin
falles0122-Nov-07 16:25
falles0122-Nov-07 16:25 
GeneralRe: Multiple entries per row in a datagrid Pin
falles0122-Nov-07 18:54
falles0122-Nov-07 18:54 
QuestionHow can I select a whole when I click on CheckBox in DataGridView? Pin
T4AMD21-Nov-07 13:56
T4AMD21-Nov-07 13:56 
AnswerRe: How can I select a whole when I click on CheckBox in DataGridView? Pin
Michael Sync21-Nov-07 15:51
Michael Sync21-Nov-07 15:51 
QuestionDelete Key Trapping? Pin
jasper01821-Nov-07 13:16
jasper01821-Nov-07 13:16 
AnswerRe: Delete Key Trapping? Pin
Anthony Mushrow21-Nov-07 14:28
professionalAnthony Mushrow21-Nov-07 14:28 
GeneralRe: Delete Key Trapping? Pin
jasper01827-Nov-07 4:04
jasper01827-Nov-07 4:04 
QuestionC# Modules/Plugins loaded dynamically - UserControl or others Pin
Fabricio Miranda21-Nov-07 12:43
Fabricio Miranda21-Nov-07 12:43 
Hello all,
im having a bit of a big problem with some modules/plugins that i want to add to my c# project on VS2005...

Im trying to load a UserControl from another assembly loaded by the /bin folder of my .NET application.
Iv found some methods but none of them worked !
Im looking for a way to load a form, or a UserControl because it can became another sub-application to my main application, but i want to load it dynnamicly, so i can just copy/past another module/plugin and the program will recognize it automatically...

So UserControl seems a good choice, it can have controls and i can code freely inside of it, all i have to do is to add it to my main page and i have a sub-application inside my main one.

SO!

how can i do that??!?!
is there another way better than UserControl ?

remembering that i DO NOT want the fixed name of my control "mycontrol.ascx".. i just want to PASTE my assembly on my bin folder and load it...

i was able to find the assembly, find the Type of my usercontrol but when i try to load it with:
Activator.CreateInstance(theType);
it doesnt work.... it loads, but no control is visible when i call add() ...

but!

if i could just get the filename of my Type ( of my ascx class inside the Assembly ) i could just do it using:
UserControl uc = (UserControl)LoadControl(controlPath);
PlaceHolder1.Controls.Add(uc);

and done! ... but i wasnt able to find the filename of the ".ascx" file...

so, im stuck....Hmmm | :|

anyone can help me? Confused | :confused:
thanks!



GReed
QuestionDirectInput / XInput Articles Pin
MasterSharp21-Nov-07 11:50
MasterSharp21-Nov-07 11:50 
QuestionShow proccess window Pin
Scalee21-Nov-07 10:20
Scalee21-Nov-07 10:20 
AnswerRe: Show proccess window Pin
Mark Greenwood21-Nov-07 10:33
Mark Greenwood21-Nov-07 10:33 
AnswerRe: Show proccess window Pin
Skippums21-Nov-07 11:07
Skippums21-Nov-07 11:07 
GeneralRe: Show proccess window Pin
Scalee22-Nov-07 12:00
Scalee22-Nov-07 12:00 
Questiontextbox(es) Pin
Assaf8221-Nov-07 9:48
Assaf8221-Nov-07 9:48 
AnswerRe: textbox(es) Pin
J$21-Nov-07 9:58
J$21-Nov-07 9:58 
AnswerRe: textbox(es) Pin
Giorgi Dalakishvili21-Nov-07 10:04
mentorGiorgi Dalakishvili21-Nov-07 10:04 
AnswerRe: textbox(es) Pin
Anthony Mushrow21-Nov-07 10:12
professionalAnthony Mushrow21-Nov-07 10:12 
Questionpass value from sub form to parent form Pin
madEG21-Nov-07 8:32
madEG21-Nov-07 8:32 
AnswerRe: pass value from sub form to parent form Pin
Kristian Sixhøj21-Nov-07 8:37
Kristian Sixhøj21-Nov-07 8:37 
GeneralRe: pass value from sub form to parent form Pin
madEG21-Nov-07 8:47
madEG21-Nov-07 8:47 
GeneralRe: pass value from sub form to parent form Pin
Kristian Sixhøj21-Nov-07 8:58
Kristian Sixhøj21-Nov-07 8:58 
GeneralRe: pass value from sub form to parent form Pin
madEG21-Nov-07 9:05
madEG21-Nov-07 9:05 
GeneralRe: pass value from sub form to parent form Pin
Kristian Sixhøj21-Nov-07 9:07
Kristian Sixhøj21-Nov-07 9:07 
AnswerRe: pass value from sub form to parent form Pin
Skippums21-Nov-07 9:05
Skippums21-Nov-07 9:05 
AnswerRe: pass value from sub form to parent form Pin
DaveyM6921-Nov-07 9:19
professionalDaveyM6921-Nov-07 9:19 

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.