Click here to Skip to main content
15,892,298 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB printing problem Pin
Dave Kreskowiak2-May-07 6:23
mveDave Kreskowiak2-May-07 6:23 
GeneralRe: VB printing problem Pin
Rich Leyshon2-May-07 7:29
Rich Leyshon2-May-07 7:29 
GeneralRe: VB printing problem Pin
Rich Leyshon2-May-07 7:53
Rich Leyshon2-May-07 7:53 
QuestionOnly one window in the taskbar Pin
Jats_4ru2-May-07 4:38
Jats_4ru2-May-07 4:38 
AnswerRe: Only one window in the taskbar Pin
Psycho-*Coder*-Extreme2-May-07 4:51
Psycho-*Coder*-Extreme2-May-07 4:51 
AnswerRe: Only one window in the taskbar Pin
Dave Kreskowiak2-May-07 4:52
mveDave Kreskowiak2-May-07 4:52 
AnswerRe: Only one window in the taskbar Pin
Rupesh Kumar Swami2-May-07 5:02
Rupesh Kumar Swami2-May-07 5:02 
QuestionHow to close an application completely Pin
nahitan2-May-07 3:58
nahitan2-May-07 3: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 4:03
mveDave Kreskowiak2-May-07 4:03 
GeneralRe: How to close an application completely Pin
nahitan2-May-07 4:07
nahitan2-May-07 4:07 
GeneralRe: How to close an application completely Pin
Dave Kreskowiak2-May-07 4:47
mveDave Kreskowiak2-May-07 4:47 
QuestionNeed Help with Outlook [modified] Pin
Jats_4ru2-May-07 3:08
Jats_4ru2-May-07 3:08 
AnswerRe: Need Help with Outlook Pin
RichardBerry2-May-07 3:40
RichardBerry2-May-07 3:40 
GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 4:23
Jats_4ru2-May-07 4:23 
GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 4:31
Jats_4ru2-May-07 4:31 
AnswerRe: Need Help with Outlook Pin
Rupesh Kumar Swami2-May-07 4:10
Rupesh Kumar Swami2-May-07 4:10 
GeneralRe: Need Help with Outlook Pin
Jats_4ru2-May-07 4:32
Jats_4ru2-May-07 4:32 
QuestionHow to keep the sessions using web request Pin
vurugonda2-May-07 3:00
vurugonda2-May-07 3:00 
QuestionHow do you overwrite bytes in a certain position in a file Pin
RichardBerry2-May-07 2:42
RichardBerry2-May-07 2:42 
AnswerRe: How do you overwrite bytes in a certain position in a file Pin
Dave Kreskowiak2-May-07 3:45
mveDave Kreskowiak2-May-07 3:45 
AnswerRe: How do you overwrite bytes in a certain position in a file Pin
ChandraRam2-May-07 4:27
ChandraRam2-May-07 4:27 
GeneralRe: How do you overwrite bytes in a certain position in a file Pin
RichardBerry2-May-07 4:51
RichardBerry2-May-07 4:51 
GeneralRe: How do you overwrite bytes in a certain position in a file Pin
ChandraRam2-May-07 7:37
ChandraRam2-May-07 7:37 
QuestionHow to call a function from c++ dll in VB Pin
sandeepkavade2-May-07 2:41
sandeepkavade2-May-07 2:41 
AnswerRe: How to call a function from c++ dll in VB Pin
Dave Kreskowiak2-May-07 3:41
mveDave Kreskowiak2-May-07 3: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.