Click here to Skip to main content
15,901,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: Facing problem while calling FOR EACH st. in vb from C# DLL Pin
Colin Angus Mackay23-Aug-04 4:03
Colin Angus Mackay23-Aug-04 4:03 
GeneralRe: Facing problem while calling FOR EACH st. in vb from C# DLL Pin
leppie23-Aug-04 4:02
leppie23-Aug-04 4:02 
GeneralDesigner - Components - Properties only visible in derived classes Pin
STW23-Aug-04 1:45
STW23-Aug-04 1:45 
GeneralRe: Designer - Components - Properties only visible in derived classes Pin
leppie23-Aug-04 4:00
leppie23-Aug-04 4:00 
GeneralRe: Designer - Components - Properties only visible in derived classes Pin
STW23-Aug-04 6:26
STW23-Aug-04 6:26 
QuestionC# Delete and Write specific data in a text file??? Pin
gman4423-Aug-04 1:07
gman4423-Aug-04 1:07 
AnswerRe: C# Delete and Write specific data in a text file??? Pin
leppie23-Aug-04 3:57
leppie23-Aug-04 3:57 
Generalhowto add control dynamicaly Pin
Stephan Wright22-Aug-04 23:56
Stephan Wright22-Aug-04 23:56 
Hy everyone!

I designed a windows Form which contains a control by default.
Now I do want to add another control depending on the data, meaning if the data contains ínfos which have to be displayed in the control then the control should be inserted, the Form size is changed etc. (if the length where the data is stored is not 0)

I managed to check if the data needs the second form and I changed the Forms size, but at the moment I am not sure how to insert the second control dynamicaly. I can't just throw it in like I did with the otherone and let the code being insert automaticaly.

So I do want to do something like

if(data.secondform.length!=0)<br />
{<br />
  resize Form<br />
  insert second control<br />
  display data in the control<br />
}


the other way round shouldn't be the problem meaning removing the control again when I do get data which is not asking for the control.

Could anyone of you please tell me what I do have to do to insert the control in my Forms windows? (maybe with some code statements)

Thanks!
Stephan.
GeneralRe: howto add control dynamicaly Pin
S Sansanwal23-Aug-04 0:20
S Sansanwal23-Aug-04 0:20 
GeneralRe: howto add control dynamicaly Pin
Stephan Wright23-Aug-04 0:39
Stephan Wright23-Aug-04 0:39 
GeneralRe: howto add control dynamicaly Pin
Nick Parker23-Aug-04 4:07
protectorNick Parker23-Aug-04 4:07 
GeneralRe: howto add control dynamicaly Pin
LongRange.Shooter23-Aug-04 7:37
LongRange.Shooter23-Aug-04 7:37 
QuestionHow to control IE6 Pin
pmasknguyen22-Aug-04 22:02
pmasknguyen22-Aug-04 22:02 
AnswerRe: How to control IE6 Pin
David Salter22-Aug-04 22:19
David Salter22-Aug-04 22:19 
GeneralClickety Pin
Colin Angus Mackay22-Aug-04 22:41
Colin Angus Mackay22-Aug-04 22:41 
GeneralRe: Clickety Pin
David Salter22-Aug-04 23:30
David Salter22-Aug-04 23:30 
GeneralBest way to calculate hash Pin
Radoslav Bielik22-Aug-04 21:28
Radoslav Bielik22-Aug-04 21:28 
GeneralRe: Best way to calculate hash Pin
Jonathan de Halleux22-Aug-04 23:19
Jonathan de Halleux22-Aug-04 23:19 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik22-Aug-04 23:37
Radoslav Bielik22-Aug-04 23:37 
GeneralRe: Best way to calculate hash Pin
Jonathan de Halleux22-Aug-04 23:48
Jonathan de Halleux22-Aug-04 23:48 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik23-Aug-04 0:01
Radoslav Bielik23-Aug-04 0:01 
GeneralRe: Best way to calculate hash Pin
Heath Stewart23-Aug-04 6:22
protectorHeath Stewart23-Aug-04 6:22 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik23-Aug-04 8:48
Radoslav Bielik23-Aug-04 8:48 
GeneralRe: Best way to calculate hash Pin
Heath Stewart23-Aug-04 6:30
protectorHeath Stewart23-Aug-04 6:30 
GeneralRe: Best way to calculate hash Pin
Radoslav Bielik23-Aug-04 8:53
Radoslav Bielik23-Aug-04 8:53 

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.