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...
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 & _...
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
if your using c++.net [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. vb.net project and c++.net. it normally has the same objects used but differ in syntax...
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?
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...
[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...
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...
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...
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...
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"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.