Click here to Skip to main content
15,890,557 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: DataGridView "not always"/sometimes adjusting row height for wordwrap Pin
Henry Minute17-May-10 3:20
Henry Minute17-May-10 3:20 
QuestionDisabling cell selection in DataGrid Pin
JW73814-May-10 8:11
JW73814-May-10 8:11 
AnswerRe: Disabling cell selection in DataGrid Pin
Peace ON25-May-10 20:28
Peace ON25-May-10 20:28 
Questionhow to connect reportviewer to dataset Pin
vikas shukla14-May-10 3:09
vikas shukla14-May-10 3:09 
AnswerRe: how to connect reportviewer to dataset Pin
Illuminaries4-Jun-10 4:50
Illuminaries4-Jun-10 4:50 
QuestionCould use some guidance on Word Checkboxes Pin
msx2313-May-10 11:47
msx2313-May-10 11:47 
QuestionPassing textbox value into instance Pin
Member 447022311-May-10 22:04
Member 447022311-May-10 22:04 
AnswerRe: Passing textbox value into instance Pin
Henry Minute13-May-10 13:06
Henry Minute13-May-10 13:06 
There is at least one obvious problem:

Form frm1 = new Form();
Form frm1 = (Form)tempAssembly.CreateInstance(TextBox1.Text);


The first of these two lines sets frm1 to be a new instance of a Form.
The second line then tries to change frm1 into whatever you have in TextBox1.Text, unfortunately whatever you have there cannot be found so frm1 is set to null which is why you are getting the error.

You probably do not need the first line.

If you show an example of what might be in acode.Text people might be better able to help you.

In the interim you might want to try:
Form frm1 = (Form)tempAssembly.CreateInstance(TextBox1.Text, true);


Which tells CreateInstance not to worry about the case of the parameter text, just in case your acode.Text is correct except for the case.
Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

AnswerRe: Passing textbox value into instance Pin
Luc Pattyn13-May-10 13:13
sitebuilderLuc Pattyn13-May-10 13:13 
Question'Deck of cards' tab-like functionality Pin
span23711-May-10 20:10
span23711-May-10 20:10 
AnswerRe: 'Deck of cards' tab-like functionality Pin
Som Shekhar11-May-10 20:46
Som Shekhar11-May-10 20:46 
GeneralRe: 'Deck of cards' tab-like functionality Pin
span23711-May-10 21:32
span23711-May-10 21:32 
GeneralRe: 'Deck of cards' tab-like functionality Pin
span23712-May-10 14:18
span23712-May-10 14:18 
QuestionDatagrid view checkboxx Pin
eraser95010-May-10 5:19
eraser95010-May-10 5:19 
AnswerRe: Datagrid view checkboxx Pin
Abhinav S10-May-10 21:18
Abhinav S10-May-10 21:18 
GeneralRe: Datagrid view checkboxx Pin
jaypatel51223-May-10 11:20
jaypatel51223-May-10 11:20 
AnswerRe: Datagrid view checkboxx Pin
Peace ON11-May-10 2:34
Peace ON11-May-10 2:34 
QuestionRegex Question Pin
Alan Burkhart6-May-10 2:13
Alan Burkhart6-May-10 2:13 
AnswerRe: Regex Question Pin
Alan Burkhart6-May-10 3:39
Alan Burkhart6-May-10 3:39 
Questionlong sms sending using c# Pin
eraser9505-May-10 19:42
eraser9505-May-10 19:42 
AnswerRe: long sms sending using c# Pin
Dave Kreskowiak6-May-10 1:45
mveDave Kreskowiak6-May-10 1:45 
GeneralRe: long sms sending using c# Pin
eraser9509-May-10 6:39
eraser9509-May-10 6:39 
GeneralRe: long sms sending using c# Pin
Dave Kreskowiak9-May-10 8:13
mveDave Kreskowiak9-May-10 8:13 
GeneralRe: long sms sending using c# Pin
eraser95010-May-10 5:17
eraser95010-May-10 5:17 
GeneralRe: long sms sending using c# Pin
Dave Kreskowiak10-May-10 12:11
mveDave Kreskowiak10-May-10 12:11 

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.