Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. kulfanumber

    save contents of two rtb's in a single file

    How can i save contents of two rtb's in a single file and load them into these rtb's?
  2. kulfanumber

    variable declaration

    I tried drawing border in the form's paint event instead of rtb's onpaint event and it worked. Thnx
  3. kulfanumber

    variable declaration

    i hav tried this. It draws rectangle around rtb but when i type nothing happens. What maybe the problem?
  4. kulfanumber

    variable declaration

    Thnx TipGiver. Actually i wanted to change the border of rtb. For this i hav created my own rtb class Public Class RichTextBoxEx inherits RichTextBox Public Sub DrawBorder(ByVal Border as System.Drawing.Graphics) Me.BorderStyle = Windows.Forms.BorderStyle.None Dim rect as Rectangle...
  5. kulfanumber

    variable declaration

    Hi, How can i declare a system.drawing.graphics variable. when i declare it as Dim a as System.Drawing.Graphics it gives null exception.
  6. kulfanumber

    autoscrolloffset

    Hi, Can anyone plz giv me an example of using autoscrolloffset for designing custom controls?
  7. kulfanumber

    changing code for right to left language

    I am designing an Urdu editor. Urdu language is written from right to left. Now I implemented justification using some code from net. I tried it on english editor, it works fine. But when I use it for my Urdu editor the text alignment changes to left. The code is here Enum TextAlign Left = 1...
  8. kulfanumber

    changing multiple fonts to bold

    This did the trick for me Private Sub fontStyle(ByVal rtb as RichTextBox, ByVal style As FontStyle) Dim selectionStart as Integer = rtb.SelectionStart Dim selectionLength As Integer = rtb.SelectionLength Dim selectionEnd as integer = selectionStart + selectionLength Dim count as Integer = 0...
  9. kulfanumber

    changing multiple fonts to bold

    Oooooops sorry i posted the code for italics instead of bold. Ok so i hav searched the net and found that when mixed fonts are selected than SelectionFont will be nothing so i hav to write my own code to break down the selection to get individual fonts. So I'm gonna try that and if i hav anymore...
  10. kulfanumber

    changing multiple fonts to bold

    I hav used the following code for changing text to bold in an rtb editor. When i select text with multiple fonts it is not working. What maybe the problem? Dim doc As frmDocument = Me.ActiveMdiChild On Error Resume Next If doc.Text1.Focused Then If...
  11. kulfanumber

    code conversion from C# to VB.NET

    The code which i hav written is below Imports System Imports System.Windows.Forms Imports System.Runtime.InteropServices <Serializable()> _ Public Class RichTextBoxEx Inherits RichTextBox Enum TextAlign Left = 1 Right = 2 Center = 3 Justify = 4 End...
  12. kulfanumber

    code conversion from C# to VB.NET

    I hav used this but when i run my program it gives accessviolationexception at this line
  13. kulfanumber

    code conversion from C# to VB.NET

    Thnx alot. I hav one more problem in code conversion. I hav to convert this code too SendMessage( new HandleRef( this, Handle ), EM_GETPARAFORMAT, SCF_SELECTION, ref fmt );
  14. kulfanumber

    code conversion from C# to VB.NET

    I need to convert this code frm C# to VB 2005 [DllImport( "user32", CharSet = CharSet.Auto )] private static extern int SendMessage( HandleRef hWnd, int msg, int wParam...
  15. kulfanumber

    inserting textbox inside rtb

    Ok. thnx for ur reply. Yeah i think its better to create my own rtb control. I'll post it in a separate thread.
  16. kulfanumber

    inserting textbox inside rtb

    I am developing an MDI editor and i want to add the functionality to allow user to insert as many textboxes into richtextbox as he wishes using mouse. I have added following code to accompish this Form1 has one richtextbox named RichTextBox1 Public Class Form1 Private i As Integer...
  17. kulfanumber

    changing the key pressed in keypress event of rtb

    In keypress event of rtb, i want to detect the keypress and change the char printed e-g if i enter e then i want to change it to b. i can detect the key pressed by using keyascii = asc(e.keychar) but then how to set it to different value?
  18. kulfanumber

    SendKeys in vb 2005

    thank u
  19. kulfanumber

    set the value of e.keycode

    When i set the value of e.keycode to zero in keydown method of rtb i get an error that e.keycode is readonly. How can i set the value of e.keycode?
  20. kulfanumber

    SendKeys in vb 2005

    I have shifted to vb 2005 from vb 6. I cant find the equivalent of "SendKeys("Enter")" in vb 2005. Plz help.

Part and Inventory Search

Back
Top