Interface And Graphics :: Gradient To MDI Form Causes Flicker?
Feb 5, 2009
I am using a MDI form and child forms. Now I don't like the standard back colour of mdi form so I got code on the net which paints a gradient colour to the mdi. So far it is working okay.Now the problem is when I load a child form or close it or do a similar activity then it causes flicker in the mdi background. This gets pretty annoying at times and you see the background flicker.
View 2 Replies
ADVERTISEMENT
Dec 1, 2008
I'm having trouble with a football program that I'm writing. I'm finding that there is a lot of flicker coming from the program having to redrawn 36 (Australian football) small circles with numbers in them about 10 times per second (or even more) as the players move.I'm just using basic e.graphics. fillellipse.code in the Paint section of the form. I then use me.invalidate on the timer's tick routine.I haven't touched this graphical stuff for a while and I vaguely remember there being some ways to help this. There are also things like the ground which I'd like to not have redrawn because they don't have to as they don't move. I remember that you can do this but I don't remember how.
View 2 Replies
Nov 13, 2008
This is VB 2008, under Vista. I can't seem to change the background color of a button without the gradient disappearing.Strangely enough, you can even set the background color to itself and the gradient disappears. How do you keep the gradient but change the color?
Here's an example:
Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.BackColor = Button1.BackColor ' This should do nothing!
[code]....
View 6 Replies
Apr 8, 2012
I look at hundreds of VB.Net user interfaces through the internet and they all look horribly unsophisticated from a graphics point-of-view.Compare this to the backgrounds seen on tv broadcast that use blurred line gradients to create graphics that have some interesting appeal and draw the eye to them (at least my eye).I've attached some sample screenshot grabs below that I have annotated with magenta rects showing the interesting sections.What types of graphics routines can produce these types of graphic effects? The options that I have identified so far:
1.) More carefully done line smearing (see below..)
2.) Line drawing with a VB.Net version of the "Bresenham's line drawing algorithm"(as passel mentions in this post) (that might allow a specialized set anti-aliasing routines - like a wu algorithm).
3.) Line drawing with some Gaussian blurring as seen in the attachment to this post from my Perlin Noise thread.
4.) Possibly a gradient shaped by a vector GraphicsPath?
5.) Some other VB.Net gradient generating method?Possible the use of multiple passes with an alphafade brush?
6.) Last resort: manipulating the colors of individual pixels with lockbits marshal copying (highly undesirable).
I've done a fairly complete survey of whats out there on the internet for VB.Net samples for drawing lines to see if any of them combined line drawing with gradient effects and found very little.I played around with some code I found that did line drawing through mouse dragging and managed to achieve what I call the "line smearing" effect.I've attached my Line_Smearing_Demo below..As yet I have been unable to combine lines with shaped bezier curves,to produce Guilloche/Lissajous/complex Spirograph patterns like those seen on this page.
View 19 Replies
Nov 10, 2010
When I add or modify controls on the form the graphics are redrawn many times over.The more graphics that are drawn the slower the machine gets.
View 1 Replies
Jun 21, 2010
I'm constructing a Management system. Now, I have a problem with the interface design.
I wish to use ForumsAccount's tab control and JuggaloBrotha's gradient form in my application (both can be found in CodeBank).
But the problem is, I'm confused in the design ! Which one shall I use for the main form ? an MDI form or a normal form ?
Details about the Mgmt. System app: it will be used to manipulate everything for a small firm, like adding customers, employees, payments, etc.. Everything is managed using the app and saved to the db.
View 11 Replies
Oct 19, 2008
I'm working on a design project where I have to use a Graphical User Interface that contains a drag and drop form. It consists of having a window dropped on a wall. Both of them are images to scale. I would like to know what kind of code I would have to use to show the x and y coordinates of one of the points of my window when dragged so when I drop it, I'm dropping in it on the desired coordinate of the wall.
View 2 Replies
May 23, 2010
I have a character that I made in graphics and when an enemy attacks the character, I want it to flicker, how would I do this?
View 2 Replies
Mar 24, 2011
As Autodesk is going to discontinue VBA for their Inventor product in the near future I have been looking at other ways to run VB.NET in Inventor. To date it doesn't look like VSTA will be the replacement. Automation from an External VB.NET app is certainly possible, but leaves something to be desired for speed and integration. Compiled Add Ins are the Cadillac of choice but can be a royal pain to debug and develop. Autodesk now provides a lightweight VB.NET script interface called iLogic. It's main purpose is to allow extreme customization of Solid Modeling parts. The code actually resides inside the Part Model file.
[Code]...
View 7 Replies
Aug 12, 2009
How can I add a scrollbar to my form I tried the auto scrollbar option but is not working ??
How can I validate the user inpute inside a textbox to check that he type the desired word?? for Example validate if the user typed the word ( Bob)?
View 2 Replies
Aug 20, 2009
how to maximize my form window and for example my list view, tool strip container etc etc, maximize with the form window. I would just create the form to my monitor 1440x900 but this will be used on several computers all with different monitor size. What I'm looking for is a quick easy way of doing instead of setting each one up separately.
View 1 Replies
Mar 15, 2011
I need to draw a bitmap background with one or more moving bitmaps in the foreground; something like a chessboard where pieces move across it. I use a timer-tick event to redraw the background and then draw the relocated foreground image like the code below. But I get flicker, even though I set the form to use double-buffering. The culprit seems to be redrawing the background to refresh where the foreground images used to be; no flicker if I replace the background DrawImage with a simple Graphics.Clear. I think what I want to do is draw the background, and the foreground bitmap(s), in memory and then render it all. I used to do this with double-buffering, BitBlt, and .Refresh in VB6 but I haven't found the equivalent in VB2010. This must be a pretty common graphics requirement; what's the trick to it?
Dim Gfx As Graphics
Me.SetStyle(ControlStyles.AllPaintingInWmPaint Or ControlStyles.UserPaint Or ControlStyles.OptimizedDoubleBuffer, True)
Dim rectBrd As Rectangle 'use as clipping region for drawing
[Code].....
View 11 Replies
Oct 14, 2009
How would you add a Dynamic Contextmenustrip to your form and how would you add the items to the contextmenustrip. Also when adding the items to the menustrip is it possible to give them names and text dynamically if so how?
View 5 Replies
Jun 22, 2010
know that there is library which can change the theme of the form but i do not
View 1 Replies
Nov 17, 2011
I'm looking for a tool that will allow me to display, and change forms, inside my original form.
View 5 Replies
Jun 29, 2012
I have following code to resize the form at run-time but it does not work. Form size remains same. What could be the possible reason?
frmErrMsg.btnNo_Err.Visible = True
frmErrMsg.btnOK_Err.Text = "Yes"
frmErrMsg.Height = 800
[Code].....
View 2 Replies
Aug 24, 2008
I've got a form with no borders, and I am wondering how a user would be able to move this form around. I would like it to be moved the same way a form would move by left-clicking and holding the top border. I know that's a little vague, so if you need any more info feel free to ask...
View 1 Replies
Mar 4, 2009
Ok, i know the simple media controls to play a video file on the control screen, but is there a way to play the video on the form background?
View 2 Replies
Mar 17, 2010
I have a Visual Studio 2005 VB project that creates a fairly simple form containing three text boxes with corresponding labels. In terms of property settings I have AutoSize set to True, AutoSizeMode set to GrowAndShrink, SizeGripStyle set to Show, and WindowState set to Maximized.
I'd like the user to be able to grow and shrink this form using the resize grip that appears in the bottom right corner. When the application starts, it starts maximized, which is what I want, and it has the typical minimize, restore down, and close buttons in the upper right corner.
I can use restore down to reduce its size, and once that's done I can use the resize grip to make the form larger, but the resize grip will not allow me to make the form smaller. Changing WindowState to Normal doesn't change this behavior.
View 2 Replies
Jul 12, 2011
I've got an app that I want to have an MDI with. It functions fine, but there needs to be a control panel off to the side of it to drive the child documents' creation. I have two problems with this.
First, if I add the control panel to the side of the form, it just overlays the MDI portion of the form and the children will spawn behind it. I can more or less manage the positions of these children, but the problem comes when I want to minimize the children, they minimize behind the control panel and I don't know how to move them. So I need to shrink the area they can move around in. I've read in places that you can use the splitter object, but that never seems to cooperate with me and only wants to move to the extreme left or right of the parent form. How can I reduce the area the children get to interact with? I've tried creating a MDI Panel, but VS has a fit with that.
Second, I've got a datagridview holding the data that will spawn the child forms. This is working well, but even though I've set the rows to be not resizeable, I can still make them grow or shrink during run-time (not programmatically). How do I stop this?
View 2 Replies
May 19, 2012
what I want to do is cancel a MDI child form closing when the 'X' at the top right hand side of the form is clicked.So, I use e.Cancel = True in the MDIchild_FormClosing event.However, the parent will not close if the 'X' button is clicked, and I noticed that the FormClosing event of the child handles 'Me', which I assume is the parent.Changing the handles 'Me' to handles 'nameOfChildForm' only generates an error Error: Handles clause requires a WithEvents variable defined in the containing type or one of its base types
View 2 Replies
Jan 4, 2009
I am trying to put an image selected by the user into the form background. This means that an image from a specified file destination to be set as background.
View 2 Replies
Jun 27, 2009
Im quite new to VB actually and i've run my web application using VB .net. My problem here is to change the standard border color so that it would not look dull and just to make it look custom from other application. How can i change it? ive search all the properties but havent solved it.
[Code]...
View 2 Replies
Nov 18, 2010
i make a Form transparant where i dont want form background. So say like i got a round form and i can transparant the white background of the round even possible?
View 6 Replies
Jun 17, 2009
I've got a question and i think its very simpel but i don't get it.
I've got 1 form that is a MdiContrainer for other forms that i'm opening.
(lets say: the main program)
In the main program, i'm opening a form with a datagrid in it (configuration form). If i click on one of the data cels I'm calling a otherform as a dialog to edit some of the value's from the data cel thats just clicked.
But the problem is, when showing this form as a dialog, with the property startposition: Centerparent it displays it as in the center of the main program and not from the calling form. How can you correct this? Because i'want the dialog in center of the calling screeen.
dialog.parent = me: wont work
see attachment for the program.
View 5 Replies
Jul 24, 2008
I have only recently started using VB.NET after having a little experience in VB6. I am trying hard to force myself into this OOP mindset. I want to know if a certain thing is possible.
I want to be able to call a function in the beginning of my main form's startup sub. The function call would look something like this.
Code:
Private Sub frmMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim Username, Password, NewPassword as String
[Code].....
View 3 Replies
Nov 5, 2008
I have a form that I want to dock and move to just above the task bar on the right side of the screen. How could I do this?
View 3 Replies
Jun 8, 2010
I'm just getting started, and it's as simple as that: I need guidance to draw a rectangle or place a dot or a point on Form1, in VB 2008 Express. I knew how in VB6 -- let's build on that.
View 3 Replies
Oct 7, 2009
i have created a form containing a text box and a button. i would like to know if it is possible to embed this form in the title bar of the current active window that is opened eg: ie,notepad,word this is so that i can enter a word in the text box and use text to speech to say it or highlight a word in the active window and it will be placed in the text box of my form. i can position the form in the top right location but then the form position is stagnant.
View 1 Replies
Aug 22, 2008
I have a main form that hides when i open other forms from it. On the child forms i have a menu strip with file:exit and help:about. When i click on file:exit the form closes and the main form opens. using the following:
[CODE]........................
That all works fine. What ineed is to get the same results when a user clicks on the x in the top right corner.
View 1 Replies