Click here to Skip to main content
15,923,087 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: ConextMenuStrip is displayed to fast on load (how to sync when main form visible). Pin
Tom Deketelaere14-Oct-08 20:56
professionalTom Deketelaere14-Oct-08 20:56 
QuestionBreak String into multiple listboxes Pin
JeffStewart13-Oct-08 13:38
JeffStewart13-Oct-08 13:38 
AnswerRe: Break String into multiple listboxes Pin
Jon_Boy13-Oct-08 14:02
Jon_Boy13-Oct-08 14:02 
AnswerRe: Break String into multiple listboxes Pin
Mycroft Holmes13-Oct-08 17:52
professionalMycroft Holmes13-Oct-08 17:52 
GeneralRe: Break String into multiple listboxes Pin
JeffStewart13-Oct-08 18:31
JeffStewart13-Oct-08 18:31 
GeneralRe: Break String into multiple listboxes Pin
Jon_Boy14-Oct-08 7:35
Jon_Boy14-Oct-08 7:35 
GeneralRe: Break String into multiple listboxes Pin
JeffStewart14-Oct-08 13:33
JeffStewart14-Oct-08 13:33 
QuestionVB Rich Text Box Overstrike Pin
CAN Coder13-Oct-08 8:03
CAN Coder13-Oct-08 8:03 
I Have a transparent rtb via:

Public Declare Function SetWindow Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Integer, ByVal Index As Integer, ByVal NewVal As Integer) As Integer
Public Const GWL_EXSTYLE = (-20)
Public Const WS_EX_TRANSPARENT = &H20

and, at form_load:

Dim result As Integer = SetWindow(rtb.Handle.ToInt32,GWL_EXSTYLE, WS_EX_TRANSPARENT)

Works fine. The issue I can't seem to figure out is how to display one character over another.

Sample code:

Dim Sym_Font As New Font=
("Symbols",16,font_style.Regular,GraphicsUnit.Pixel)

' "O" is a solid circle
' "F" some symbol to display on top of the circle
rtb.SelectionFont() = Sym_Font
rtb.SelectionColor() = Color.LightGray
' Circle
Dim cp As Integer = rtb.SelectionStart 'get position
rtb.AppendText("O") 'draw the filled circle
rtb.Select(cp, 1) 'back up position
'the overlay
rtb.SelectionColor() = Color.Green
rtb.SelectedText() = "F"

Sym_Font.Dispose()

The "F" displays but the circle is gone. Getting rid of the rtb.select(cp,1) statement will show the circle followed by the symbol.
AnswerRe: VB Rich Text Box Overstrike Pin
Dave Kreskowiak14-Oct-08 1:53
mveDave Kreskowiak14-Oct-08 1:53 
GeneralRe: VB Rich Text Box Overstrike Pin
CAN Coder14-Oct-08 4:33
CAN Coder14-Oct-08 4:33 
QuestionCompare two datasets Pin
Sebastian T Xavier13-Oct-08 5:31
Sebastian T Xavier13-Oct-08 5:31 
AnswerRe: Compare two datasets Pin
Wendelius13-Oct-08 6:20
mentorWendelius13-Oct-08 6:20 
GeneralRe: Compare two datasets Pin
Sebastian T Xavier13-Oct-08 6:45
Sebastian T Xavier13-Oct-08 6:45 
GeneralRe: Compare two datasets Pin
Wendelius13-Oct-08 7:20
mentorWendelius13-Oct-08 7:20 
QuestionConnecting to access using vb6.0 Pin
Michelle Shoniwa13-Oct-08 4:21
Michelle Shoniwa13-Oct-08 4:21 
AnswerRe: Connecting to access using vb6.0 Pin
Dave Kreskowiak13-Oct-08 4:33
mveDave Kreskowiak13-Oct-08 4:33 
GeneralRe: Connecting to access using vb6.0 Pin
Mycroft Holmes13-Oct-08 17:57
professionalMycroft Holmes13-Oct-08 17:57 
AnswerRe: Connecting to access using vb6.0 Pin
Paul Conrad13-Oct-08 12:11
professionalPaul Conrad13-Oct-08 12:11 
QuestionSystem.Threading.Timer - stops executing on its own Pin
alexvw13-Oct-08 3:40
alexvw13-Oct-08 3:40 
AnswerRe: System.Threading.Timer - stops executing on its own Pin
Dave Kreskowiak13-Oct-08 3:58
mveDave Kreskowiak13-Oct-08 3:58 
GeneralRe: System.Threading.Timer - stops executing on its own Pin
alexvw14-Oct-08 7:06
alexvw14-Oct-08 7:06 
GeneralRe: System.Threading.Timer - stops executing on its own Pin
Dave Kreskowiak14-Oct-08 7:14
mveDave Kreskowiak14-Oct-08 7:14 
GeneralRe: System.Threading.Timer - stops executing on its own Pin
alexvw15-Oct-08 0:12
alexvw15-Oct-08 0:12 
Questionhow to draw over image..... Pin
Vineet Swami13-Oct-08 3:14
Vineet Swami13-Oct-08 3:14 
AnswerRe: how to draw over image..... Pin
Dave Kreskowiak13-Oct-08 4:01
mveDave Kreskowiak13-Oct-08 4:01 

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.