How Simulate Imagelist.Overlay()?
Dec 4, 2009Is a way to get the same in VB.net?I've tryed with DrawImage but it doesn't work.
View 1 RepliesIs a way to get the same in VB.net?I've tryed with DrawImage but it doesn't work.
View 1 RepliesI have a picturebox in a Windows VB.NET form (not web based). I will be placing images into it from an image control. (Not a problem) I need to paint graphically a tiny solid circle (a colored circle) in a location (varies) on top of this picturebox. I am not finding how to do this in your indexes. I would some instruction on how to do this.
View 1 RepliesI have an instance where I have a logo image as part of some artwork..If a user uploads a new logo I have a form field which is larger than the default logo.I then use that form field to position the new image.
The problem is I need to set the background colour of that form field to white so that it covers the old logo in the event that the new image is smaller than the old logo..
what I have done is:foreach (var imageField in imageReplacements)
{
fields.SetFieldProperty(imageField.Key, "bgcolor", iTextSharp.text.Color.WHITE, null);
fields.RegenerateField(imageField.Key);
PdfContentByte overContent = stamper.GetOverContent(imageField.Value.PageNumber);
float[] logoArea = fields.GetFieldPositions(imageField.Key);
[Code]...
The problem with this is that the background colour of the field is set to white and the image then doesn't appear.. i remove the SetFieldProperty and RegenerateField commands and the image replacement works fine.is there a way to set a stacking order on layers?
I have a form with some text boxes bound to a dataset using the binding source component I'd like to change one of the unbound fields in the current record programmatically before posting any changes from the bound controls
View 13 RepliesI have connected a serial tilt sensor to the PC,The sensor returns angle of tilt ,i need to represent the angle of tilt pictorially,When i move sensor the corresponding movement should be represented in a graph (Like a clock minute hand)For this i started with Picture box with back ground image,But when i draw the line according to tilt ,the line is not getting displayed on top of Picturebox,
View 5 RepliesI need to overlay the word 'VOID' over a textbox but in a semi transparent way so the text in the textbox underneath 'VOID' can still be seen.
I have tried using various controls with no luck and there is no paint event for the textbox.
I have a VB.Net PictureBox floorPlanImage on a form form1.
I load a picture into the picturebox[code]....
How can I modify my onclick function to correctly overlay the rectangle over my PictureBox?
I'm working on a UserControl which has two PictureBoxes.One has the picture I want to display to the user and the other has a picture that I use as an overlay.The overlay PictureBox uses a PNG image with a transparent background. However, every time I run the UserControl, the overlay does not display the transparent parts of the PNG image as transparent (It appears white).
View 4 RepliesWhen the dialog pops up, the screen dims down almost as if they overlapped the screen with a transparent black layer of some sort. This is easily accomplish able by creating a black form and having its opacity set to half and starting it maximized-which I'm already doing. The problem with this though is I need to do this within a form, so using a panel or anything is out of the questions since transparency really grabs the background image and not the actual controls underneath. Plus I feel if adding a form to another forms controls depletes it's ability to use it's opacity property.The form I need this in is my cash register. It is full screen but if my menu auto hides it still resizes. It has two parts, the order(panel to the left) and the payments(panel to the right). As you could imagine I want the payments portion blacked out until the order is capable of accepting payments(the payment due is greater than 0). Or I'm thinking it fallows the mouse, you mouse over the payments and the orders panel blacks out, and vice verse.
Plus I have tried googling this but no one seems to have the answer on other forums.. Everyone gets confused and the thread ends short with no solution. Apparently though experts-exchange has the answer, but wants me to pay... so no. Wish their site would stop showing up in my google results.But did have an idea of what I could do. My best guess was I could take a snap shot of just the panel I want to black out. Set it as the background image for that panel THEN use my overlay panel(back color sent to black) overlapping the appropriate section with it's transparency set to half.. But still I'm not sure how to take a snap shot of just a particular.control..
Using Visual Studio 2008 and VB.NET ...
I've created a form (OpaqueForm), which is an intermediary form between other forms which I will open with ShowDialog. The idea is that when I want to show a form using .ShowDialog, this OpaqueForm, with an opacity other than 100%, sits in between the main form and the dialog form, effectively "greying out" the underlying main form.
The OpaqueForm has the FormBorderStyle property set to None, and accepts in the constructor a Form object on which it invokes .ShowDialog. The effect works fine, but there is one caveat. The task bar is also covered by the OpaqueForm; I am assuming because it has a FormBorderStyle of None and a WindowState of Maximized.
I don't want the OpaqueForm to cover the Task Bar, because it would be impolite to have my modal form lock out a user from switching between tasks. How could I go about preventing OpaqueForm from covering the Task Bar, too, while still using a FormBorderStyle of None?
I have a wonderful program which needs to be overlay-ed over my full screen directX game, the only problem is I can't seem to find any way of doing this with .net coding
things that don't work are, these are not overlays and will not work over a full screen directX game. I posted this so hopefully no one gives me that answer by mistake.
HTML
timer1.interval = 1
if timer1.enabled = true then
me.topmost = true
end if
the only thing I can seem to find is this example and source C# overlay maker however it's pretty old and it's for C# but maybe someone could convert it somehow to .net or something, I really need to find a way to do the overlaying tho been trying for months now...
creating an interactive overlay over a game (such as the way xfire lets you chat with people ingame).
View 1 RepliesI have a bit of an issue here. I made a "Colour picker" dialog in my program with which you can pick the colour at the mouse. It is a simple topmost form with an OnPaint handler used to draw a coloured border around the cursor:
It uses a transparency key to make the non-drawn parts of the form transparent.
It uses the following code to prevent the mouse from clicking through the screen:
Window.FromControl(Me).ExStyle(Window.ExStyles.Layered) = True
Window.FromControl(Me).ExStyle(Window.ExStyles.Transparent) = False
It sets Layered to True and Transparent to False. This works in Windows 7, but on a XP machine it fails. When moving the mouse the event does not go to the forms' event handler and you can just click through. For a screen region selector I simply made a screenshot, but I want the Colour Picker to remain updated. (just in case you want to get the colour of an animated control)
How can I get this to work on a Windows XP machine?
Are there any datagridview controls from a 3rd party component companies, such as Telerik, that have a feature for merging cells or overlaying cells into one?
View 2 Repliesmake a openGL overlay so for an examplei play a game and when i click shift + tab then the game will fade and my application will be seen but without minimizing the game
View 3 RepliesI'm about to lose my mind. I'm trying to make a touchscreen overlay for our crappy POS software at work. It is a simple DOS program. I had built an autohotkey script and gui but I just didn't like the look and lack of advanced menus. All I want is to replicate the CONTROLSEND ability of autohotkey. I tried the autohotkey.dll but I have no idea how to add it to my project. I was hoping VB2010 had something built in that can send a string of keystrokes to the DOS program underneath. I have searched all sorts of forum posts for a SIMPLE snippet of code. Seems anyone seeking this is out for nefarious purposes though, and little help is offered. If you worry about this please PM me so I can prove to you my good intentions.
Let me repeat, all I want is a simple snippet of code that when a button is pushed, a specific string (characters and function keys) is sent to a specific out of focus dos box.
I working on a distributed mediaplayer that uses the windows media player component.Now the customer asks me if its possible to have their logo overlayed on the media played instead of them having to render every movie with the logotype.I have google it and it seems like I can use a directshow filter to do this, but I havent found any good information on how to do it yet.If anyone here know If I can do this programatically, with a plugin, filter or some other way it would be nice to know. Its fine if its a plugin that costs money too. What I want is to be able to use a jpg/png as watermark/overlay to the running movie in Windows Media Player 11
View 1 RepliesI need to overlay the text, a movie or bitmap over a video.It would be possible to use VMR9 filters, but at playing of a wide video, for limits of a black square, it is impossible to overlay in out of video square range.
View 5 RepliesI need to overlay a small bar along the top of the screen over a fullscreen DirectX game. I have searched for a while but I have not found any code examples for VB.NET 2008 (I've never used any previous version). How can I do this? Would this involve learning DirectX programming?
View 2 Replieshow to get name of image from imagelist. I can't find any 'name' property in imagelist1.images.
View 4 Replieshow does imagelist work
View 11 RepliesIs it possible to add a contextmenustrip to an imagelist item.
View 1 RepliesI have got an imagelist with many images, many of which have a critical name which can be changed in the desinger, however, since Im NOT using this imagelist in another control (e.g. tabcontrol) I am not able to use imagekey. Therefore, how am I able to get the name of an image in my imagelist?
View 1 RepliesDoes anybody else think that it is just plain STUPID that you can add images to the imagelist at design time but you can't add a key?? What kind of brainless moron designed that?Now, everytime I change (add, delete, etc.) an image in the imagelist, I have to modify my code that accesses any image after the changed image(s). What REALLY boggles my mind is that it is still this way several years later. If I could at least access the image's name from code, then I could get by. But, NOOOOOO! That also would make too much sense
View 8 RepliesWhy these two different ways of assigning a background image work differently?
When I load the image into an ImageList, and then reference the ImagaList.Images collection to set the background Image for a control, it looks llike crap. The smooth blend I had set up is stratified.
When I load the image directly from the Resource, it looks great.
I assume this has something to do with the bit depth of the image once it is stored in the Image list collection? Or some other conversion issue. However, I can't find a way to adjust these properties on the image list (They are read only).
Here is the way that looks like crap:
code;
Imagelist1.image.add("DSCF00082.jpg")
I tried using the above code to add an image to an IMAGELIST but it is to no success.
I want to know if there is a way to add an image to an image list via code as opposed to using the collection.
How do i change the size of Imagelist images at runtime?
ImageList1.ImageSize = New Size(18, 18)
But it isnt working..
How can I copy all the images in one ImageList to another ImageList?
View 15 RepliesI use this line of code to add images to a imagelist, and link it to listview, but it is very very slow. Up to 40 seconds to add 100 images.
Private Sub create()
Dim img As System.Drawing.Image
Dim imagepatha As String
[Code].....
I'm in the process of replacing ActiveX ToolBar / ImageListwith the Toolbar / ImageList provided with the VB .Net 2003. The Bitmaps that were used originally to populate the imagelist are nowhere to be found.Is there a way to extract the bitmaps that are in the old imagelist back out to a .bmp file that can be used or to the new ImageList?Is there a way to extract bitmaps that have been placed in a PictureBox?
View 2 Replies