Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

Tram88

@Tram88
About
Posts
12
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to ignore the input field
    T Tram88

    Dear All, I am new with VB coding, please help me with this problem. I have a form including 1 input field, 1 dropdown menu and 1 submit button. The scenario is: If I dont move the mouse to the inputfield, and select a dropdown menu. It will automatically activate the submit button to update info. However, in this process, I want it ignore the data in the input field, and update only the item in the dropdown menu. Could you please help me, i 'm being stuck in this issue for 2 weeks. I would appreciate your time and your potential helps very much,

    Visual Basic help tutorial announcement

  • If Else Loop With Date Format in VB.NET
    T Tram88

    It's working now, Thank you very much Steve. Tram88

    Visual Basic help csharp debugging

  • If Else Loop With Date Format in VB.NET
    T Tram88

    Dear Steve, Based on your code, I do have a question for intTotalCount = CountStringInFile(strFileEmailNotification, estringtext) If I run the code, I would like to see intTotalCount=1 . In fact, it is 2. Can you teach me how to program it. Once again, thank you Steve, Tram88

    Visual Basic help csharp debugging

  • If Else Loop With Date Format in VB.NET
    T Tram88

    Dear Steve, First, I would say thank you very much for your consideration on my problem. However, I did apply your code but it is still the same, that means 2 lines can drop into the loop. I really get stuck on this, please help me out. Thanks, Tram88

    Visual Basic help csharp debugging

  • If Else Loop With Date Format in VB.NET
    T Tram88

    I know this is very simple to you, but I could not debug the problem. I am writting a program to read everyline of a textfile. If the line has date as my format and an "Error" string, then it must go to the IF/THEN ELSE loop. But in fact, it can go to the IF/THEN ELSE loop even one of the condition is met. If I run my code today which is 8/1/2006, I expect to see is "8/1/2006 4:01:14 Error", but in fact, the result is 2 lines "7/1/2006 4:01:14 Error" and "8/1/2006 4:01:14 Error" Would you please help me out. I would appreciate your big helps very much. Below is my text and code. Tram88 This is the content of text file:----------------------------------------------------------------- 7/1/2006 4:01:14 Error 8/1/2006 4:01:14 Error This is the VB.NET code:--------------------------------------------------------------------------- Dim eoFile As System.IO.File Dim eoRead As System.IO.StreamReader Dim ebStart As Boolean Dim eStart As String = Format(Today, "M" & "/" & "d" & "/" & "yyyy") Dim eEnd As String = "email notification started" eoRead = eoFile.OpenText(strFileEmailNotification) 'opens text file for reading Dim Pass As Integer = 0 Dim eIntotalCount As Integer While eoRead.Peek <> -1 'reads until peek is -1, which is end of file Dim eLineOut = eoRead.ReadLine Dim estringtext As String = "Error" Dim eiLine As Integer If (InStr(1, eLineOut, estringtext, CompareMethod.Text)) And (InStr(1, eLineOut, eStart, CompareMethod.Text)) Then intTotalCount = CountStringInFile(strFileEmailNotification, estringtext) Pass = 1 End If End While

    Visual Basic help csharp debugging

  • How to display second line if the first line in text file is meet the condition
    T Tram88

    Dear CWIZO, Here is my code below, with this code, I can read how many lines that met the condition, but I can not read the second line. Can you help me out. I would appreciate your potential helps very much, Private Sub BtnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSend.Click Dim Start As String = "Start" Dim intTotalCount As Integer intTotalCount = CountStringInFile(strFile, Start) **<--HERE, I CAN READ HOW MANY LINE MET THE CONDITION** end Sub Private Function CountStringInFile(ByVal FilePath As String, ByVal StringToLookFor As String) As Integer Dim strContent As String = "" 'Get a StreamReaderclass that can be used to read the file Dim objStreamReader As StreamReader Dim intCount As Integer Dim intCountahead As Integer = 1 objStreamReader = File.OpenText(FilePath) While objStreamReader.Peek <> -1 strContent = objStreamReader.ReadLine intCount += CountLineByLine(strContent, StringToLookFor) End While 'Close the stream objStreamReader.Close() objStreamReader = Nothing Return intCount End Function Private Function CountLineByLine(ByVal vstr As String, ByVal strToSearch As String) As Integer Dim intIndex As Integer Dim intCount As Integer = 0 intIndex = InStr(vstr, strToSearch) While intIndex > 0 intCount += 1 intIndex = InStr(intIndex + 1, vstr, strToSearch) End While Return intCount End Function

    Visual Basic csharp tutorial

  • How to display second line if the first line in text file is meet the condition
    T Tram88

    Dear All, Would you please tell me how to display second line if the first line in text file is meet the condition. I am using VB.NET. I would appreciate your helps very much,

    Visual Basic csharp tutorial

  • How to display a confirmation for one of the checkboxes if the user changed the status
    T Tram88

    Dear Kschuler, Thank you very much for your potential helps. Tram88

    Visual Basic help tutorial learning

  • How to create an Email program in VB that can read a log file
    T Tram88

    Dear all, I would appreciate your help so far. I am a new learning/working with VB6 and I am working on a program to create a Email application in VB6, this program will read a log file and and scan a "error" text in this log file. If the log file is not contain an "error" text string, it will send a message to someone with a design text in the text body. If the log file is contain an "error" text string, it will send a message to someone with a number of error in log file. I really dont understand how it work, and if you can help me out, would you please show me how to create it or any code would be a big appreciation. Thanks, Tram88

    Visual Basic help design tutorial learning

  • How to display a confirmation for one of the checkboxes if the user changed the status
    T Tram88

    Dear Kschuler, Would you please confirm the codes that you wrote above, Should I put it into the .acsx or ascx.vb file? I would appreciate your potential helps very much. Tram88

    Visual Basic help tutorial learning

  • How to display a confirmation for one of the checkboxes if the user changed the status
    T Tram88

    Dear Kschuler, I am so glad to receive a message from you. However, let me clear my problem so that you can get it fully. Suppose a user is modifing a form that have 2 checkboxes (checkbox1 and checkbox2) and 1 submit button. If a user change (check or uncheck) the checkbox1, then a confirmation will display. That is my problem, and I am using VB6. Would you please help me out. I would appreciate your help very much, Tram88

    Visual Basic help tutorial learning

  • How to display a confirmation for one of the checkboxes if the user changed the status
    T Tram88

    Dear All, I am a beginner of VB and I am trying to create a Confirmation Message for a particular checkbox. The scenario is that: suppose I have two (2)checkboxes and one Submit button. If I just want to display a confirmation for the checkbox #1 only. The user changes the status on checkbox 1 (on/off), then click on the Submit button, this confirmation will display. Would you please help me out. I would appreciate it.

    Visual Basic help tutorial learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups