 |
|
 |
This is good piece of information. The credit goes entirely to you.
However I had to spend days figuring out just why we have to do this 'this particular way'. Because most of the functions used here have no description, I had to literally copy and paste each function in google to find out what exactly was it doing.
Of course for a newbie, by looking at this code there is no way he or she could figure out which function belongs to which namespace. You should at least add some info about what functions are used from which name space. For e.g.
imports System.Drawing 'for HotkeyPrefix.Show()
Moreover for articles such as this one, there should be some intro into the process or the logic adopted. And where ever necessary code snippets should be presented to explain a certain point. Then finally the whole code should be presented. This saves the application's code from being inundated with comments.
But once again this is nice work. I hope you keep more articles coming...
|
|
|
|
 |
|
 |
I want create Skin(button, form...)from My graphic design (but don't use software to create). I know, in VB6 use .ctl and ocx, but in VB .NET or 2005, how to do it?
|
|
|
|
 |
|
 |
Hi,
I want to fix the Menu Width in 150 Pixel.
How to do that.
Regards,
Ahmad Jalil Qarshi
|
|
|
|
 |
|
 |
Public Sub MeasureMyItem(ByVal sender As Object, ByVal e As MeasureItemEventArgs) handles myItem.MeasureItem
e.ItemWidth = 150
End Sub
|
|
|
|
 |
|
 |
This error was mention '16 sep 2002' and now it is 17 feb 2005 , till this issue ,'Out of memory' is Carry on, Slove it now
|
|
|
|
 |
|
 |
DrawItems(e, MenuItem3, Nothing) = DrawItems(e, MenuItem3, Ic)
where Ic is icon
|
|
|
|
 |
|
 |
Hi
If you have Icons greater than 16x16 you could use the follow
:OLD:
Private Sub MenuItem2_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) _
Handles MenuItem2.DrawItem
Dim Ic As New Icon(".\icons\1.ico")
DrawItems(e, MenuItem2, Ic)
End Sub
:NEW:
Private Sub MenuItem4_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) _
Handles MenuItem4.DrawItem
Dim IconFile As New Icon(".\icons\1.ico")
Dim Ic As New Icon(IconFile, 16, 16)
DrawItems(e, MenuItem4, Ic)
End Sub
You must use this cause Dim Ic as New Icon() doesn't allow the parameters for height and width if the given IconSource isn't a valid IconRessource.
EcoSys
|
|
|
|
 |
|
 |
I get a little gray box around where my mouse cursor enters the menu item.
|
|
|
|
 |
|
 |
i have the same problem...
have you solved it?
thanks
|
|
|
|
 |
|
 |
out of memory,out of memory,out of memory
|
|
|
|
 |
|
 |
out of memoryout of memoryout of memoryout of memoryout of memoryout of memory
|
|
|
|
 |
|
 |
This module doesn't work with a context menu menuitem.
|
|
|
|
 |
|
 |
How would you add a text box to one of these menus? I would like to create a menu similar to the functionality provided when right clicking within access and getting the filter option.
Thanks
Eric
|
|
|
|
 |
|
 |
Hi Eric,
I'm facing the same problem. Have you already figured that out?
Thanks,
Sima
Sima
|
|
|
|
 |
|
 |
With me it gives a bug with "TypeDescriptor" in the function "GetRealText"
The name "TypeDescriptor" is not declared.
M@thias
|
|
|
|
 |
|
 |
Anyone got a wrapper that allows OpenGL to work in VB.NET?
|
|
|
|
 |
|
 |
i know only
http://csgl.sourceforge.net
and its is good
you can found sample in
http://www.msdnaa.net/Resources/Display.aspx?ResID=1968
MSDNAA - Using OpenGL with VB .NET
but if you ha some sample please send me too
my name is Clarissa Rossi
my mail il conny69@libero.it
i search vb.net code sample with OpenGL
|
|
|
|
 |
|
 |
At first it didn't work for me cuz the example is wrong:
Dim Ic As New Icon("C:\Documents and Settings\Yo\Escritorio\iconmenu\Save.ico")
DrawItems(e, MenuItem3, Nothing)
should be:
Dim Ic As New Icon("C:\Documents and Settings\Yo\Escritorio\iconmenu\Save.ico")
DrawItems(e, MenuItem3, Ic) '<- HERE!
And in the module code you should use:
If CBool(EvDrawItems.State And DrawItemState.Selected) Then
br = New LinearGradientBrush(rcBk, Color.MidnightBlue, Color.LightBlue, 0)
fDisposeBrush = True
Else
br = SystemBrushes.Menu '<- HERE!
End If
instead of:
If CBool(EvDrawItems.State And DrawItemState.Selected) Then
br = New LinearGradientBrush(rcBk, Color.MidnightBlue, Color.LightBlue, 0)
fDisposeBrush = True
Else
br = SystemBrushes.Control
End If
But it work great!
|
|
|
|
 |
|
 |
hello
So I just start working with VB.NET and I encountred a problem.
I created a search form that contains a textbox and a datagrid, so i use the textbox for entering first caracter of the searched record and i execute a parametrised query to display all the names verify criteria.
The problem is when i want to intercept the chr(13) in any cell for getting the selected record , it is not working.
Excuse me for my bad english and Thank you very match.
***
|
|
|
|
 |
|
 |
I have copied the module in a module. I have set the OwnerDraw property of my MenuItem to True. I have copied code to the DrawItem and MeasureItem events. My try to display one of the many icons available from "C:\Program Files\Microsoft Visual Studio .NET\Common7\Graphics\icons\arrows". When I run my app, I see a big space to the left of the menu text but I don't see the icon.
Any idea?
|
|
|
|
 |
|
 |
Forget it. I just found it.
In your sample, into the DrawItem event, you need to replace
DrawItems(e, MenuItem3, Nothing)
With:
DrawItems(e, MenuItem3, Ic)
|
|
|
|
 |
|
 |
I've the same error!
I've copied the lines error:
An unhandled exception of type 'System.OutOfMemoryException' occurred in system.drawing.dll
Additional information: Out of memory.
Help me, please!
Bye
Marco
|
|
|
|
 |
|
 |
I get the same out of memory error.
Have you managed to sort it out?
|
|
|
|
 |
|
 |
Any solution to this error. Having happening on another example.
Thanks
|
|
|
|
 |