Hi, I wrote a custom drop down control host(unrelated to toolstrip) that enables me to take a control and make insert it in a drop down window.
I implement this control host by creating a topmost form which contains the control.
the control works perfectly exept one thing.
when i try to make a drop down control that containes another drop down control,
the z order of the forms changes every time the focus changes. this...
User Profile
Collapse
-
topmost topmost window
-
i did try to override the paint method,the problem is that scrollbars seem to repaint themselfs even when i disable the painting.
basically what i want to do is to create some new controls and modify exisiting ones while the drawing is disabled and then draw them all in one shot.but i dont stuff over the top of the form to paint on it, and definatly not stuff that are behind the form. how can i do so ?... -
WM_SetRedraw
Hi , i'm trying to diable window painting.I'm using the WM_SetRedraw message to do so. it does work the window stops painting itself but the problem is that stuff that are behind the window are being painted over it when i move the mouse over them. how can i fix this problem ?
thanks in advance.
sorry for my poor english -
i used those just for the example, it doesnt really matter as long as the question is clear. what i want is a way to find out which one called the method...Leave a comment:
-
getting the name of an event
If I have, let say, 3 event handlers,all pointing to the same method.
is there a way to find out which on invoked the method from within the method?
for example:
i have 3 event handlers
Code:Grid1.MouseMove += new EventHandler(bla) Grid1.MouseDown += new EventHandler(bla) Grid1.MouseUp += new EventHandler(bla) private void bla(object sender,EventArgs e) { // what
-
ok i finnaly managed to do this.
usign the IDesignerSerial izationManager. GetService Method
Code:CodeMemberMethod Method = new CodeMemberMethod(); Method.Name = ((MultisetContainer)value).Name + "_ChangeSet_Test"; Method.Parameters.Add(new CodeParameterDeclarationExpression(typeof(object), "sender")); Method.Parameters.Add(new
Leave a comment:
-
Custom CodeDomSerializer
Hi, I'm writing a custom codedomserializ er for a control(using DesignerSeriali zer).
It works great but i can only insert statements to the initializecompe net method.
I want to create a methods in the container of the control outside the initalizecompon ent method. how can this be done? -
Framing a System.Drawing.Region
Hi, i Created a Polygon shaped control using the API Function CreatePolygonRg n, now i want to draw a border to the control.
but it appears theres no function that frames a region in the graphics object.
I cant use the FrameRgn API Because it doesnt support anti-aliasing.
please help.
thanks in advance. -
context menu problem vb .net
Hi im writing a class of a context menu where each menu item is linked to a Tree Node.
I have a click event (that belongs to the context menu class ,not the menu item class) that it's event arguments contains a reference to the tree node linked to the menu item that was clicked.
in the case that no menu item was selected, i want to fire this event with a null refrenced tree node.i could have done so if the collapse event of the context... -
checking if the designer is running a control
Hi, i have a custom control that usually has the same color as the form.
the problem is that when i use the designer, i cant see this control.
what I want to do is to check whether its the designer that is painting the control or not, so i could draw a border around this control that will only be seen in the designer.how could this be done?
thanks in advance -
it hides the class partialy(only from the intellisense menu). I can still inherit from it in a diffrent assembly if I know it's name. what i'm looking for is a way to make EPType completly inaccessible....Leave a comment:
-
Inconsistent accessibility In base class and derived class
While working on a scripting engine I Encountered the following problem.
First I Created an abstract base class EPType that represent a variable type in the script.
Code:internal abstract class EPType { private String m_Name; public String Name { get { return m_Name; } } public EPType(String Name) {
-
first thing , thanks everybody for answering.
I Tried to hook the menu WndProc as you said but for some reson the WndProc i planted never gets called(The Context Menu is displayed Normally as if no alternative wndproc was set)
This is the code I wrote:
Code:Const GWL_WNDPROC As Int32 = (-4) Protected Overrides Function CreateMenuHandle() As System.IntPtr Dim tmp As
Leave a comment:
-
owner drawn contextmenu
Hi , Im working on an owner drawn context menu.
I want to replace the regular submenu arrow with my own arrow,I went threw all the properties and overridable methods of menuitem and couldn't find a way to do that.Is it imposiable to make that arrow disapear so i could replace it ?
thanks in advance. -
regular control with a dialog frame
Hi , I'm writing a script editor and i want to add an autocomplete feature to it just like in VS. now, in VS the Autocomplete list has a frame just like a dialog frame , i want the same frame for my autocomplete list. so i wrote this in my listbox derived class:
Code:protected override CreateParams CreateParams { get { const int WS_DLGFRAME = 0x400000;
-
creating a dropdown control
Hi , I want to create a user control almost similar to a combobox
now ,when dropping down, the combo box can draw outside of the limits set to it(by the form design) and even out of the form if necessary.
my question is how can i achive the similar drop dwon effect in my user contorl
No activity results to display
Show More
Leave a comment: