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

Visual Basic

 
GeneralRe: Network Camera Pin
Brad Fackrell22-Mar-07 7:11
Brad Fackrell22-Mar-07 7:11 
GeneralRe: Network Camera Pin
Brad Fackrell22-Mar-07 7:23
Brad Fackrell22-Mar-07 7:23 
GeneralRe: Network Camera Pin
Dave Kreskowiak22-Mar-07 7:43
mveDave Kreskowiak22-Mar-07 7:43 
QuestionGet DriveLetter [modified] Pin
ayeleteric22-Mar-07 5:19
ayeleteric22-Mar-07 5:19 
AnswerRe: Get DriveLetter Pin
Christian Graus22-Mar-07 5:33
protectorChristian Graus22-Mar-07 5:33 
GeneralRe: Get DriveLetter Pin
ayeleteric22-Mar-07 5:35
ayeleteric22-Mar-07 5:35 
GeneralRe: Get DriveLetter Pin
Dave Kreskowiak22-Mar-07 6:40
mveDave Kreskowiak22-Mar-07 6:40 
GeneralRe: Get DriveLetter Pin
ayeleteric24-Mar-07 20:07
ayeleteric24-Mar-07 20:07 
Hello,

Sorry but I don't know at least what will be the drive letter. I need to know it at run time.

I am new in VB.NET environment, my problem may be a configuration problem:
I create a new project (VS2005) as following, please do as I am doing:

1. File->New Project->RunFromCD(is the window application name).
2. Drag a new button (button1)
3.Here is the code
Imports System.IO
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox(GetApplicationStartupPath())
End Sub

Public Shared Function GetApplicationStartupPath() As String
Dim realPath As String = Application.StartupPath
Return Path.GetPathRoot(realPath).ToString()
End Function
End Class

4. Build-> Publish RunFromCD->Next->From a CD-ROM or a DVD-ROM->Finish
5. Now I get a Published folder as following
- RunFromCD_1_0_0_1 (folder)
- RunFromCD.application
- RunFromCD_1_0_0_1.application
- setup.exe
6. I am copying all the published folder to drive D:\ and running the setup.exe, after clicking on the button1, I get from message box:
"C:\" but I expect "D:\"

Thanks you a lot for your help Smile | :)

Eric H.

QuestionTrying to utilize the auto databind features of VB.NET with no update luck... [modified] Pin
Marcus J. Smith22-Mar-07 2:25
professionalMarcus J. Smith22-Mar-07 2:25 
AnswerRe: Trying to utilize the auto databind features of VB.NET with no update luck... Pin
Christian Graus22-Mar-07 4:54
protectorChristian Graus22-Mar-07 4:54 
GeneralRe: Trying to utilize the auto databind features of VB.NET with no update luck... Pin
Marcus J. Smith22-Mar-07 5:02
professionalMarcus J. Smith22-Mar-07 5:02 
GeneralRe: Trying to utilize the auto databind features of VB.NET with no update luck... Pin
Christian Graus22-Mar-07 5:09
protectorChristian Graus22-Mar-07 5:09 
GeneralOT - Found you on another forum while searching about my problem Pin
Marcus J. Smith22-Mar-07 5:10
professionalMarcus J. Smith22-Mar-07 5:10 
GeneralRe: OT - Found you on another forum while searching about my problem Pin
Christian Graus22-Mar-07 5:25
protectorChristian Graus22-Mar-07 5:25 
QuestionHow should I set the paths for specific files? Pin
JUNEYT22-Mar-07 1:25
JUNEYT22-Mar-07 1:25 
AnswerRe: How should I set the paths for specific files? Pin
Dave Kreskowiak22-Mar-07 5:45
mveDave Kreskowiak22-Mar-07 5:45 
QuestionAnimation during SQL Pin
ayeleteric22-Mar-07 0:20
ayeleteric22-Mar-07 0:20 
AnswerRe: Animation during SQL Pin
Christian Graus22-Mar-07 4:55
protectorChristian Graus22-Mar-07 4:55 
QuestionDatagrid control Enter key Key Press Pin
somagunasekaran21-Mar-07 23:33
somagunasekaran21-Mar-07 23:33 
Questionhow to get the computer names in my workgroup and all workgroups connected to my computer Pin
ahmad_yossef21-Mar-07 23:01
ahmad_yossef21-Mar-07 23:01 
QuestionI can't see the Console window Pin
ahmad_yossef21-Mar-07 22:38
ahmad_yossef21-Mar-07 22:38 
AnswerRe: I can't see the Console window Pin
Christian Graus22-Mar-07 4:55
protectorChristian Graus22-Mar-07 4:55 
AnswerRe: I can't see the Console window Pin
Vasudevan Deepak Kumar22-Mar-07 19:05
Vasudevan Deepak Kumar22-Mar-07 19:05 
Questionhow to run the function 10 second later ? [modified] Pin
cheeken2u21-Mar-07 21:11
cheeken2u21-Mar-07 21:11 
AnswerRe: how to run the function 10 second later ? Pin
Tirthadip21-Mar-07 22:20
Tirthadip21-Mar-07 22:20 

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.