loading controls on a frame
-
I have a frame on a form (actually the frame is on a tab of a tab control). On the frame is a control (command button) At run time I want to load more controls, but I want them to appear on the frame, they end up on the form (behind the frame) even bring to front does not work, any ideas? Loading and such works fine, they just show up behind everything on the form. No-e
-
I have a frame on a form (actually the frame is on a tab of a tab control). On the frame is a control (command button) At run time I want to load more controls, but I want them to appear on the frame, they end up on the form (behind the frame) even bring to front does not work, any ideas? Loading and such works fine, they just show up behind everything on the form. No-e
What control collection are you adding them to? The form or the frame (groupbox)? Wait, I'm not supposed to respond to your questions anymore since I'm overly harsh with you.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
-
What control collection are you adding them to? The form or the frame (groupbox)? Wait, I'm not supposed to respond to your questions anymore since I'm overly harsh with you.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
Jon_Boy wrote:
I'm not supposed to respond to your questions anymore since I'm overly harsh with you.
Indeed. </sarcasm>
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
-
Jon_Boy wrote:
I'm not supposed to respond to your questions anymore since I'm overly harsh with you.
Indeed. </sarcasm>
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
-
Personally I don't think anyone was harsh on you, I reviewed your past help and found that jon_boy wasn't harsh to you at all and your reply was unwarranted to him, so I merely am showing him some support here. You might want to review your attitude, if someone doesn't post you the exact answer you where looking for doesn't mean they didn't contribute their time and knowledge in an attempt to help you. Sometimes the best advice is a shift in design pattern or implementation, not just figuring out how you want to do the way you want to do it. Hope this helps you in your future posts here.
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
-
Personally I don't think anyone was harsh on you, I reviewed your past help and found that jon_boy wasn't harsh to you at all and your reply was unwarranted to him, so I merely am showing him some support here. You might want to review your attitude, if someone doesn't post you the exact answer you where looking for doesn't mean they didn't contribute their time and knowledge in an attempt to help you. Sometimes the best advice is a shift in design pattern or implementation, not just figuring out how you want to do the way you want to do it. Hope this helps you in your future posts here.
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
-
Post the code that you're using to add controls the groupbox. Ensure that you're adding the controls to the control vs. adding them to the form.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
Jon_boy, Your initial response was enough to get me where I needed to be, I did not realize I had to add them to the control vs. the form. .net is starting to grow on me at this point, you can do some neat things, and it makes sense the way most of them work.... once I get my head out of vb6 mode that is ;) Regarding previous posts I was bothered by the comment I was posting the same question, It was not the same question. If an apology is on order, I apologize. Either way, thanks for your help. No-e
-
I have a frame on a form (actually the frame is on a tab of a tab control). On the frame is a control (command button) At run time I want to load more controls, but I want them to appear on the frame, they end up on the form (behind the frame) even bring to front does not work, any ideas? Loading and such works fine, they just show up behind everything on the form. No-e
if ya have vb 2008 then do this yourcontrol.setbounds(the values must be of inside the frame) frame1.controls.add(yourControl) yourcontrol.show hope this helps cheers
TheMrProgrammer
-
I have a frame on a form (actually the frame is on a tab of a tab control). On the frame is a control (command button) At run time I want to load more controls, but I want them to appear on the frame, they end up on the form (behind the frame) even bring to front does not work, any ideas? Loading and such works fine, they just show up behind everything on the form. No-e
Try adding the control to the frame if yor frame is frame1 then write: dim tmpctl as new windows.forms.button frame1.controls. add(tmpctl) tmpctl.visable=true bah10z