Click here to Skip to main content
15,924,829 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Copying File Pin
Rajesh Anuhya21-Jul-08 23:06
professionalRajesh Anuhya21-Jul-08 23:06 
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 
Dear all,

I'm using a main module to shared all the Public variable and certain main component that my system is running. I'm using VB.NET using Visual Studio 2003 connect with MySQL 5.0 database. My system is running with Window Form Application which is a small Point Of Sales System used by my sister grocery shops.

Problems that facing by me now is the module doesn't continue running after I used System.Windows.Forms.Application.Run(FrmLogin) inside my main module class. The following are the code used:

<br />
Sub Main()<br />
        TerminalLocate = ConfigurationSettings.AppSettings("Location")<br />
        TerminalID = ConfigurationSettings.AppSettings("Terminal_ID")<br />
<br />
        If TerminalLocate = "" Then<br />
            MessageBox.Show("No Location Detected !")<br />
            Exit Sub<br />
        End If<br />
<br />
        If TerminalID = "" Then<br />
            MessageBox.Show("No Terminal Detected !")<br />
            Exit Sub<br />
        End If<br />
<br />
        Dim FrmLogin As New FrmLogin         'FrmLogin is used for user verification for the system login.<br />
        FrmLogin.Visible = False<br />
        FrmLogin.WindowState = FormWindowState.Normal<br />
        System.Windows.Forms.Application.Run(FrmLogin)<br />
<br />
<br />
   '--------------------Code after this line never run anymore---------------------------------------<br />
        While UserLoginSuccessful = True<br />
<br />
            Dim clsReceipt As New clsDBReceipt<br />
            clsReceipt.FindLastReceipt(TerminalLocate, TerminalID)<br />
            MessageBox.Show("The Receipt number =" & strReceiptNo1 & " ")<br />
        End While<br />
<br />
  End Sub<br />


Anyone can give me some idea how to get back the system to run back to my module and do the continous task inside my module? My next task is to get the last receipt and transaction number from the database.

Thanks for reading and hope someone can help me soon.

Regards
Drex
AnswerRe: About using Module in VB.NET 2003 Pin
Grant Porteous22-Jul-08 15:47
Grant Porteous22-Jul-08 15:47 
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 

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.