Search results

  1. A

    how to lookup table?

    this? Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cn As New SqlConnection() cn.ConnectionString = "user id=sa;password=password;initial catalog=northwind;" cn.Open() Dim cmdtext As String = "select...
  2. A

    Stripping out all HTML tags?

    i don't know if this helps mate. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load RichTextBox1.Text = "<html>" & Constants.vbCrLf & _ "<head>" & Constants.vbCrLf & _ "<title>the brown monkey</title>" & Constants.vbCrLf & _...
  3. A

    module or shared method?

    for methods, i'd use shared as though writeline [ shared methods ] as a member of console class. but in enums and structs, it's better be modules. though i don't know much about this. lol
  4. A

    use in

    if your using [which i don't know, lol] then it is managed. it uses .net base class libraries. objects, etc... just do a single solution with two projects. project and it normally has the same objects used but differ in syntax...
  5. A


    set the keypreview property of your form to true.
  6. A

    tab key in richtextbox

    geeee... now i concluded, i'm DUMB. hehehe... thanx man.
  7. A

    simple textbox question.

    you mean on textchanged event? every changes in textbox is pushed to the stack. try putting the s.push(blah) to textbox_textchanged event. is that what you mean?
  8. A

    simple textbox question.

    something like this? Dim s As New Stack() Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = Keys.Escape Then Try TextBox1.Text = s.Pop() Catch ex As Exception...
  9. A

    tab key in richtextbox

    [solved] tab key in richtextbox how do i insert a tab key in a richtextbox? am i missing something? everytime i enter a tab key. richtextbox doesn't respond...
  10. A

    application.startuppath database access

    like this? Dim cn As New OleDbConnection() cn.ConnectionString = "provider=microsoft.jet.oledb.4.0;data source=" & Application.StartupPath & "\db.mdb" cn.Open() i wonder your computer doesn't recognize application.startuppath. are u using console apps??? if so, try environment...
  11. A

    Where is IsInitializing property?

    there should be something like [+] Windows Form Designer generated code. it is a region where the generated code is placed. expand it and it should display the InitializeComponent() function. hope this helps...
  12. A

    application.startuppath database access

    put your db in your_project_folder\bin. that way, you can use application.startup & "\db.mdb" or something
  13. A


    what is it that actually fires the event? i don't find the onstatechange event...
  14. A


    add handles blah_blah.blah_event on your onstate event function. i'm not sure though...
  15. A

    registering font style

    remarkable. thanx very much, paszt...
  16. A

    registering font style

    it accepts my fontsize though. i think it has to do with fontstyle... 'set setting sssk.SetValue("fontname", txt.Font.Name.ToString) sssk.SetValue("fontsize", Double.Parse(txt.Font.Size)) sssk.SetValue("fontstyle", txt.Font.Style.ToString) this has the error 'get setting...
  17. A

    registering font style

    i don't know how to register the font style. all i have here is the fontname and fontsize. in savesetting... rkfr.SetValue("fontname", RichTextBox1.Font.Name.ToString) rkfr.SetValue("fontsize", Double.Parse(RichTextBox1.Font.Size)) rkfr.SetValue("fontstyle"...
  18. A

    Browser problems

    like this? process.start("mozilla","")
Top Bottom