Click here to Skip to main content
15,921,837 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: I need VB.NET chat project Pin
CKnig16-Dec-07 18:15
CKnig16-Dec-07 18:15 
GeneralRe: I need VB.NET chat project Pin
Horanis17-Dec-07 7:56
Horanis17-Dec-07 7:56 
Questionhow to manipulate a simple program from my VB Pin
Ronny Ron11-Dec-07 6:36
Ronny Ron11-Dec-07 6:36 
GeneralRe: how to manipulate a simple program from my VB Pin
Christian Graus11-Dec-07 14:17
protectorChristian Graus11-Dec-07 14:17 
QuestionAutomating MS Outlook with VB.NET to do a find and replace on message body text Pin
craigmg7811-Dec-07 4:30
craigmg7811-Dec-07 4:30 
GeneralRe: Automating MS Outlook with VB.NET to do a find and replace on message body text Pin
craigmg7811-Dec-07 11:35
craigmg7811-Dec-07 11:35 
Questionhow do i access a property in a class on a form Pin
imonfiredammit11-Dec-07 4:10
imonfiredammit11-Dec-07 4:10 
AnswerRe: how do i access a property in a class on a form Pin
Dave Kreskowiak11-Dec-07 4:19
mveDave Kreskowiak11-Dec-07 4:19 
You pass the instance of your Login class to this method so it can use the information inside it to create the connection string.

Also, change the m_User and m_Password fields to Private, not Public. You're aslready exposing the fields as public Properties so you don't need to expose them twice.
Imports Database_Class
Imports System.Data.oracleClient
Public Class Connection
    Public Shared Function GetConnection(ByVal credentials As Login) As OracleConnection
        Dim connectionString As String = _
                String.Format("Data Source = PIDBDEV; User ID={0};Password = {1};Unicode = True;", _
                        credentials.UserName, credentials.Password)
    Return New OracleConnection(connectionString) Return New OracleConnection(connectionString)
End Function




A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007



GeneralRe: how do i access a property in a class on a form Pin
imonfiredammit11-Dec-07 4:37
imonfiredammit11-Dec-07 4:37 
GeneralRe: how do i access a property in a class on a form Pin
Dave Kreskowiak11-Dec-07 5:31
mveDave Kreskowiak11-Dec-07 5:31 
GeneralTreeview Icons problem Pin
Mbire11-Dec-07 1:12
Mbire11-Dec-07 1:12 
General.NET DLL in a VB6.0 Application Pin
andyORS10-Dec-07 23:58
andyORS10-Dec-07 23:58 
GeneralRe: .NET DLL in a VB6.0 Application Pin
coolestCoder11-Dec-07 0:15
coolestCoder11-Dec-07 0:15 
GeneralRe: .NET DLL in a VB6.0 Application [modified] Pin
andyORS11-Dec-07 0:48
andyORS11-Dec-07 0:48 
GeneralRe: .NET DLL in a VB6.0 Application Pin
coolestCoder11-Dec-07 3:09
coolestCoder11-Dec-07 3:09 
GeneralRe: .NET DLL in a VB6.0 Application Pin
Dave Kreskowiak11-Dec-07 4:13
mveDave Kreskowiak11-Dec-07 4:13 
GeneralFinding monthend date Pin
Mark0610-Dec-07 23:45
Mark0610-Dec-07 23:45 
GeneralRe: Finding monthend date Pin
Christian Graus10-Dec-07 23:54
protectorChristian Graus10-Dec-07 23:54 
Questiontry to using datagridview without dataset Pin
eyes200710-Dec-07 23:42
eyes200710-Dec-07 23:42 
GeneralRe: try to using datagridview without dataset Pin
John_Adams11-Dec-07 2:07
John_Adams11-Dec-07 2:07 
GeneralRe: try to using datagridview without dataset Pin
Dave Kreskowiak11-Dec-07 3:07
mveDave Kreskowiak11-Dec-07 3:07 
Questionexporting data Pin
stavros10-Dec-07 23:13
stavros10-Dec-07 23:13 
GeneralRe: exporting data Pin
CKnig10-Dec-07 23:23
CKnig10-Dec-07 23:23 
GeneralRe: exporting data Pin
stavros13-Dec-07 7:02
stavros13-Dec-07 7:02 
GeneralRe: exporting data Pin
Christian Graus10-Dec-07 23:49
protectorChristian Graus10-Dec-07 23:49 

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.