Click here to Skip to main content
15,846,211 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to refresh design area Pin
Ralf Meier15-Dec-17 0:17
professionalRalf Meier15-Dec-17 0:17 
GeneralRe: How to refresh design area Pin
mo149215-Dec-17 7:59
mo149215-Dec-17 7:59 
AnswerRe: How to refresh design area Pin
Ralf Meier16-Dec-17 23:19
professionalRalf Meier16-Dec-17 23:19 
AnswerRe: How to refresh design area Pin
Ralf Meier17-Dec-17 0:45
professionalRalf Meier17-Dec-17 0:45 
GeneralRe: How to refresh design area Pin
mo149217-Dec-17 5:51
mo149217-Dec-17 5:51 
PraiseRe: How to refresh design area Pin
mo149217-Dec-17 12:59
mo149217-Dec-17 12:59 
GeneralRe: How to refresh design area Pin
Ralf Meier17-Dec-17 21:44
professionalRalf Meier17-Dec-17 21:44 
AnswerRe: How to refresh design area Pin
Ralf Meier14-Dec-17 2:46
professionalRalf Meier14-Dec-17 2:46 
I'm sorry ... the solution I gave to you with your last question was incomplete.
You must enhance your ControlDesigner with this code (Property-Names are the same as before) :
VB
Protected Overrides Sub OnPaintAdornments(ByVal pe As System.Windows.Forms.PaintEventArgs)

     If HostControl Is Nothing Then Exit Sub

         Dim borderPen As New Pen(HostControl.ForeColor)
         borderPen.DashStyle = Drawing2D.DashStyle.Dash
         pe.Graphics.DrawRectangle(borderPen, 0, 0, HostControl.SpaltenTrenner.Pos1 - 1, HostControl.Height - 1)
         pe.Graphics.DrawRectangle(borderPen, HostControl.SpaltenTrenner.Pos1 + 1, 0, HostControl.SpaltenTrenner.Pos2 - HostControl.SpaltenTrenner.Pos1 - 2, HostControl.Height - 1)
         pe.Graphics.DrawRectangle(borderPen, HostControl.SpaltenTrenner.Pos2 + 1, 0, HostControl.Width - HostControl.SpaltenTrenner.Pos2 - 2, HostControl.Height - 1)

         borderPen.Dispose()

     MyBase.OnPaintAdornments(pe)
 End Sub


But Attention :
I don't have several Controls - I have only one Control with the required Behaviour ...
QuestionParentControlDesigner: How to receive message from child in design mode Pin
mo14925-Dec-17 3:38
mo14925-Dec-17 3:38 
AnswerRe: ParentControlDesigner: How to receive message from child in design mode Pin
Ralf Meier8-Dec-17 2:02
professionalRalf Meier8-Dec-17 2:02 
GeneralRe: ParentControlDesigner: How to receive message from child in design mode Pin
mo14929-Dec-17 12:25
mo14929-Dec-17 12:25 
GeneralRe: ParentControlDesigner: How to receive message from child in design mode Pin
Ralf Meier10-Dec-17 4:09
professionalRalf Meier10-Dec-17 4:09 
QuestionDATA CAPTURE - WEB PAGE VB.NET Pin
Member 1352492016-Nov-17 4:05
Member 1352492016-Nov-17 4:05 
AnswerRe: DATA CAPTURE - WEB PAGE VB.NET Pin
Richard MacCutchan16-Nov-17 4:16
mveRichard MacCutchan16-Nov-17 4:16 
QuestionMIDI and USB Keyboard! Pin
User 989707412-Nov-17 5:25
User 989707412-Nov-17 5:25 
AnswerRe: MIDI and USB Keyboard! Pin
Richard MacCutchan12-Nov-17 7:29
mveRichard MacCutchan12-Nov-17 7:29 
GeneralRe: MIDI and USB Keyboard! Pin
User 989707412-Nov-17 8:45
User 989707412-Nov-17 8:45 
GeneralRe: MIDI and USB Keyboard! Pin
Sascha Lefèvre12-Nov-17 9:32
professionalSascha Lefèvre12-Nov-17 9:32 
GeneralRe: MIDI and USB Keyboard! Pin
User 989707412-Nov-17 9:34
User 989707412-Nov-17 9:34 
GeneralRe: MIDI and USB Keyboard! Pin
Sascha Lefèvre12-Nov-17 9:50
professionalSascha Lefèvre12-Nov-17 9:50 
GeneralRe: MIDI and USB Keyboard! Pin
User 989707412-Nov-17 9:56
User 989707412-Nov-17 9:56 
GeneralRe: MIDI and USB Keyboard! Pin
Sascha Lefèvre12-Nov-17 10:16
professionalSascha Lefèvre12-Nov-17 10:16 
GeneralRe: MIDI and USB Keyboard! Pin
User 989707413-Nov-17 0:36
User 989707413-Nov-17 0:36 
GeneralRe: MIDI and USB Keyboard! Pin
User 989707413-Nov-17 10:00
User 989707413-Nov-17 10:00 
GeneralRe: MIDI and USB Keyboard! Pin
User 989707429-Nov-17 5:16
User 989707429-Nov-17 5:16 

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.