Create a dynamic button in window application

  • Thread starter Thread starter wongz
  • Start date Start date
W

wongz

Hi,
i m trying to create a dynamic buttons based on the user right. I
manage to code this whole stuff in web application. Unfortunately i m
trying to write this code in window application it cant work. The
main reason is that they do not have preRender event in window
application. I m very new in window application and i hope some1 can
tell me about it.

Thanks
 
Hi,

You still have the constructor, as well as the Load event.
You can create controls dynamically in the constructor after the
InitializeComponent method was called.

wongz said:
Hi,
i m trying to create a dynamic buttons based on the user right. I
manage to code this whole stuff in web application. Unfortunately i m
trying to write this code in window application it cant work. The
main reason is that they do not have preRender event in window
application. I m very new in window application and i hope some1 can
tell me about it.

Thanks



----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top