Click here to Skip to main content
15,888,113 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralImage Class in vb.net 2005 Pin
VB 8.018-Dec-07 1:24
VB 8.018-Dec-07 1:24 
GeneralRe: Image Class in vb.net 2005 Pin
C1AllenS18-Dec-07 3:57
C1AllenS18-Dec-07 3:57 
GeneralRe: Image Class in vb.net 2005 Pin
VB 8.018-Dec-07 18:10
VB 8.018-Dec-07 18:10 
Generalbutton.preformclick Pin
break_day18-Dec-07 0:50
break_day18-Dec-07 0:50 
GeneralRe: button.preformclick Pin
CPallini18-Dec-07 1:07
mveCPallini18-Dec-07 1:07 
GeneralRe: button.preformclick Pin
Luc Pattyn18-Dec-07 3:50
sitebuilderLuc Pattyn18-Dec-07 3:50 
GeneralRe: button.preformclick Pin
Johan Hakkesteegt19-Dec-07 8:29
Johan Hakkesteegt19-Dec-07 8:29 
GeneralProblems with Forms in vb.net Pin
Vimalsoft(Pty) Ltd17-Dec-07 21:48
professionalVimalsoft(Pty) Ltd17-Dec-07 21:48 
Good morning all

i have a strange situation here,am using a thread to hide my splash screen and after the Splash screen i Display my login screen, and after the i validate the credentials against the database, i need to Close the login Box and show the Main Form(MDI),ok that works fine, but the Login box et stucked at my screen. here is the code where it supposed to close

Private Sub btnok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnok.Click
     Dim frmmain As New frmmain
     Dim frmlogin As New frmLogin
     Dim strusername = CStr(txtusername.Text.Trim)
     Dim strPassword = CStr(txtpassword.Text.Trim)
     Dim obj As New Admin_BLL.Clients
     Dim bl As Boolean
     Try
         bl = obj.loginBLL(strusername, strPassword)
         If bl = True Then
             frmlogin.Close()
             frmmain.Show()

         Else
             bl = False

         End If
     Catch ex As Exception
         MessageBox.Show(ex.Message)
     End Try
 End Sub
.

Please tell me whats wrong with code.
Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


GeneralRe: Problems with Forms in vb.net Pin
Christian Graus17-Dec-07 22:10
protectorChristian Graus17-Dec-07 22:10 
GeneralRe: Problems with Forms in vb.net Pin
Vimalsoft(Pty) Ltd17-Dec-07 22:35
professionalVimalsoft(Pty) Ltd17-Dec-07 22:35 
GeneralRe: Problems with Forms in vb.net Pin
Luc Pattyn18-Dec-07 0:44
sitebuilderLuc Pattyn18-Dec-07 0:44 
GeneralRe: Problems with Forms in vb.net Pin
Vimalsoft(Pty) Ltd18-Dec-07 0:46
professionalVimalsoft(Pty) Ltd18-Dec-07 0:46 
GeneralBack and forward buttons Pin
tellytub17-Dec-07 20:23
tellytub17-Dec-07 20:23 
GeneralRe: Back and forward buttons Pin
Christian Graus17-Dec-07 22:11
protectorChristian Graus17-Dec-07 22:11 
GeneralRe: Back and forward buttons Pin
tellytub18-Dec-07 3:46
tellytub18-Dec-07 3:46 
General[Message Deleted] Pin
dspandian17-Dec-07 19:42
dspandian17-Dec-07 19:42 
GeneralRe: please give code for generate report Pin
Vimalsoft(Pty) Ltd17-Dec-07 20:32
professionalVimalsoft(Pty) Ltd17-Dec-07 20:32 
GeneralRe: please give code for generate report Pin
CKnig17-Dec-07 20:33
CKnig17-Dec-07 20:33 
GeneralCompile Error (Visual Basic 6) Someone help!!! Pin
anthoy17-Dec-07 18:06
anthoy17-Dec-07 18:06 
GeneralRe: Compile Error (Visual Basic 6) Someone help!!! Pin
Vimalsoft(Pty) Ltd17-Dec-07 20:28
professionalVimalsoft(Pty) Ltd17-Dec-07 20:28 
GeneralRe: Compile Error (Visual Basic 6) Someone help!!! Pin
anthoy17-Dec-07 20:47
anthoy17-Dec-07 20:47 
GeneralRe: Compile Error (Visual Basic 6) Someone help!!! Pin
CPallini18-Dec-07 0:11
mveCPallini18-Dec-07 0:11 
Questionhow to display database data in datagridview Pin
dspandian17-Dec-07 17:39
dspandian17-Dec-07 17:39 
AnswerRe: how to display database data in datagridview Pin
Vimalsoft(Pty) Ltd17-Dec-07 20:38
professionalVimalsoft(Pty) Ltd17-Dec-07 20:38 
QuestionHow can i add system colors with corresponding colorname in combo box using Vb.net Pin
Deepthy.P.M17-Dec-07 17:28
Deepthy.P.M17-Dec-07 17:28 

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.