My goal is to fix the initial issue - to cause it so that the tooltip text will set properly by default. Not that the user can set it afterwards. I want it to appear correctly when the user adds the ActiveX control to the toolbox - and am wondering why it is coming up as "Unknown"...
I have a VB ActiveX that I have compiled. When I add the ActiveX to the "Toolbox" it shows up with a tooltip of "Unknown". I would like to have the tooltip refer to the name of the control. Is there a way to do this? What is VBA reading to set as the default for this tooltip?
When an ActiveX control goes into runtime and the ReadProperties and (possibly) AmbientChanged events fire off - can I be sure that ReadProperties will always occur first or does it depend on the container?
thanks.
I have a control array of items that I have to constantly have to dynamically add/remove items from (depending on the position of a scrollbar).
The problem is that eventually the size of the control gets bigger and bigger.
I use the "Load sections(intCtr)" to load a new control dynamically...
This sounds good, but I can't get it to work.
When I try it in my app - it appears that the mouse icon switches between what I specify in "Screen.MouseIcon = ..."
and the result mouse image - based on what I specify in setting the AllowedEffects variable during the StartDrag event (either...
I have a User Control that I want a picture box to go over. I add the User Control dynamically to the form - and I can not figure out a way to dynamically add this User Control to a frame (that I also, create dynamically).
Any ideas?
Thanks for your reply!
I noticed the icons in these folder actually. I must have overlooked the "Save" icon listed in the "Computer" subdirectory. However, there really are no icons for "Undo" and "Redo" in any of these folders...
Does anyone know where to get free icons for my program. I need the icons for undo, redo, save. I would like ones similiar to the icons that Microsoft used in Office 97 - but I can not find them...
And of course, I don't want to be violating any copyright laws - I don't understand how these...
Someone else informed me...
"Actually, you'd end up taking more than that - 4 bytes for the actual value, 8 bytes (IIRC) object overhead, and 4 bytes for the reference in the ArrayList. Basically, you don't want to be doing that... "
To answer my own question - the byte value is "boxed" - therefore for each byte you add an "object" and a "byte" to the heap (the "object" is a reference to the "byte" value).
So an array instance of 1,000 "bytes" would occupy 5,000...
Does anyone know how the ArrayList works in regards to sizing of elements? What I mean is if you add 1,000 byte values to an ArrayList does that mean that the ArrayList is then 1,000 bytes long - or does it store each byte as a generic "object" - thus storing it as a 4 bytes each??
Thanks again for your input!
I changed your scenario around a bit to get something that works for me...
public class ICNodeCollection
{
private TreeNodeCollection nodes;
public ICNodeCollection(TreeNodeCollection treeNodes)
{
nodes = treeNodes;
}
.... (add special...
Hey, thanks for the help obislavu.
However - this will not work. Since the constructor is internal I cannot create an instance of the TreeNodeCollection class (on heap - using "new" keyword). Therefore, if I tried your solution and tried accessing the "tnc"'s methods - I...
Not entirely solved...
I am still unsatisfied that I can not have a label control inside the derived TreeView class and have that render in front over the rest of the TreeView structure.
I have derived new classes for the TreeNode and TreeView classes that Microsoft provides. Since the TreeNodeCollection class is sealed I created my own class that implements the IList interface.
However, the original TreeNodeCollection class does something important on the "Add"...
Duh... I needed the ".BringToFront" method.
Sorry for my stupidness.
One thing I was trying to do was to have a label control inside my derived TreeView class and to have that label control appear in front of the rest of the image. I still couldn't get that to happen - even with the...
I placed the label over the control and realized that it's zorder must be behind the control. So I used the "Send to Front" option in the design view to fix the problem.
However, this still doesn't really make me happy. Why doesn't Microsoft allow you to do this programatically...
I have been using a label with the TreeView control - to simulate the ghost image of a node during drag/drop (so that a ghost of the node appears to be floating next to the cursor on a drag/drop).
This works peachy when I had a form that used the TreeView control (from Microsoft).
The time...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.