Create Custom Shape That Holds Icons?
Oct 14, 2009
I want to be able to create a custom shape that holds icons. Lets say for simplicity that it is a sqaure. I need the ability to load up to X amount of icons in the square. Lets say I need up to 6 icons. These icons will always be the same. However not all custom shapes will need them. I am assuming that I have to create a custom shape object class. I also want the icons to automatically adjust in size when I change the size of the shape. I am guessing that one way to do this would be to drop a TableLayoutPanel into the shape and then dock it to the shape. Then set the dock property of the icon to the cell that it resides into within the TableLayoutPanel in the shape. The number of rows/columns of the TableLayoutPanel would be predicated on the number of icons needed.
View 16 Replies
ADVERTISEMENT
Apr 22, 2009
Let's say I have a custom class called CustomItem that holds the Name and 'SomeProperty' properties:[code]Now, on the click of a Button, I want to select the CustomItem whose SomeProperty is equal to "Property 4". Of course, this is just "Item 4", but the names and properties are not that correlated in the real application than they are in this example.I have spent ages a long time ago figuring out how to do this. I could not directly set the SelectedItem, because I first need to get the CustomItem that actually matches my condition (SomeProperty = "Property 4"). My solution was to use a loop, looping through each item in the ListBox, and setting the SelectedItem when the right property has been found.[code]Now, is this the correct way to approach this problem? Is the LINQ query correct, or can it be done easier, without the casting? Also, is the LINQ query faster than the For loop, especially for a large amount of items? I expect it to be, but I don't know how to test this.
View 4 Replies
Jun 27, 2012
I want to create some custom shapes for MS Office which we can use in house.
For example I want to create a shape named "carton box" which have three - four default places where user can add some text. It is same as other shapes or I would say just like shapes (line, flowchart, arrow etc) in MS office 2007.
Is there any way to create and reuse such a new objects, also if user don't have these shape in their toolbox and get a document which includes these shapes; he should be able to see it (defiantly in read only).
Background - I am a .NET developer and also having small knowedge of MS office development in .NET.
View 1 Replies
Sep 3, 2009
I am looking to build some small custom buttons. I want to keep it simple and give them a gradient backgroud and use grey colours to illustrate shapes on them. Very similar to the buttons you see in Excel/Power Point/Word 2007 at the bottom right of the screen. The buttons are next to the slider bar which increaes the view % of the screen. These buttons are grouped together and have different combinations of squares/rectangles on them for viewing options Any idea where to start with the shapes?
View 10 Replies
May 16, 2011
I am working on a contract to repair problems in a application that interfaces with a custom built digitizer tablet.The application recognizes the tablet at startup, initiates calibration to locate the pad limits and then saves those limits to file.During the run of the application the user has a cursor that is changed to a line with a X on the left hand side of it. The user then uses this custom cursor to click in a PDF document where they would like the contents of the Digitizer pad to be placed. When they click a box signifying the size of the digitizer pad along with the same blank and X appears. What I have been having issue with is that the box and the line with the X appear most of the time but on occasion the line and X appears at either the top or bottom of the box and the click is no longer at the line with the X but somewhere in the middle of the box. This really screws up things and often the user has to uninstall and re-install the application to get it righted.
The values that save the calibration points are bound to variables during the build process, there is a separate routine to calibrate the digitizer pad if the user desires to do it again.
Public Structure IconInfo
Public fIcon As Boolean
Public xHotspot As Integer[code]......
View 18 Replies
Jun 28, 2010
I have been using custom shapes for some time now but the pixels always have to be 100% solid or it mixes with the color I have set as transparent and its starting to get a bit annoying. Is there any way possible that I could take a png image with transparent pixels and use that as my custom shape without the transparent pixels becoming that color I chose? This is what I have: I want to put my image as the background without the purple being where the transparent pixels are.
Me.Backcolor = Color.Purple
Me.Transparencykey = Color.Purple
View 3 Replies
Jun 16, 2011
I have a custom cursor for the user to allow them to position text in PDF files. For the most part there never seems to be a problem, but a choice few people are seeing massive problems with this.
One particular client loads the program, and then loads a PDF document into it. Once the program has loaded when the user clicks he either doesn't get a custom cursor or the signiture blank that is to show up is above the frame that is to surround the blank.
The user is using Windows XP on a laptop and the software re-renders the cursor and box every time. There is a signiture tablet that the user buys to connect to this software, and the user also has expressed problems with the Tablet not staying connected.
I can provide pictures of the changes and code if anyone would like to tackle this?
View 8 Replies
Jul 25, 2011
Is it possible to add a icon to a certain data type that appears in a file dialog For example for a .html would be a icon of the World.Is this would show up in a open dialog?
View 1 Replies
Feb 6, 2010
I want to use icon files that reside outside of Excel on my Excel toolbars for macro buttons I have created (I don't want to use the customizing function within Excel, but rather, icons that have already been created). In some prior life, I have done this and have some neat-looking icons on the Excel that resides on my desktop. I don't know how I did it, but I know it's doable!
Alternatively, if someone could tell me how to copy over the customized Excel setup, that would work too. I tried copying over my "Book 1" file, but got a message about macro security and digital certificates.
View 2 Replies
Mar 3, 2012
I Want to develop a software like Yed.i just don know where to start.how we can create a workspace where i can drag and drop icons and create connection etc etc.
View 6 Replies
Jun 21, 2010
I want to create a window in a different shape. Not rectangular or eclipse but lets say a window look like a panda.!!!
View 1 Replies
Apr 19, 2010
How do I create a round (or any other shape) button?
View 9 Replies
Jan 8, 2012
I am working on the Visual studio 2010. want to create a dll which contains icons just like shell32.dll. Can anyone guide me what I need to do.
Purpose : I just want my fav icons bind with one dll and keep in my root drive and customize me all folder icons and I just need it ot contain Dll thats it.I am not sure what detail is need so adding the picture of shell32.dll.
View 1 Replies
Jan 15, 2011
i want to create resource dll in Vb.net mean like SHELL32.Dll.i want to store my icons and pngs for my custom file extensions.
View 2 Replies
Mar 23, 2011
I am using Rack-mounted Equipment (US units).VSS as stencil. I need to Connect a server on Rack.
View 1 Replies
Jun 8, 2011
I need to create an on-screen shape (circle) that has a fill color, which will blink every X seconds (go from fill color, to white, back to fill color). This is trivial to do...BUT... i want to do it in my own class, so that I can instantiate it numerous times passing it unique coordinates for each instantiation.
How do I do it? Can a class have its own "timer control" in it independent from the form? How would I draw a shape from a class?
View 2 Replies
Feb 6, 2009
This is what I would like to achieve:To create a custom messagebox, with varying number of buttons with custom .Text descriptions, and other features. I intended to have a property array that would be redim-ed and have values (.Text values) set by the calling class:
[code]...
View 7 Replies
Dec 29, 2011
how to specify a custom icon for display in the toolbox window when you create your own custom control? Something other than the dreaded "gearbox" icon.
View 2 Replies
May 13, 2012
I need to create high quality icons for my current project in vb.net
This is my code so far,
Private Sub CreateIcon(ByVal bitmapName As String)
Try
Dim fi As New System.IO.FileInfo(bitmapName)
[Code].....
But the problem is it only gives me a very low quality icon at the end. how to make a higher quality image?
View 1 Replies
Jul 8, 2010
I've always had to use a program that does this stuff for me, but I'd like to just make my own program that does this. I've already got the individual bitmap images of the 3 sizes (16x16, 32x32 and 48x48) for the icon file and I usually find use some shareware program to create the icon file from the multiple bitmap images for me but I'm wondering if it's possible in .Net to create an icon file (*.ico) that contains multiple physical icons in it.
View 12 Replies
Dec 19, 2010
know how to create a custom file association ( a custom extension ) in VB .Net and how to open it on the application
View 1 Replies
Feb 13, 2011
TortoiseSVN and Dropbox both have Windows shell extensions that make file icons within Windows Explorer show a small icon beside the main one, showing the file's status - has it been synced, etc How can I make my application show icons beside files like that using the Windows API? Or is there some file attribute to do that?
View 1 Replies
Jul 21, 2006
With VB.net, I'm coding a simple application to get more used to the new .Net format.
I'd like to save all the information to a 'new' database file. how to create a database on the fly, once that is done i'll be able to connect to it no problem, but actually creating the file is proving difficult to work/find out.
Also, with vb.net and the newly created custom file, how can it be made to automatically open that information with the program?
Is there a method in installation to associate the file type with the new program? How can i check when the program loads if a database file has been 'double-clicked' (rather than just running from the .exe of the program) and proceed to load the data?
EDIT1 - Extra InfoThe windows application has many different fields and content etc, then i need to save that to a file that could later be loaded by 'double clicking'. I assumed the easiest way would be to create a mini-database for each unique file
View 3 Replies
Feb 7, 2009
I am not a new coder, but i am not a know-it-all. I have been watching some of those NVidia fluid videos, and got jealous. I thought "Why can't i do it?" I'm not good enough for OpenGL or some other 3d engine, but i thought i would try it in 2d.
View 4 Replies
Jan 31, 2011
I want to create a custom class that has inside an array of another custom class (see my code below) but when the programm runs is crashes. Why? What is the right expression???? Plz help I'm a newbie in VB.net.....
Public Class ctrarray
Public nameclass As String
Public ctrlindex(glvar_spaces) As ctrlindexclass
End Class
[code]....
View 6 Replies
Jan 24, 2010
I need two seperate lists, which every item is Integer, String, Bitmap - and one which every item is Integer, String String. However I don't know how to do this, or even where to look - I've googled for custom objects and custom object lists. What I'm trying to do is this.Custom Object1 is Integer, String, Bitmap Custom Object2 is Integer, String, String
In one thread I'll be adding items to List1(Of Object1), and processing them, and adding the results to List2(Of Object2), however I need to be able from other threads to look at the list and say only give me the items where Integer = (my thread ID), is this possible? Any help, or even links to information that would be relevant to this request would be helpful?
View 2 Replies
Jan 24, 2011
How can I make a program that holds a dll(Ex: when i press the extract button it extracts it to the specified path)?Well, If it is not worth it, it is not fun - you say programmers are boring but i say they are worth it.
View 5 Replies
Dec 8, 2011
Is there any way to have an array that holds other arrays in VB? So you could call it like Array1(Array2(0))
View 2 Replies
Mar 20, 2010
I would like to make a image in the form representing the icon and a label below it to represent name but is there a easy way to do this.
View 2 Replies
Apr 23, 2011
exactly how much memory does a System.Func holds?Is there any difference if the System.Func is 1 line or 1000 lines?
View 4 Replies