Click here to Skip to main content
15,920,896 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Random Navigation of a BindingContext ??? Pin
normanordas1-Jun-04 1:26
normanordas1-Jun-04 1:26 
Generalother .NET frameworks Pin
kratchkov20-May-04 10:44
kratchkov20-May-04 10:44 
GeneralRe: other .NET frameworks Pin
TigerNinja_20-May-04 17:18
TigerNinja_20-May-04 17:18 
GeneralRe: other .NET frameworks Pin
kratchkov21-May-04 9:59
kratchkov21-May-04 9:59 
GeneralListBox with ComboBox embedded Pin
yipan20-May-04 9:56
yipan20-May-04 9:56 
GeneralRe: ListBox with ComboBox embedded Pin
TigerNinja_20-May-04 17:16
TigerNinja_20-May-04 17:16 
GeneralControlPaint.DrawComboButton() Pin
Victor Boctor19-May-04 15:40
Victor Boctor19-May-04 15:40 
GeneralPlugin Application in c# Pin
DajuBhai17-May-04 20:32
sussDajuBhai17-May-04 20:32 
GeneralRe: Plugin Application in c# Pin
Anonymous17-May-04 23:12
Anonymous17-May-04 23:12 
GeneralRe: Plugin Application in c# Pin
Aryadip18-May-04 0:11
Aryadip18-May-04 0:11 
GeneralRe: Plugin Application in c# Pin
Philip Fitzsimons18-May-04 3:10
Philip Fitzsimons18-May-04 3:10 
GeneralRe: Plugin Application in c# Pin
holland_phillip1-Jun-04 9:10
holland_phillip1-Jun-04 9:10 
Generalproblems with configuration settings Pin
Gerda_S16-May-04 21:47
Gerda_S16-May-04 21:47 
GeneralRe: problems with configuration settings Pin
TigerNinja_18-May-04 6:05
TigerNinja_18-May-04 6:05 
GeneralValidation Controls Question Pin
gmhanna16-May-04 9:56
gmhanna16-May-04 9:56 
GeneralRe: Validation Controls Question Pin
Mike Ellison18-May-04 20:07
Mike Ellison18-May-04 20:07 
GeneralHELP! Reading Files... Pin
mikasa15-May-04 12:23
mikasa15-May-04 12:23 
GeneralRe: HELP! Reading Files... Pin
mikasa15-May-04 12:40
mikasa15-May-04 12:40 
GeneralRe: HELP! Reading Files... Pin
mikasa15-May-04 12:59
mikasa15-May-04 12:59 
GeneralRe: HELP! Reading Files... Pin
TigerNinja_20-May-04 8:34
TigerNinja_20-May-04 8:34 
GeneralRe: HELP! Reading Files... Pin
mikasa20-May-04 8:46
mikasa20-May-04 8:46 
Sure thing, just curious if anyone would reply Poke tongue | ;-P

'Function to Read a File into Cache so RegEx can be Performed
Private Sub CacheFile(ByVal File As String)
	Dim ioReader As IO.StreamReader
	Dim vBuffer() As Char
	Dim hResult As Integer

	'Exit if the File does not exist
	If (File = "") Then Return
	If (Not IO.File.Exists(File)) Then Return
	If (Me._File <> File) Then Me._File = File Else Return

	Try
		'Initialize the Cache
		_Cache = Nothing : _Cache = New System.Text.StringBuilder(8096)

		'Read the File
		ReDim vBuffer(8096)
		ioReader = New IO.StreamReader(File, System.Text.Encoding.UTF8, True, 8096)
		hResult = ioReader.Read(vBuffer, 0, vBuffer.Length) 'Read More Data
		While (hResult > 0)
		     'There is a bug with a StreamReader.  Sometimes more data is read than is neccessary.
		     'If these are the Last Bytes of data, only read up to the hResult
		     If (hResult < vBuffer.Length) Then _Cache.Append(vBuffer, 0, hResult) Else _Cache.Append(vBuffer, 0, vBuffer.Length)

		     hResult = ioReader.Read(vBuffer, 0, vBuffer.Length) 'Read More Data
		End While

	Catch ex As Exception : MsgBox(ex.ToString)
	Finally
		Erase vBuffer
		If (Not IsNothing(ioReader)) Then ioReader.Close() : ioReader = Nothing
	End Try
End Sub

GeneralRe: HELP! Reading Files... Pin
Colin Angus Mackay23-May-04 2:00
Colin Angus Mackay23-May-04 2:00 
GeneralRe: HELP! Reading Files... Pin
mikasa23-May-04 6:51
mikasa23-May-04 6:51 
QuestionTreeView - Howto add Controls? Pin
mgaerber14-May-04 9:23
mgaerber14-May-04 9:23 
AnswerRe: TreeView - Howto add Controls? Pin
mikasa15-May-04 13:00
mikasa15-May-04 13:00 

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.