Click here to Skip to main content
15,879,535 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to do syntactic analysis on words Pin
Onuche Abraham DaCatalyst16-Dec-17 18:38
Onuche Abraham DaCatalyst16-Dec-17 18:38 
SuggestionRe: How to do syntactic analysis on words Pin
Richard MacCutchan16-Dec-17 21:02
mveRichard MacCutchan16-Dec-17 21:02 
QuestionHow to refresh design area Pin
mo149211-Dec-17 1:08
mo149211-Dec-17 1:08 
AnswerRe: How to refresh design area Pin
Dave Kreskowiak13-Dec-17 2:17
mveDave Kreskowiak13-Dec-17 2:17 
SuggestionRe: How to refresh design area Pin
Ralf Meier14-Dec-17 0:50
mveRalf Meier14-Dec-17 0:50 
GeneralRe: How to refresh design area Pin
mo149214-Dec-17 3:35
mo149214-Dec-17 3:35 
GeneralRe: How to refresh design area Pin
Ralf Meier14-Dec-17 23:17
mveRalf Meier14-Dec-17 23:17 
GeneralRe: How to refresh design area Pin
mo149215-Dec-17 6:59
mo149215-Dec-17 6:59 
Hello Ralf,
I'm sorry. I think I have confused you with my question and responses. I will
describe my issue again and try to be more clear.
My control functions like the 'SplitContainer' in the toolbox.

Normal operation in run mode.
It has a custom 'Host' UserControl that implements a ParentControlDesigner and it has
2 child UserControls, Panel1 and Panel2 which also implement a ControlDesigner. I also
have a custom control that does nothing but separate the 2 panels, I call it
the 'Splitter'. The splitter control is a simple UserControl. The splitter overrides MouseDown, MouseMove, and MouseUp, to move itself within the host control and when MouseUp occurs, the splitter raises an event to the host and the host resizes the 2 panels based on the splitters' position. This works fine normal operation.

Functionality in design mode.
Since events do not function in design mode, I have created a Behaviour for the host
control that handles OnMouseDown, OnMouseMove, and OnMouseUp to perform the same action
as described above to move the splitter bar and when the OnMouseUp occurs, I have a Shadowed property called SplitterOffset that informs the host of the splitter's change in position
and the host resizes the panels correctly.
All of this works fine.

If you look at the SplitContainer from the toolbox, when you select a panel, the selected panel displays 3 borders.
1. The inner most border is for 'Padding'; drawn by the panel.
2. The center border is for 'Margin'; drawn by the panel.
3. The outermost border; This border is drawn by the IDE designer to indicate the
selected panel.

My control draws borders 1 and 2 as expected and the IDE draws border 3, outermost border
as expected.

Here is the issue in design mode:
After moving the Splitter, my Host control resizes the panels as expected and the
Margin and Padding borders are drawn correctly for each panel. But, the IDE designer
is not aware of my host control resizing the panels and therefore the outer border
mentioned above (3.) is not redrawn to match the new size of the selected panel.

This does not affect the normal operation of the control at runtime. This is
merely a visual issue in design mode. I hope I am not more confusing. If this makes
since to you and you have a suggestion, I would appreciate it. If this is just
confusing, I apologize as I am just learning concerning the designer. As I learn
more I will revisit this issue and perhaps figure it out later.

addendum,
After writing the above I have thought about this a little more and I think
my problem probably is the result of how I have implemented Panel1 and Panel2.
In the same way that the SplitContainer has hidden certain properties from the user,
I have also hid the same properties to prevent the user from changing them in the mycontrol.designer.vb file. Possibly because the properties are hidden, the designer
cannot update properly. I will have to experiment with this. I'm sure you could look at
my code and figure it out but I don't want to take up all of your time with such
a small issue.

Thanks again for helping me.
Best regards

-- modified 15-Dec-17 17:04pm.
AnswerRe: How to refresh design area Pin
Ralf Meier16-Dec-17 22:19
mveRalf Meier16-Dec-17 22:19 
AnswerRe: How to refresh design area Pin
Ralf Meier16-Dec-17 23:45
mveRalf Meier16-Dec-17 23:45 
GeneralRe: How to refresh design area Pin
mo149217-Dec-17 4:51
mo149217-Dec-17 4:51 
PraiseRe: How to refresh design area Pin
mo149217-Dec-17 11:59
mo149217-Dec-17 11:59 
GeneralRe: How to refresh design area Pin
Ralf Meier17-Dec-17 20:44
mveRalf Meier17-Dec-17 20:44 
AnswerRe: How to refresh design area Pin
Ralf Meier14-Dec-17 1:46
mveRalf Meier14-Dec-17 1:46 
QuestionParentControlDesigner: How to receive message from child in design mode Pin
mo14925-Dec-17 2:38
mo14925-Dec-17 2:38 
AnswerRe: ParentControlDesigner: How to receive message from child in design mode Pin
Ralf Meier8-Dec-17 1:02
mveRalf Meier8-Dec-17 1:02 
GeneralRe: ParentControlDesigner: How to receive message from child in design mode Pin
mo14929-Dec-17 11:25
mo14929-Dec-17 11:25 
GeneralRe: ParentControlDesigner: How to receive message from child in design mode Pin
Ralf Meier10-Dec-17 3:09
mveRalf Meier10-Dec-17 3:09 
QuestionDATA CAPTURE - WEB PAGE VB.NET Pin
Member 1352492016-Nov-17 3:05
Member 1352492016-Nov-17 3:05 
AnswerRe: DATA CAPTURE - WEB PAGE VB.NET Pin
Richard MacCutchan16-Nov-17 3:16
mveRichard MacCutchan16-Nov-17 3:16 
QuestionMIDI and USB Keyboard! Pin
User 989707412-Nov-17 4:25
User 989707412-Nov-17 4:25 
AnswerRe: MIDI and USB Keyboard! Pin
Richard MacCutchan12-Nov-17 6:29
mveRichard MacCutchan12-Nov-17 6:29 
GeneralRe: MIDI and USB Keyboard! Pin
User 989707412-Nov-17 7:45
User 989707412-Nov-17 7:45 
GeneralRe: MIDI and USB Keyboard! Pin
Sascha Lefèvre12-Nov-17 8:32
professionalSascha Lefèvre12-Nov-17 8:32 
GeneralRe: MIDI and USB Keyboard! Pin
User 989707412-Nov-17 8:34
User 989707412-Nov-17 8:34 

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.