Hi Sage,
I added the line of code you suggested and got the following error...
System.Runtime.InteropServ
ErrorCode=-2147467259
Message="Error HRESULT E_FAIL has been returned from a call to a COM component."
Source="System.Windows.For
StackTrace:
at System.Windows.Forms.Unsaf
at System.Windows.Forms.TextB
at Sampledb.Form1.RTB2_GotFoc
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.TextB
at System.Windows.Forms.RichT
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Nativ
at System.Windows.Forms.Unsaf
at System.Windows.Forms.Nativ
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.TextB
at System.Windows.Forms.RichT
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Nativ
at System.Windows.Forms.Unsaf
at System.Windows.Forms.Appli
at System.Windows.Forms.Appli
at System.Windows.Forms.Appli
at System.Windows.Forms.Appli
at Microsoft.VisualBasic.Appl
at Microsoft.VisualBasic.Appl
at Microsoft.VisualBasic.Appl
at Sampledb.My.MyApplication.
at System.AppDomain._nExecute
at System.AppDomain.ExecuteAs
at Microsoft.VisualStudio.Hos
at System.Threading.ThreadHel
at System.Threading.Execution
at System.Threading.ThreadHel
InnerException:
Do I need to add some reference or Inports statementto my code? at the present time I only have one import
Imports MySql.Data.MySqlClient
Thanks
dr_roose
Main Topics
Browse All Topics





by: Idle_MindPosted on 2009-08-19 at 21:40:58ID: 25139399
Try using the ScrollToCaret() method: en-us/libr ary/ system .windows.f orms.textb oxbase.scr olltocaret (VS.80).as px
http://msdn.microsoft.com/
Something like...
Select allOpen in new window