Well....I have a button 'CmdSearch' in a form named 'FrmQuery'. My requirement is that whenever I click on the 'CmdSearch' Button, a new form named 'FrmDisplay' should load and the string "Hello World!" should be written as the caption of the label 'LblTrial', that needs to be dynamically created using code, on 'FrmDisplay'.
Can anybody help me out with the kinda code I'd need to write?
2007-06-08
18:48:57
·
3 answers
·
asked by
Shayonâ?¢
2
in
Computers & Internet
➔ Programming & Design
@ nBrEaD
1stly, I'd specifically asked that the label 'LblTrial', that needs to be displayed on 'FrmDIsplay', needs to be created dynamically i.e. using codes. The caption too needs to be specified dynamically.
2ndly, I think the solution you've given to me pertains to Visual Basic.NET. I need a solution that pertains to Visual Basic 6.0.
Btw, thanks for the effort.
2007-06-08
19:25:37 ·
update #1
@ Mark G and Roby A
Guys, I think there's one thing that everyone of u is missing...
I wish to create the label at runtime. The label is not supposed to be present when I run the program. The label is supposed to be created and displayed only after a button is clicked.
For example, say every time a user clicks a button, a label saying 1, 2, 3, 4,... should keep appearing. How do you think I can achieve that?
2007-06-09
08:00:02 ·
update #2