Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello
i have created a c# program on winform on desktop and i want to run it to website so i tried copy the code and it cant detect App.DoEvent

What I have tried:

I tried run the code without it and it doesnt run properly
Posted
Updated 27-Feb-22 1:12am
Comments
Richard MacCutchan 27-Feb-22 6:48am    
Windows Forms application cannot be run directly as web sites.

1 solution

You can't call DoEvents in a website - that is only applicable for Windows application, and websites operate totally differently.

Even in a Windows app, calling DoEvents is a bad idea - it shows that you don't know what is going on behind the scenes are haven't grasped how event driven programming works yet.

To even start running a windows app as a website, you would have to learn Javascript and HTML, then rewrite your whole app in a client / server multiuser oriented paradigm.
It's not going to work without a massive input of effort, and what you would end up with would not be a quality website.

Much better to start again from scratch and design a site from the ground up!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900