Click here to Skip to main content
14,689,144 members
Home » Discussions » Visual Basic
   

Visual Basic

 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
kubben3-May-07 4:40
Memberkubben3-May-07 4:40 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
QuickBooksDev3-May-07 4:58
MemberQuickBooksDev3-May-07 4:58 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
kubben3-May-07 5:34
Memberkubben3-May-07 5:34 
GeneralRe: Best Way to handle foreign characters from XML to disk file Pin
QuickBooksDev3-May-07 5:35
MemberQuickBooksDev3-May-07 5:35 
QuestionHow to convert a BitArray of length 8 into a single byte Pin
edmonson2-May-07 7:06
Memberedmonson2-May-07 7:06 
AnswerRe: How to convert a BitArray of length 8 into a single byte Pin
Guffa2-May-07 7:24
MemberGuffa2-May-07 7:24 
AnswerRe: How to convert a BitArray of length 8 into a single byte [modified] Pin
Dave Kreskowiak2-May-07 8:01
mveDave Kreskowiak2-May-07 8:01 
QuestionOpen file directly Pin
Xmen Real 2-May-07 6:23
professional Xmen Real 2-May-07 6: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 6:51
mveDave Kreskowiak2-May-07 6:51 
GeneralRe: Open file directly [modified] Pin
Xmen Real 2-May-07 18:29
professional Xmen Real 2-May-07 18:29 
GeneralRe: Open file directly Pin
Dave Kreskowiak3-May-07 14:23
mveDave Kreskowiak3-May-07 14:23 
GeneralRe: Open file directly Pin
Xmen Real 3-May-07 19:18
professional Xmen Real 3-May-07 19:18 
QuestionVB printing problem Pin
Rich Leyshon2-May-07 5:42
MemberRich Leyshon2-May-07 5:42 
AnswerRe: VB printing problem Pin
Dave Kreskowiak2-May-07 7:23
mveDave Kreskowiak2-May-07 7:23 
GeneralRe: VB printing problem Pin
Rich Leyshon2-May-07 8:29
MemberRich Leyshon2-May-07 8:29 
GeneralRe: VB printing problem Pin
Rich Leyshon2-May-07 8:53
MemberRich Leyshon2-May-07 8:53 
QuestionOnly one window in the taskbar Pin
Jats_4ru2-May-07 5:38
MemberJats_4ru2-May-07 5:38 
AnswerRe: Only one window in the taskbar Pin
Psycho-*Coder*-Extreme2-May-07 5:51
MemberPsycho-*Coder*-Extreme2-May-07 5:51 
AnswerRe: Only one window in the taskbar Pin
Dave Kreskowiak2-May-07 5:52
mveDave Kreskowiak2-May-07 5:52 
AnswerRe: Only one window in the taskbar Pin
Rupesh Kumar Swami2-May-07 6:02
MemberRupesh Kumar Swami2-May-07 6:02 
QuestionHow to close an application completely Pin
nahitan2-May-07 4:58
Membernahitan2-May-07 4:58 
AnswerRe: How to close an application completely Pin
Dave Kreskowiak2-May-07 5:03
mveDave Kreskowiak2-May-07 5:03 
GeneralRe: How to close an application completely Pin
nahitan2-May-07 5:07
Membernahitan2-May-07 5:07 
GeneralRe: How to close an application completely Pin
Dave Kreskowiak2-May-07 5:47
mveDave Kreskowiak2-May-07 5:47 
QuestionNeed Help with Outlook [modified] Pin
Jats_4ru2-May-07 4:08
MemberJats_4ru2-May-07 4:08 

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.