Using A Custom Mouse Icon? (I'm Sure This Is Right)
Hi,
I have created my own little mouse icon 32x32 and saved is with the *.ico format. I would like the icon to appear on a picture box call picMain so I set the picture's MousePointer property to 99 - Custom and I selected the icon that I created in the MouseIcon property. For some reason I'm still getting the default mouse icon when I move the mouse over the picture box. I've done this many times before but for some strange reason its not working anymore. Does anybody have any ideas?
Thanks
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Using A Custom Mouse Icon.
I have an unusual problem.
I understand how to use the .mousicon property.
However;
I want to set the mouse icon to look like a long thin line that
stretches across the entire length of the screen.
The app I'm using limits the width and height of the icon.
Any suggestions?
Help Offsetting Custom Mouse Image (icon)
Hello, this is my first post in the forum, lol... I tried reading among the massive amount of information found on the forum threads and learned other stuff but couldn't answer my question.
I'm trying to offset my user defined icon (image) 5 pixel to the right and 5 pixels down because the center or the hot spot is not correct. Important note, I cannot install new programs on my workstation all I can use is adobe photoshop to create and save my icon files.
Is there anyway of doing this... thank you for reading this
ArsA
User Control Mouse Icon/mouse Pointer
I have a simple user control with a graphic that the user drags around the form. I want the mousepointer to change whenever the mouse moves over the user control. At Design Time I set the mouse icon to a custom graphic and the mousepointer=99, but this has no effect as the mouse moves over the control at run time. The user control once drawn on the form does not have a mouse icon and mouse pointer property. They are available only when editing the user control. Is this my problem?
I can make it work in a very clumsy fashion by changing the screen.mousepointer in a MouseMove event for the user control but then when the mouse leaves the user control, I must sense a MouseMove event for every possible location on the form to change the mouse pointer back to the default. This does, however, work well for the drag mouseicon using MouseDown and MouseUp events for the usercontrol.
Custom Icon
How would I load a custom non-vb cursor. I have this code so far:
Private Sub Command1_Click()
MousePointer = vbCustom
End Sub
Custom Icon
OK i am making a program and I want to save the contents of a listbox in a custom file. eg: names.stuff instead of names.txt. I know how to save it as a .stuff but how would I make the icon for that file different? I don't want it to be that ugly thing (see attached picture) so how would I change it?
Custom Icon
Hi all,
I have developed a VB program and it has been decided to ship it out to several user. I want to have a proper icon for thei (not an amended short cut) and can't figure out how to do it. I know when you compile there is an option to change the icon but the only one available is "Form1" and I can't figure out how to add further icons to the list. I think it's something to do with a resourse file but know nothing about them.
Can someone please point me in the right direction.
Everso
Using Custom Systray Icon
How can I make VB see my custom made icon?
I've made a systray icon plus menu, but this program only uses the standard form icon.
Icon On Custom Message Box
Hi, how do I get an icon on a custom message box ?
I'm not talking about the title bar, but on the message box itself.
http://img371.imageshack.us/img371/645/form7kw.png
I've tried some things, but can't get it to show up. I'm trying to use a 64 x 64 icon or is that too big ?
Thanks in advance.
Custom Icon In Ctrl
dear all,
i might be in one of those days, but...
does someone know how to set a custom icon in a control? i mean the icon that then appears on the 'components' tab on the right of the VB RAD that you click to insert a new control in a project.
i created a control but it has the standard VB icon on it...
thanks,
wc.
Set Custom Icon To Textfile
Hi,
Is there a way I can set my own icon to a textfile.
First I create a textfile by writing to it, then I want it to have my own icon. Then I create another file, with another icon. So I want all textfiles i create, to have a different icon.
Is this possible at all?
If not, then can I save an icon I've extracted from a file, and placed in a picturebox, as an .ico file?
Tnx,
MK
Use Custom Icon In MsgBox?
Is it possible to use a custom icon in a message box generated by MsgBox() or API MessageBox? That is, instead of vbQuestion, vbExclamation, etc... If it is possible, how would it be done? (Just curious)
Thanks,
Custom Mouse
I used to have a problem that my original mouse cursor flickered like crazy so I'm finally trying to make a custom mouse pointer......
Here's my code (I'll only post the important stuff):
Code:
'General Declarations
Dim DX As DirectX8
Dim D3D As Direct3D8
Dim D3DDevice As Direct3DDevice8
Dim D3DX As D3DX8
Dim textureMouse As Direct3DTexture8
Dim stripMouse(0 To 3) As TLVERTEX
'Initializing
Set D3DDevice = D3D.CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, frmMain.hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, D3DWindow)
D3DDevice.SetVertexShader FVF
D3DDevice.SetRenderState D3DRS_LIGHTING, False
Set textureMouse = D3DX.CreateTextureFromFile(D3DDevice, App.Path & "Mouse.bmp")
'Form Mouse Move (I'm expecting the problem to be here but I might be wrong)
stripMouse(0) = CreateTLVertex(X, Y, 0, 1, RGB(255, 255, 255), 0, 0, 0)
stripMouse(1) = CreateTLVertex(X + 16, Y, 0, 1, RGB(255, 255, 255), 0, 1, 0)
stripMouse(2) = CreateTLVertex(X, Y + 16, 0, 1, RGB(255, 255, 255), 0, 0, 1)
stripMouse(3) = CreateTLVertex(X + 16, Y + 16, 0, 1, RGB(255, 255, 255), 0, 1, 1)
'Form Load
Private Sub Form_Load()
ShowCursor 0
bRunning = InitD3D()
Me.Show
Do While bRunning
DoEvents
With D3DDevice
.BeginScene
.Clear 0, ByVal 0, D3DCLEAR_TARGET, 0, 1#, 0
.SetTexture 0, textureMouse
End With
'Mouse
D3DDevice.DrawPrimitiveUP D3DPT_TRIANGLESTRIP, 2, stripMouse(0), Len(stripMouse(0))
With D3DDevice
.EndScene
.Present ByVal 0, ByVal 0, 0, ByVal 0
End With
Loop
UnloadD3D
Unload Me
End Sub
Posting this code, I think I just figured out the problem....It keeps drawing in the Form Load....so the Mouse Move never does anything....(once again I may be wrong)
Any comments or suggestions would be appreciated thanks
Use A Custom Icon For A Macro Button
Hi, I wonder if anyone knows how to use a custom icon as the display icon for a macro button. The button is put in through an 'Add In' created in VB so needs to be done programatically.
Its starting to bug me now - only way I can find so far is to edit one of the built in icons which is no good
Using My Own Custom Icon In Applications I Develop
I have been developing an application using VB and decided that I wanted to have my own custom Icon to be associated with my application instead of the default Window's icons.
What I did was modify an icon found with Visual Studios and saved it with the ".ico" extension using MSPaint.
Thinking that this was the way to go, I tried to modify the forms icon property, but VB would not let me, Error message "Invalid property value".
When I checked the properties for this ".ico" file and compared it to thh original icon I got from Visual Studios, this is the only difference.
My Icon Format:Windows Bitmap (BMP) Uncompressed
VB Icon Format:Windows 3.x/NT Icon Resource (ICO) Uncompressed
Using Windows Explorer, I checked the property for each file, they both are Type: Icon
MSDN mentions using Button Editor.exe, but I have yet to find this application.
My question is how do I get my icon to be accepted by VB?
File Assocation With Custom Icon
Ive seen several topics about file assocation about hacking away at the registery.
I never seen any post about how to set a custom icon with your files.
How can you do this..
example:
my program can read .lps files. Instead of it using the exe's icon, how can I get it to use a custom icon instead.
Shell_NotifyIcon With XP SP2 - Custom Icon In Balloon Tip
Hi,
With XP SP2 Microsoft allowed the user to define a custom icon in the NOTIFYICONDATA for display in system tray tooltips. See this MSDN page for more details of this.
It is all done using the NIIF_USER flag but I can't for the life of me find the value of this flag? Does anyone know what it is or where it can be found please as I'm itching to try this new feature out.
Thanks in advance.
Cannot Hide DB Window With Custom Icon
In Access, Tools->Start... I uncheck the "Show Database Window" checkbox to hide the database window when the database opens.
When I enter an icon to be used for the program, the hide DB window utility cease to work on Windows 2000, but not on Windows XP, e.g. the DB window is shown when opening the database on a Window 2000 system.
Any suggestions on how to solve this?
How Do I Make A Custom App Icon?(Resolved)
When I make a vbp a .exe the desktop icon is the standard VB form icon.
Is there a way to change this?
(There is a lot in help about customizing an app but it's all about visual fox pro)
Edited by - RobVG on 7/23/2003 5:57:08 PM
Custom Mouse Icons
Does anyone know if it's possible to extract icons from the .frx file?
And if so, how?
Custom Mouse Pointer....
Ok...I have never done it before so i have no clue!
How do I set the Custom mouspointer the the Hand that appears when over a hyperlink.
I have an image that I want this on the mouseover event
Include Custom Icon With PDW-created Installation
I want to include a custom icon for my program that I am distributing using set files created using the Package and Deployment Wizard. Does anyone know how to do this?
note: Microsoft has a white page on it but when I tried using it (with all references it said to include) I got a compile error saying one of the variables had not been declared.
DefaultIcon Icon For Custom File Extention
Hi,
I'm having trouble for some days figuring out how to associate the icon(s) of my VB6 exe to my custom file extention.
My application can allready set the file association thru the registry,
and this works well, the filetype opens with my app when i doubleclick on it.
However the icon i specify under the DefaultIcon key is never applied?
If the VALUE for this key is another exe (for example the path to IrfanView),
then the icon of that exe is applied for my file extentions after you start/stop explorer.exe, or after u reboot the OS.
I looked at the icons inside IrfanView.exe and they are all 32x32 16colors,
so i put the same type of icons in my VB6.exe, but still no go?
If anyone has any experience with this, i would appreciate your advice,thanks.
Custom Icon Doesn't Show Up When Using MessageBoxIndirect API...
Hi guys, can i get some help here how to show the custom icon when using MessageBoxIndirect API ? There's no problem with the MessageBox itself but the custom icon doesn't show up....
here's my code...
Code:
Type MSGBOXPARAMS
cbSize As Long
hwndOwner As Long
hInstance As Long
lpszText As String
lpszCaption As String
dwStyle As Long
lpszIcon As Long
dwContextHelpId As Long
lpfnMsgBoxCallback As Long
dwLanguageId As Long
End Type
Private Declare Function MessageBoxIndirect Lib "user32" Alias "MessageBoxIndirectA" (lpMsgBoxParams As MSGBOXPARAMS) As Long
Sub ShowMsgBox ()
Dim rc As Long
Dim msg As MSGBOXPARAMS
msg.cbSize = Len(msg)
msg.hwndOwner = Me.hwnd
msg.hInstance = App.hInstance
msg.lpszText = "Text"
msg.lpszCaption = "Caption"
msg.lpszIcon = Me.Icon '<------------------ doesn't work
msg.dwStye = vbOkCancel
MessageBoxIndirect msg
End Sub
Thank you in advance...
Assign (associate) Icon With Custom File Type ??
Hello,
Does anyone have sample code for how to change or associate an icon with a custom file type ??
For example:
I have an icon stored in an image list within a VB program that creates a binary file with the custom extension "*.trc".
How can my program associate the icon with *.trc, so that it shows in Windows Explorer ??
I have seen some rough explanations, but they are very confusing - any sample code would be most appreciated !!!
Thanks !!!!!
Installing A Custom Internet Explorer Toolbar Icon Through VB
Ok, here's what I'm trying to do...
I am a big fan and avid player of the games at weplayhere.com, so I made myself a custom toolbar on Internet Explorer with links to the games and the forum site. I am mostly-computer-illiterate, but I was able to interprit this article enough to make the buttons on my IE. It's working great, and I enjoyed the learning experience, but I would like to make this same toolbar available to other weplayhere.com players. Obviously, I can't just distribute instructions of how to manually edit the registry... that would confuse most people. I was hoping to make a program that people could download and run that would simply install it for them. Is this possible?
I have very minimal knowledge of vb... just the absolute basics. If anyone knows how to do this, please describe it as if I were a two-year old...
Here's a summary of the Microsoft article on how to add custom icons to the IE browser. This is a description of how to add one icon (the first one... the gray circle with the letters "GP" on it)... adding the others is the same process, only with a different icon and a different link. I have Windows XP.
Quote:
Part 1:
Create a new registry KEY in "HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerExtensions".
I used REGEDIT.EXE for this... I think that comes with Windows XP (on my computer, it is located at "C:I386REGEDIT.EXE").
For the KEY name, I used GUIDGEN.EXE. I think this comes with VB.NET (mine is located at ""C:Program FilesMicrosoft Visual Studio .NET 2003Common7Toolsguidgen.exe").
GUIDGEN gave me "{7C3EA56C-D064-45e0-AEE9-AFE02101D3DD}" as a KEY name, so I pasted that into the name. I used a different number for each of the four KEYS... each generated by GUIDGEN. That's the name for the first button.
Part 2:
I made string variables in the KEY (Right Click > New > String Value). Here's a list of the variables I made and what values I assigned them:
ButtonText = "GamerParty Forum"
Default Visible = "Yes"
Icon = "C:Custom ToolbarGPbw.ico"
HotIcon = "C:Custom ToolbarGPc.ico"
CLSID = "{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}"
Exec = "http://www.gamerparty.com/forum/"
The 4 icons used to create the toolbar are located at "C:Custom Toolbar". Here are the names of the icons in the order that they appear in the little animated picture of my toolbar above. "c" denotes colored icon and "bw" denotes black and white. Also included are the links to which the buttons go.
GPc.ico & GPbw.ico http://www.gamerparty.com/forum/
DBc.ico & DBbw.ico http://www.weplayhere.com/launch_db.php
OBc.ico & OBbw.ico http://www.weplayhere.com/launch_ob.php
VMc.ico & VMbw.ico http://www.weplayhere.com/launch_vm.php
I attached a zip folder with these icons to this post.
Here's what the program would need to do...
1. Check to make sure that the user is using Windows XP or 2000... otherwise editing the registry is different, or so I hear. It would be really cool if the program could also include a way to install the buttons in Windows 98 or below too, but that's not really that important.
2. Check to make sure Internet Explorer is version 5 or better. Otherwise, I don't think you can add custom buttons. At least that what I understand from the Microsoft article mentioned above.
3. Create 4 KEYS in the registry. Now, I know next to nothing about using the registry, but I think the name of the KEY depends on the machine... it can't just be the four names I used for the KEYs on my computer. I think it has be a number that is somehow unique to the machine... or at least not one that's already been used to some other KEY... and I would have no way of knowing what KEY names the user has already used. Does that make sense? Basically, this step would require creating a valid key name... not just something I can write in as a constant.
4. Install the icons to a folder on the user's computer. This would be fairly easy, right? It would be cool if the user could specify what folder they wanted the icons installed in... and then save that location so that it can be used in the next step...
5. Add the string values to the KEYs. I think this would be pretty easy. The location of the icons (Icon and HotIcon strings) would depend on where the user installed the icons in step 4.
That should be it, I think. If anyone knows how to do all or any of this, please let me know. All help is appreciated, but please keepin mind that I am relativly illiterate with VB.NET. I hope I made everything clear... let me know if there's anything I left out.
Thanks a million!
Edited by - L4E_WakaMol-King on 12/10/2004 2:27:26 PM
How Do I Insert A Custom Icon On A Word Tool Bar Button
I have created a office addin that adds a button to the standard tool bar of Word Excel and Powerpoint.Where i used a built in icon as its faceid eg. <buttonName>.FaceID=51.
My boss decided that he wants a icon that is not in the list of icon availiable in word. therefore i had to create one from scratch my question is this how do i insert that icon as the face of my Button.It would be Great if someone could help me either through telling me how to incude this icon in the word library or by directly inserting it as the button face.
Thanks for the Help
Jerry
Custom Mouse Cursor Outsid My Form?
Hi greetings, I am trying to set a custom mouse cursor(by maybe drawing or circle shape) after I click a command button on my form. But I want my custom mouse cursor work on whole screen or on a window which does not belong to my application and I know its hWnd(handle), not only when mouse is over my form.
How can I do that? please help!
Help With Mouse Click/custom Command Button??
Hey guys,
Notice I have attached an image. This is a simple arena type game, that I am hoping on expanding, but I've run into a problem. Notice that on the image is a signpost, with one sign labeled "ARENA". Well, this is actually a seperate image, and I am wanting the game to launch into battle scenes when the player clicks the "ARENA" sign. However, using BitBlt, I find I can't just put the code under the picturebox's click routine, so how would I do this? How would I say code "When the player clicks this image this happens" using BitBlt?????
Thanks a lot!
Assigning Icon To Custom File Extension Created Using My Program
I had a program created in VB6. This program produces files with an extension of *.xpc. Since this is a custom file type that my program produces, when the file is saved to the harddrive, it is an unknown filetype according to Windows so it is assigned the default Icon Windows uses when it does not know the file type. I would like this to look more professional and would like to use my custom Icon for the .xpc filetype my program creates. I do not need to know how to assign the icon to the programs .exe, I need to assign an icon to the .xpc file type and have it show up on ALL users computers. I do not know how to do this in VB6. Can anyone explain the method in detail? I am pretty new to VB.
Thanks!!
Bryan
Putting A Custom Icon Into The Form Caption Bar - Minimize To Tray
Hi!
I wonder how this can be done? I've just made a very small programmer's utility for generating Property Procedure listings from a list of variables, and I wonder how I can keep this form handy at all times. A tray icon could be handy. I already have the trayicon class and it's working, but I need to hide the form from a custom command button procedure instead of by minimizing.
Thanks in advance,
Stas
Mouse Icon
i want to change my mouse pointer to a graphic icon, only when the mouse button is down, but i can't get it to work.
Mouse Icon
I know that you can make the mouse icon a hour glass when the system is busy
but
how do you make the hourglass flip?
Mouse Icon
i made my own mouse (.cur) and put it in my program. I set the active click spot or whatever it is for the mouse at the tip of the arrow. Worked great on my win2k box, i then tried it on a win95 box (not install, but ran the .exe), and the active click spot on the mouse icon changed to the middle of the height, on the left side. Would installing my program update some .dlls or something to fix this problem, or is it just a win95 suxing problem? any solutions are greatly appreciated.
thanks in advance
Mouse Icon
Hi folks,
how can i make a mouseicon change for the whole application (multiple forms)?
when my printing window pops up and i change it only to that form then only when you mouseover the printing form the icon changes
Mouse-Icon...
Hello,
my color MouseIcon *.cur works now, but with flicker.
How i can stop the flicker on the MouseIcon.
For example :
when a click a ComboBox my MouseIcon disappear for
a short time and then his displayed again.
Is not stabil !!!
Please Help !!!
Thank You !!!
arcas
The Anthrop is a micrographie from the Univers.
Demokrit 500 b.Chr.
Mouse-Icon...
Hello,
how i can use a colored MouseIcon(*.cur) in VB 6.
I have trying but the Color of the MouseIcon get Black !!!
Thank You !!!
arcas
The People must die because they can't connect the End with the Start
Thales from Milets 600 b.Chr.
Mouse Icon
When I change the mouseicon to my own custom icon, the centre of my custom icon is where the x any y of the mouse it. How can I change that, so that the top left of the icon is showing where the mouse is?
Mouse Icon
how do i use this property? i change the mouse pointer property to 'icon' ..then i change the mouseicon to use the help.cur under the folder visual basic folder... but i cannot see any effect...when i move my pointer over the Label....
Mouse Icon
Hi all,
I have a array of 25 labels. I have set its MouseIcon property to a cursor. When user clicks on any of the label, a sound file is played.
Now the problem is, when user clicks on the label, the cursor vanishes. It does not show up even if i have exclusively set the MouseIcon to the cursor file.
Please help,
Thanks in advance,
Abhid
Mouse Icon
How do i change the mouse icon to custom mouse icon??
Mouse Icon
i m trying to change my mouse icon to an icon a have created but i cant seem to find the right place or code to do that.
please help (any samples would be appreciated).
thank you .
Mouse Icon?
Can one change the mouse icon to a picture in VB?
Mouse Icon
Does anyone know if there is an easy way to create mouse icons with
Adobe Illustrator 10? Any help is appreciated.
Thanks
Mouse Icon/Pointer
I tried to change the mouse Icon! But under that it is the mouse Pointer option. I realized that "MOUSE POINTER" must be selected "99-Custom" to let "MOUSE ICON" work!
Then i tried to make my own mouse icon and i done it with a trial version program named "ART CURSORS" and i done the .ico AND .cur x2 copies of my picture that i drawn!
I tried to browse and open it in "MOUSE ICON" in Visual Basic and it keeps writing "Invalid Picture" on both extensions (.ico and .cur)!
I tried to select an original WINDOWS .cur from My Computer/Windows/Cursors and it works but it is all Black the cursor!
I was curious and tried to apply MY ".cur" and ".ico" on my desktop like windows cursors and it works!
Why it does not work in Visual Basic?
Can someone take a little time to explain it to me? I really don't know why my Cursor don't work!
Kind Regards.....
Changing Mouse Icon
I want that my mouse icon should change (say from pointer to hourglass) once the mouse moves over the chartspace .How to do it???
Thanks
Change Mouse Icon
I am trying to change my mouse icon to change to a hand when it moves over my label. In the properties window, I am trying to change the Mouse Icon, but it isn't accepting my selection. It just defaults back to (Icon).
When I run this code:
Code:
Private Sub lblLink_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim MouseIcon As String
MouseIcon = "hand.cur"
Screen.MouseIcon = LoadPicture(MouseIcon)
Screen.MousePointer = 99
End Sub
I get the error:
File not Found: hand.cur
Any help?
|