Click here to Skip to main content
14,774,712 members
Home » Discussions » Visual Basic
   

Visual Basic

 
AnswerRe: VB printing problem Pin
Dave Kreskowiak2-May-07 7:23
mveDave Kreskowiak2-May-07 7:23 
GeneralRe: VB printing problem Pin
Rich Leyshon2-May-07 8:29
MemberRich Leyshon2-May-07 8:29 
GeneralRe: VB printing problem Pin
Rich Leyshon2-May-07 8:53
MemberRich Leyshon2-May-07 8:53 
QuestionOnly one window in the taskbar Pin
Jats_4ru2-May-07 5:38
MemberJats_4ru2-May-07 5:38 
AnswerRe: Only one window in the taskbar Pin
Psycho-*Coder*-Extreme2-May-07 5:51
MemberPsycho-*Coder*-Extreme2-May-07 5:51 
AnswerRe: Only one window in the taskbar Pin
Dave Kreskowiak2-May-07 5:52
mveDave Kreskowiak2-May-07 5:52 
AnswerRe: Only one window in the taskbar Pin
Rupesh Kumar Swami2-May-07 6:02
MemberRupesh Kumar Swami2-May-07 6:02 
QuestionHow to close an application completely Pin
nahitan2-May-07 4:58
Membernahitan2-May-07 4:58 
Hi there,
I have a VB MFC that uses a dll for sending, receiving, dispalying and logging data from/to another application the problem is that SOMETIMES when I close the VB window by clicking on X the application goes off ( you do not see it on desktop) but when you open the task manager, you can see that the application is still there. The problem is that it happens just sometimes. Any ideas?

It is the way I close the appliaction:

Private Sub MDIForm_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If MsgBox("Are you sure you want to Exit the application?", vbYesNo + vbQuestion, "Application") = vbNo Then
Cancel = True
End If
End Sub

Private Sub MDIForm_Terminate()
fnWEHostShtdn
End Sub

Private Sub MDIForm_Unload(Cancel As Integer)
If Me.WindowState <> vbMinimized Then
SaveSetting App.Title, "Settings", "MainLeft", Me.Left
SaveSetting App.Title, "Settings", "MainTop", Me.Top
SaveSetting App.Title, "Settings", "MainWidth", Me.Width
SaveSetting App.Title, "Settings", "MainHeight", Me.Height
End If
End Sub

The other question is that how I can check if an application is running and if for any reason (even a hard close by user) the application is closed, it reopens itself.

Thanks in advanced.

Nahitan
AnswerRe: How to close an application completely Pin
Dave Kreskowiak2-May-07 5:03
mveDave Kreskowiak2-May-07 5:03 
GeneralRe: How to close an application completely Pin
nahitan2-May-07 5:07
Membernahitan2-May-07 5:07 
GeneralRe: How to close an application completely Pin
Dave Kreskowiak2-May-07 5:47
mveDave Kreskowiak2-May-07 5:47 
QuestionNeed Help with Outlook [modified] Pin
Jats_4ru2-May-07 4:08
MemberJats_4ru2-May-07 4:08 
AnswerRe: Need Help with Outlook Pin
RichardBerry2-May-07 4:40
MemberRichardBerry2-May-07 4:40 
GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 5:23
MemberJats_4ru2-May-07 5:23 
GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 5:31
MemberJats_4ru2-May-07 5:31 
AnswerRe: Need Help with Outlook Pin
Rupesh Kumar Swami2-May-07 5:10
MemberRupesh Kumar Swami2-May-07 5:10 
GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 5:32
MemberJats_4ru2-May-07 5:32 
QuestionHow to keep the sessions using web request Pin
vurugonda2-May-07 4:00
Membervurugonda2-May-07 4:00 
QuestionHow do you overwrite bytes in a certain position in a file Pin
RichardBerry2-May-07 3:42
MemberRichardBerry2-May-07 3:42 
AnswerRe: How do you overwrite bytes in a certain position in a file Pin
Dave Kreskowiak2-May-07 4:45
mveDave Kreskowiak2-May-07 4:45 
AnswerRe: How do you overwrite bytes in a certain position in a file Pin
ChandraRam2-May-07 5:27
MemberChandraRam2-May-07 5:27 
GeneralRe: How do you overwrite bytes in a certain position in a file Pin
RichardBerry2-May-07 5:51
MemberRichardBerry2-May-07 5:51 
GeneralRe: How do you overwrite bytes in a certain position in a file Pin
ChandraRam2-May-07 8:37
MemberChandraRam2-May-07 8:37 
QuestionHow to call a function from c++ dll in VB Pin
sandeepkavade2-May-07 3:41
Membersandeepkavade2-May-07 3:41 
AnswerRe: How to call a function from c++ dll in VB Pin
Dave Kreskowiak2-May-07 4:41
mveDave Kreskowiak2-May-07 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.