Click here to Skip to main content
15,920,030 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: PLz help me lover Pin
Christian Graus2-May-07 14:04
protectorChristian Graus2-May-07 14:04 
Questionbarcode development Pin
dleo102-May-07 9:21
dleo102-May-07 9:21 
AnswerRe: barcode development Pin
MatrixCoder2-May-07 9:37
MatrixCoder2-May-07 9:37 
QuestionBest Way to handle foreign characters from XML to disk file Pin
QuickBooksDev2-May-07 8:50
QuickBooksDev2-May-07 8:50 
AnswerRe: Best Way to handle foreign characters from XML to disk file Pin
kubben2-May-07 9:03
kubben2-May-07 9:03 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
QuickBooksDev2-May-07 9:36
QuickBooksDev2-May-07 9:36 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
kubben2-May-07 9:52
kubben2-May-07 9:52 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
QuickBooksDev2-May-07 11:13
QuickBooksDev2-May-07 11:13 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
kubben2-May-07 12:40
kubben2-May-07 12:40 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
QuickBooksDev2-May-07 14:58
QuickBooksDev2-May-07 14:58 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
kubben2-May-07 16:19
kubben2-May-07 16:19 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
QuickBooksDev3-May-07 2:31
QuickBooksDev3-May-07 2:31 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
kubben3-May-07 2:36
kubben3-May-07 2:36 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
QuickBooksDev3-May-07 2:46
QuickBooksDev3-May-07 2:46 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
kubben3-May-07 2:50
kubben3-May-07 2:50 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
QuickBooksDev3-May-07 2:59
QuickBooksDev3-May-07 2:59 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
kubben3-May-07 3:40
kubben3-May-07 3:40 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
QuickBooksDev3-May-07 3:58
QuickBooksDev3-May-07 3:58 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
kubben3-May-07 4:34
kubben3-May-07 4:34 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
QuickBooksDev3-May-07 4:35
QuickBooksDev3-May-07 4:35 
QuestionHow to convert a BitArray of length 8 into a single byte Pin
edmonson2-May-07 6:06
edmonson2-May-07 6:06 
AnswerRe: How to convert a BitArray of length 8 into a single byte Pin
Guffa2-May-07 6:24
Guffa2-May-07 6:24 
AnswerRe: How to convert a BitArray of length 8 into a single byte [modified] Pin
Dave Kreskowiak2-May-07 7:01
mveDave Kreskowiak2-May-07 7:01 
QuestionOpen file directly Pin
Xmen Real 2-May-07 5:23
professional Xmen Real 2-May-07 5:23 
hi there,
i made an application like notepad and i want when i click on any text file then my application should start so i select my application in open with and i coded in form1_load of my application

Dim newLine As String = ""
    Dim cmdLine As String
    open.InitialDirectory = System.Environment.SpecialFolder.Desktop
    If InStr(System.Environment.CommandLine, ".txt") Then
        cmdLine = System.Environment.CommandLine
        Dim charInLine As String
        Dim quoteCharStop As Integer = 0
        Dim placeInString As Integer = cmdLine.Length - 1
        While quoteCharStop < 2 And placeInString > 0
            charInLine = cmdLine.Substring(placeInString, 1)
            If charInLine = Chr(34) Then
                quoteCharStop = quoteCharStop + 1
            Else
                newLine = charInLine & newLine
            End If
            placeInString = placeInString - 1
        End While
        Try
            If File.Exists(newLine) Then
                Dim o As StreamReader = File.OpenText(newLine)
                Text1.Text = o.ReadToEnd()
                o.Close()
            End If
            Text1.SelectionStart = 0
            Text1.SelectionLength = 0
        Catch
        End Try
        savechk = False
    End If


its working but when i open large file the application appear blank(i.e. rich text box blank)

someone know the solution??
i also want to code a button as when i click on then it should change open with program to mine application
AnswerRe: Open file directly Pin
Dave Kreskowiak2-May-07 5:51
mveDave Kreskowiak2-May-07 5:51 

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.