Click here to Skip to main content
15,891,914 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: calling exe Pin
LloydA11121-Jun-08 15:24
LloydA11121-Jun-08 15:24 
QuestionVB 6.0 & CR9 "Load Report Failed" error 50003 Pin
zomby80200319-Jun-08 19:52
zomby80200319-Jun-08 19:52 
QuestionVB 6.0 & CR9 "Load Report Failed" error 50003 Pin
zomby80200319-Jun-08 19:51
zomby80200319-Jun-08 19:51 
Questionvb6 string truncated Pin
AJ du Plessis19-Jun-08 19:18
AJ du Plessis19-Jun-08 19:18 
AnswerRe: vb6 string truncated Pin
Christian Graus19-Jun-08 20:10
protectorChristian Graus19-Jun-08 20:10 
GeneralRe: vb6 string truncated Pin
AJ du Plessis19-Jun-08 20:25
AJ du Plessis19-Jun-08 20:25 
QuestionPassing value within form and function VB.NET 2003 Pin
drexler_kk19-Jun-08 16:14
drexler_kk19-Jun-08 16:14 
AnswerRe: Passing value within form and function VB.NET 2003 Pin
Christian Graus19-Jun-08 18:41
protectorChristian Graus19-Jun-08 18:41 
drexler_kk wrote:
Public Function FurtherUser_Authenticate() As Boolean
Dim FrmAuthen As New FrmAuthen
FrmAuthen.StartPosition = FormStartPosition.CenterScreen
FrmAuthen.Show()End Function


Well, this is obviously a disaster. Notice how your code doesn't return anything at all ? It's a travesty that this compiles.

Also, when you call Show(), you get a modeless form. Your app has essentially shown a login form, but lost control of it at this point. It should use ShowDialog, then check the form to find out if login succeeded, and return a bool to indicate the result.


drexler_kk wrote:
ObjComm = New OdbcCommand("SELECT POS_CASHIER.LocationCode, CashierID, CashierName,.....


First of all, read up on SQL injection. This code means I can erase your database, any time I like. Second, why is it all on one line ? I guess having a variable called TextBox1 is the point at which your code stands no chance of being readable, but still.....

Christian Graus

Please read this if you don't understand the answer I've given you

"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 )

QuestionRe: Passing value within form and function VB.NET 2003 Pin
drexler_kk19-Jun-08 19:31
drexler_kk19-Jun-08 19:31 
Questionhow can i print my form axacly like itself Pin
Nika Asgari19-Jun-08 11:47
Nika Asgari19-Jun-08 11:47 
AnswerRe: how can i print my form axacly like itself Pin
Christian Graus19-Jun-08 12:13
protectorChristian Graus19-Jun-08 12:13 
GeneralRe: how can i print my form axacly like itself Pin
Nika Asgari19-Jun-08 12:18
Nika Asgari19-Jun-08 12:18 
GeneralRe: how can i print my form axacly like itself Pin
Christian Graus19-Jun-08 18:44
protectorChristian Graus19-Jun-08 18:44 
GeneralRe: how can i print my form axacly like itself Pin
Nika Asgari19-Jun-08 22:04
Nika Asgari19-Jun-08 22:04 
AnswerRe: how can i print my form axacly like itself Pin
jzonthemtn19-Jun-08 12:36
jzonthemtn19-Jun-08 12:36 
GeneralRe: how can i print my form axacly like itself Pin
Nika Asgari19-Jun-08 22:08
Nika Asgari19-Jun-08 22:08 
QuestionTrimEnd(..) Pin
iltallman19-Jun-08 11:28
iltallman19-Jun-08 11:28 
AnswerRe: TrimEnd(..) Pin
Christian Graus19-Jun-08 12:14
protectorChristian Graus19-Jun-08 12:14 
Question? - Can I use multiple PPT Interop references Pin
normschaef19-Jun-08 6:52
normschaef19-Jun-08 6:52 
QuestionVBA: From Excel to Outlook Pin
Bienchen19-Jun-08 6:23
Bienchen19-Jun-08 6:23 
QuestionForm Load and Re-load - Slow Pin
Andy20219-Jun-08 6:01
Andy20219-Jun-08 6:01 
AnswerRe: Form Load and Re-load - Slow Pin
nlarson1119-Jun-08 10:37
nlarson1119-Jun-08 10:37 
Questionaccessing database from window service Pin
Ebube19-Jun-08 5:59
Ebube19-Jun-08 5:59 
AnswerRe: accessing database from window service Pin
Ashfield19-Jun-08 6:22
Ashfield19-Jun-08 6:22 
GeneralRe: accessing database from window service Pin
Ebube20-Jun-08 22:26
Ebube20-Jun-08 22:26 

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.