Lets pretend that for some reason I want to create a custom control that is derived from Control and not WebControl. Let us also assume that I need to process attributes (i.e. implement IAttributeAccessor) and that I want to do so by using an AttributeCollection just like WebControl does...
I know that it only works with A tags. Does anyone know how to get rid of the little dotted border when it gets focus. Having to use links wouldn't be so bad if I could get rid of that last little thing.
Just a note if you only want to indent on the left you can use margin-left or padding-left insted of margin or padding which will leave space all the way around the text.
In case your interested here's a sample of dragging to another list box. It's kind of clumsy looking and I woudn't use it but it might help you understand how the drag commands work. This assumes you have two listbox (list1, list2) on a form.
Option Explicit
Private isDragging As Boolean...
I don't believe that VB supports this natevly. It may be possible through the API. The drag mtehod/properties refer to draging the entire control. It is possible to drag one list box onto another one and insert the select item but thats as close as I can come to what your looking for without...
I don't think that will be enough for what he needs. It sounds like he's using sendkeys (or something similer) so even if notepad is on top of all other apps it can still loose focus even if it's only to the taskbar. I'm sure there's away to stop that from happening too but I can't think of it...
There is a simple API code you can call to handle this.
Place this in the declaration section of your code:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Then when you want to wait (say for 100ms) call it by inserting the line:
Sleep 100
Does anyone know of a way to find out what icons are registered and retrieve their NOTIFYICONDATA. Or if you can't find out which ones are already in the tray do you know of a way to be notified when new icons are added using Shell_NotifyIcon?
[cry]
I actully agree with tsdragon. I just fixed his syntax. It is easier to maintain that way and short circut evaluation could really cause some problems. Wish I had thought of it myself.
Kind of... Do it like this
switch (expression)
{
case "value1":
case "value2":
//Code goes here
break;
case "value3":
//....
}
The program will run starting from the matching case to the break statment. If you leave out the...
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.