Changing The Image Opacity?
Feb 10, 2011[Code]...
When I click the button nothing happens. What am I doing wrong here ?
[Code]...
When I click the button nothing happens. What am I doing wrong here ?
I have a form with a PNG image as its background image. How can I make the form's opacity match the opacity at different parts of the image? (for example, I have a drop shadow that fades from black to transparent. How do I acheive this effect on a form?)
View 9 RepliesWhen I set the opacity of a form to 50%, the opacity of a label on that form is also set to 50%, but I do not want so, is there anyway to make a 100%-opacity-label with 50%-opacity-LabelBackground on a 50%-opacity-form?
View 6 RepliesIs there an efficient method of changing the opacity of a panel and it's controls?
OR
Is there an efficient method of changing the opacity of a MDI child?
I want to make it so when someone places the mouse cursor inside the form the opacity is 100% but when it leaves then it drops to 75%. This is my code:
Private Sub Form1_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.MouseEnter
Me.Opacity = 100%
End Sub
Private Sub Form1_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.MouseLeave
Me.Opacity = 75%
End Sub
The forms default value is 75% and it works fine when I mouse over. However when the mouse leaves the opacity doesn't drop. What am I doing wrong?
I need to be able to change my form's opacity without changing the opacity of the components.
I really only need to do this on one form in my entire app, so this is getting a little frustrating
I've been researching for about half an hour now, trying to figure out if it's possible, but I'm coming up short.
I've seen some WPF examples and if it really comes to that, I'm more than willing to change the app from a WinForms app to a WPF app. I've made a WPF app before, so I'm familiar with it. But, I don't want to have to remake my entire project for this one form.
On that note, does anyone know if I can make a WPF form how I need it and just import it into a WinForm app? It doesn't seem possible, but it's better to ask than not. I'll look into this more.
I would like to know if I can fade-in a image I would like to change it's opacity using a timer or so I want this for a splash screen at my application load time inspiration: those that know KDE (K Desktop Environment - Linux) splash at system logon
View 15 RepliesHow can I set the Opasity of a form (not form1) down to 50% but leaving the Buttons and TextBoxes at 100% Opacity?
View 9 Replieshow can i change opacity of a background image on a form with a trackbar.
View 1 RepliesI'm creating a Win Form app in VB Express 10, which includes an animation. While the animation is running, it would be helpful to fade (maybe 50% opacity) a tool strip menu item's image so that it would not distract from the animation. I've tried to change the item's transparency in the property drop down, with no effect. I think I would need a function to add to the animation start button to fade the tool strip menu item's image to 50%. Then if the animation stops, or the image is clicked, a function to re-establish 100% opacity.
View 2 RepliesFrom the visual code requests as you can guess i think a good GUI is very important in an App. What i want is to lower the opacity of my textbox so u can see the SWF in the background, is this possible?
View 3 RepliesHow can you make a form invisible...but leave the picture box visible?
[Code]...
How to increase a forms opacity without increasing the opacity of the controls in the form?
View 1 RepliesI want to change my controls opacity .I know how can i change the form opacity but I want to change the controls opacity without change the the form opacity , such as : "I want to set my form opacity = %100 and the button opacity = %50 " or "I want to set my form opacity = %50 and the button opacity = %100 " I'm using visual studio 2005 .net .I want to do that in basic language
View 3 RepliesI use some code to successfully resize and save images - but I want to save the image to 800x800 px size on a canvas of 900x900px so it has a white border type thing around it.
View 8 Repliesi've got buttons i'd like to highlight on mouseover. how does one change the image associated with a button?
i'd like to use the mouse enter and mouse leave events in order to change appearance of the button when the mouse is over it.
my environment: windows xp pro (sp3), visual studio 2008 pro, (sp1, sdk 1.1)
I am attempting to change an image at run time but continue to get an error stating, "File not found, Exception was unhandled. I am assuming the error is with the file path but I have not been able to find a working variation.
Below is the code I believe would be correct but I continue to get the error. If working properly, the program would change the text and picture based on user input.
Private Sub btnInfo_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnInfo.Click
Dim strFriendName As String
[Code]......
How can I get my vb program to switch the background image to several pictures automatically using a timer?
View 1 Repliesi have a program i've made a while, and one of the users wants to be able to load his own images to the background instead of the plain grey that is there now. i've searched and searched, and basically can get this working
BackgroundImage = Image.FromFile("C:UsersMeFileName.png")
i just slapped that onto a button just to get it to work as i was experimenting. but that only works for a file of that name, on my computer, in that folder. what i'm looking to do is get it so a user can browse his own directories for images and upload them as the background on the form. and be able to save the settings as well. but so far i have only seen different ways to load preset images that you can load. if it's even possible? i'd assume that you'd use the openfiledialog command, but i'm not that well versed in vb as of yet.
Although my code compiles, it does not result in a change of the background picture of button1 here is my current code. Is it possible that my condition contains some error? or is the command itself wrong? [code]
View 1 RepliesI am trying to make a 'puppet' change into a ball when I press e.g. the right arrow key. I used getasynckeystate(keys.right) to check for the key in a timer. The moving is working well but I don't have an idea how I can make it change in a picture of the 'puppet' changing which then changes into a ball. Does someone know how to do this?
View 3 RepliesI'm trying to process the RGB values of an image using ColorMatrix.I created a trackbar for the R value for example,with minimum -100,maximum 100,and value=0.The first time I use the Rtrackbar it works properly,but when the trackbar value is 0 again the image is not the same as before any more.[code]
View 7 Repliesis there a way to change the background image of a form by just shaking the form? i'm using vb 2010.
View 4 Repliesi am trying to create an application like a media player....Say i got an option which changes the background image of the form,like skin or something!now i want to change the mouse events when that background image is active on the form... lemme give u an example of a code...
Private Sub FireToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FireToolStripMenuItem.Click
Me.BackgroundImage = My.Resources.Fire
TrackBar1.BackColor = Color.Yellow
End Sub
i have been working with a friend on a tower defence game in visual basic 2010, we have made 32X32 picture boxes to act as tiles and we want it so if you press a button then a picture box it will build a tower in that picture box.we need this to be done within a single sub though cause there are about 500 picture boxes and its would be very impractical to make a mouse click sub for each of them. this is the code for the sub i have now:
Private Sub TileClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox99.MouseClick, PictureBox98.MouseClick, PictureBox97.MouseClick, PictureBox96.MouseClick, PictureBox95.MouseClick, PictureBox94.MouseClick, PictureBox93.MouseClick, PictureBox92.MouseClick, PictureBox91.MouseClick, PictureBox90.MouseClick, PictureBox9.MouseClick,
[code].....
how do i change the picture inside a picture box.I wanna make 5 dice that change when you press roll.. the number generator is easy i just wanna use graphics rather than a label to display the numbers.
View 1 Repliesanyone know how to do this, but wit a browse for folder aspect..like i open up my browse for folder window, select the folder i want and it displays the .png file in picturebox..i'm trying to figure it out..here is what i have so far..i have it setup where i'm opening up a folder and loading certain files in my checkedboxlist..but i also want a .png file that is in the subfolders(the only .png file in the entire directory) to be displayed in the picturebox..but the folder is going to be changed depending on which folder is selected..so it can't be a set directory or path..basically has to change like the checkedboxlist.
[Code]...
I started computing at college about a month ago and have been learning to program in Visual Basic 2008 Express. I decided one weekend that I would try and make a pretty simple game that I may be able to use for my coursework at some point (I know Visual Basic isn't everyone's first choice for games programming but I thought I could try), I have learn a great deal from doing this but have encountered a rather odd bug in the program.
[Code]...
I got a Combobox with some items (item1-item7) to select and 54ish Buttons(sButton1-sButton54). Also an array(53) called Buttons. The array is filled with the items to select, like: Buttons(0) = "item 1, item 2" Everytime another item in the Combobox is selected, I'd like only some of the Buttons to change their Image. Therefore I got the array. If Item 1 is selected and Buttons(0) contains the item1 I'd like to change the Button1's image.edit: It works with changing the image of every Button:
sButton1.Image = My.Resources.image1
But I'd prefer to change all in one go (Loop) instead.
sButton(0) = "item1, item2, item3"
sButton(1) = "item2, item3"
sButton(2) = "item1, item3"
[code]....
Alright, say I've made an animation in photoshop and exported it as a JPEG. I want to know if it's possible to change which frame of the animation the image will show. An example is if I made an image with 10 layers, and I want the 5th layer to show in a picturebox, how can I achieve this?
View 6 Replies