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

Visual Basic

 
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 
GeneralRe: Problems with Forms in vb.net Pin
Christian Graus17-Dec-07 22:10
protectorChristian Graus17-Dec-07 22:10 
Vuyiswa wrote:
CStr(txtusername.Text.Trim)


This is a waste of time, txtusername.text.trim is already a string


Vuyiswa wrote:
Dim frmmain As New frmmain


This is your new 'main' form


Vuyiswa wrote:
Dim frmlogin As New frmLogin


and this is a new 'login' form

Vuyiswa wrote:
frmlogin.Close() frmmain.Show()


I'm not sure why showing a main form modelessly, which then immediately goes out of scope, works. But, creating a new login form and then closing it, will do nothing for the other login instance that is already visible elsewhere.

The use of CStr makes me think you've used VB6. You should avoid VB6 constructs, they are nasty, and you should buy a book on OO to help you learn your way past these sort of issues.
Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

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 
QuestionHow to Add Text in textbox into datagrid? Pin
Eunice (VB junior)17-Dec-07 16:48
Eunice (VB junior)17-Dec-07 16:48 

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.