TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anouar Boujemaa
NA
4
3.4k
Exit application
Nov 12 2012 4:58 AM
Hi all,
I have a winform project, and I would like to call the application, and have it exit when the code has executed. Somehow Application.Exit does not work for me. Here is my code
public void Print()
{
object empty = null;
axW.Navigate("http://localhost:2124/Studiebogservice/_Ankomst/LabelPrint.aspx?id=" + "20201", ref empty, ref empty, ref empty, ref empty);
for (; axW.ReadyState != SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE; )
{
System.Windows.Forms.Application.DoEvents();
}
axW.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, ref empty, ref empty);
Application.Exit();
}
Reply
Answers (
1
)
Notify Icon Not Working In Window Service
The Output Window has disappeared in MS Visual Studio 2010 Express -- help!!!