Click here to Skip to main content
15,918,742 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Copying File Pin
Steven J Jowett21-Jul-08 23:08
Steven J Jowett21-Jul-08 23:08 
GeneralRe: Copying File Pin
Tom Deketelaere22-Jul-08 2:56
professionalTom Deketelaere22-Jul-08 2:56 
GeneralRe: Copying File Pin
Tom Deketelaere22-Jul-08 2:58
professionalTom Deketelaere22-Jul-08 2:58 
GeneralRe: Copying File Pin
Steven J Jowett22-Jul-08 3:27
Steven J Jowett22-Jul-08 3:27 
GeneralRe: Copying File Pin
Tom Deketelaere22-Jul-08 3:35
professionalTom Deketelaere22-Jul-08 3:35 
GeneralRe: Copying File Pin
Subjugate22-Jul-08 5:32
Subjugate22-Jul-08 5:32 
QuestionAbout using Module in VB.NET 2003 Pin
drexler_kk21-Jul-08 17:15
drexler_kk21-Jul-08 17:15 
AnswerRe: About using Module in VB.NET 2003 Pin
Grant Porteous22-Jul-08 15:47
Grant Porteous22-Jul-08 15:47 
Hi Drex,

I believe your problem lies in creating another process to run your login form.

I believe you can call your login form by calling the "ShowDialog" method. Here is a way to do it:

Dim frm As FrmLogin

Dim dlgResult As DialogResult

frm = New FrmLogin

dlgResult = frm.ShowDialog

If dlgResult = Windows.Forms.DialogResult.OK Then

    '---- do your receipt check here

End If


You would need to implement logic in the login form to return "Windows.Forms.DialogResult.OK" ONLY if the user logged in correctly.

Also, I strongly recommend that you not do the "While" loop to check for your receipts. VB is perfect for using event - that is, do not loop infinitely - respond to events that happen in your application.

Calling the login form how I have above will help get you there. You could even raise an event when the user has successfully logged in, and then do your receipt check.

Hope that helps.

Regards,
Grant

__________________
Grant Porteous
Your Software Licensing Guide
http://www..SerialKeyMaker.com
QuestionRe: About using Module in VB.NET 2003 Pin
drexler_kk27-Jul-08 17:32
drexler_kk27-Jul-08 17:32 
AnswerRe: About using Module in VB.NET 2003 Pin
Mycroft Holmes22-Jul-08 16:35
professionalMycroft Holmes22-Jul-08 16:35 
QuestionRe: About using Module in VB.NET 2003 [modified] Pin
drexler_kk27-Jul-08 17:45
drexler_kk27-Jul-08 17:45 
QuestionBindingNavigator out of sync with filtered data Pin
Marco Beets21-Jul-08 12:32
Marco Beets21-Jul-08 12:32 
AnswerRe: BindingNavigator out of sync with filtered data Pin
Marco Beets22-Jul-08 7:56
Marco Beets22-Jul-08 7:56 
QuestionVB6 and .NET Components Pin
Tim Carmichael21-Jul-08 10:05
Tim Carmichael21-Jul-08 10:05 
AnswerRe: VB6 and .NET Components Pin
Mycroft Holmes21-Jul-08 14:32
professionalMycroft Holmes21-Jul-08 14:32 
QuestionMSMAPI32.DLL Pin
anirudhnamdeo21-Jul-08 8:46
anirudhnamdeo21-Jul-08 8:46 
AnswerRe: MSMAPI32.DLL Pin
Steven J Jowett21-Jul-08 23:14
Steven J Jowett21-Jul-08 23:14 
GeneralRe: MSMAPI32.DLL Pin
anirudhnamdeo22-Jul-08 3:45
anirudhnamdeo22-Jul-08 3:45 
QuestionReferencing, opening, and using Microsoft Word from a Windows Forms Application Pin
Steven St. John21-Jul-08 6:22
Steven St. John21-Jul-08 6:22 
AnswerRe: Referencing, opening, and using Microsoft Word from a Windows Forms Application Pin
jzonthemtn21-Jul-08 7:44
jzonthemtn21-Jul-08 7:44 
GeneralRe: Referencing, opening, and using Microsoft Word from a Windows Forms Application Pin
Steven St. John21-Jul-08 8:01
Steven St. John21-Jul-08 8:01 
GeneralRe: Referencing, opening, and using Microsoft Word from a Windows Forms Application [modified] Pin
jzonthemtn21-Jul-08 8:20
jzonthemtn21-Jul-08 8:20 
AnswerRe: Referencing, opening, and using Microsoft Word from a Windows Forms Application Pin
Paul Conrad21-Jul-08 8:46
professionalPaul Conrad21-Jul-08 8:46 
AnswerRe: Referencing, opening, and using Microsoft Word from a Windows Forms Application Pin
Steven St. John21-Jul-08 9:24
Steven St. John21-Jul-08 9:24 
Questionhow to Add new task in windows task schedular Pin
~Khatri Mitesh~21-Jul-08 6:14
~Khatri Mitesh~21-Jul-08 6:14 

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.