Click here to Skip to main content
15,927,345 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionadding images in the datagridview Pin
Sonia Gupta31-May-07 18:53
Sonia Gupta31-May-07 18:53 
AnswerRe: adding images in the datagridview Pin
Christian Graus31-May-07 20:06
protectorChristian Graus31-May-07 20:06 
QuestionRe: adding images in the datagridview Pin
Sonia Gupta31-May-07 20:16
Sonia Gupta31-May-07 20:16 
AnswerRe: adding images in the datagridview Pin
Christian Graus31-May-07 20:38
protectorChristian Graus31-May-07 20:38 
GeneralDetect size of error log and start a new one Pin
Psycho-*Coder*-Extreme31-May-07 16:35
Psycho-*Coder*-Extreme31-May-07 16:35 
GeneralRe: Detect size of error log and start a new one Pin
Johan Hakkesteegt1-Jun-07 0:54
Johan Hakkesteegt1-Jun-07 0:54 
GeneralRe: Detect size of error log and start a new one Pin
Psycho-*Coder*-Extreme1-Jun-07 2:08
Psycho-*Coder*-Extreme1-Jun-07 2:08 
GeneralRe: Detect size of error log and start a new one Pin
Johan Hakkesteegt1-Jun-07 3:41
Johan Hakkesteegt1-Jun-07 3:41 
Hi,

Feel free to use this bit of code to dump the contents of your log file into a listbox. (no guarantees, no warranty)
<br />
Private Sub CmdLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdLoad.Click<br />
If File.Exists("log.txt") = False Then File.Create("log.txt")<br />
Dim sr As StreamReader = New StreamReader("log.txt")<br />
Dim line As String<br />
LineCounter = 0<br />
Do<br />
line = sr.ReadLine()<br />
ListBox.Items.Add(line)<br />
Loop Until line Is Nothing<br />
sr.Close()<br />
End Sub<br />

and this bit to empty out only the selected items:
<br />
Private Sub CmdClearLog_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdClearLog.Click<br />
Dim ic As Integer<br />
Try<br />
ic = LB_Errors.SelectedItems.Count<br />
Do<br />
LB_Errors.Items.Remove(LB_Errors.SelectedItems.Item(ic - 1))<br />
ic -= 1<br />
Loop Until ic = 0<br />
Catch Ex As Exception<br />
MsgBox(Ex.Message)<br />
End Try<br />
End Sub<br />


As for "Where's the any key?"-users, you could catch that risk by hard coding a top and a bottom limit, for example with a trackbar.

Hope it helps,

Johan

My advice is free, and you may get what you paid for.

QuestionRegarding Text to speech in Hindi Pin
jatin288231-May-07 16:01
jatin288231-May-07 16:01 
AnswerRe: Regarding Text to speech in Hindi Pin
Sathesh Sakthivel31-May-07 16:07
Sathesh Sakthivel31-May-07 16:07 
GeneralRe: Regarding Text to speech in Hindi Pin
jatin288231-May-07 17:43
jatin288231-May-07 17:43 
GeneralRe: Regarding Text to speech in Hindi Pin
Sathesh Sakthivel31-May-07 18:01
Sathesh Sakthivel31-May-07 18:01 
AnswerRe: Regarding Text to speech in Hindi Pin
Christian Graus31-May-07 16:27
protectorChristian Graus31-May-07 16:27 
GeneralRe: Regarding Text to speech in Hindi Pin
jatin288231-May-07 17:41
jatin288231-May-07 17:41 
GeneralRe: Regarding Text to speech in Hindi Pin
Christian Graus31-May-07 18:17
protectorChristian Graus31-May-07 18:17 
GeneralRe: Regarding Text to speech in Hindi Pin
jatin288231-May-07 18:50
jatin288231-May-07 18:50 
GeneralRe: Regarding Text to speech in Hindi Pin
Christian Graus31-May-07 20:07
protectorChristian Graus31-May-07 20:07 
GeneralRe: Regarding Text to speech in Hindi Pin
jatin28821-Jun-07 4:50
jatin28821-Jun-07 4:50 
GeneralRe: Regarding Text to speech in Hindi Pin
jatin28826-Jun-07 9:36
jatin28826-Jun-07 9:36 
QuestionHighlight Textbox Text Pin
Duane in Japan31-May-07 13:28
Duane in Japan31-May-07 13:28 
AnswerRe: Highlight Textbox Text Pin
Dave Kreskowiak31-May-07 13:46
mveDave Kreskowiak31-May-07 13:46 
GeneralRe: Highlight Textbox Text Pin
Christian Graus31-May-07 13:52
protectorChristian Graus31-May-07 13:52 
GeneralRe: Highlight Textbox Text Pin
Duane in Japan31-May-07 14:09
Duane in Japan31-May-07 14:09 
AnswerRe: Highlight Textbox Text Pin
Christian Graus31-May-07 13:50
protectorChristian Graus31-May-07 13:50 
GeneralRe: Highlight Textbox Text Pin
Duane in Japan31-May-07 13:59
Duane in Japan31-May-07 13:59 

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.