Wrote a custom stand alone engineering program to do some very basic repetative design calculations. This program also does pricing by taking each design element and asigning pricing to it based on the parameters given. All the individual elements are added together to get a unit cost. (All this works well without any problems or issues)
[Code]...
My eventual goal once I can prove that my changes work is to control the pricing by using the YEAR so that the program increases the cost by a set multiplier based on the actual YEAR the system is set for. ie: 2011
10% increase, 2012 5% increase, 2013 5% increase, etc.
I have fields with " monday, tuesday,wed, thu, fri, sat and sun". I am trying to add the hours of each day on a separte field " week total hours "..Everything works fine but say if i make any changes again to "monday hours" it does not take effect on " tot hours "
eg.. mon 2hrs, tues 1 hrs, wed 1 hrs, thur 0, fri o, sat 0 and sun 0, then the total hours is 2+1+1 = 4 and it displays well ....but if i change ( mon= 1 ) then it should be 1+1+1 = 3 but it remains 4
I have to create a slot machine. i have 3 picture boxes and i need to know how the program can randomly select from the 7 pictures i have but still create a short delay where there is the effect of spinning. my teacher said that it would be easy to assign each picture a number but i didnt get what he means.
When I use a control button on a switchboard to open my form which has subforms, the subforms open in datasheet view. When I open the form directly the subforms open in single form/continuous form view - which is what I want. Is there something I can do to the event procedure to make the subforms open properly?
I was recently asked a multiple choice question: According to the sample code, which one of the following statements has NO effect and should be moved to another line to accomplish its purpose?
dim tb as New TextBox g_row as Integer = 0 tb.Text = CType(g_row, String)
I am not an advanced VB programmer as I create applications for fun at home, so am hoping someone can help me with this. I would like to add a mouse over glow type effect to a control (doing this on a picturebox at the moment). I did this very simplistically by creating a user control and having a picturebox within a picturebox, one of which is not visible. On the mouse over, I just make it visible and it does look cool as it has rounded edges and all that. But I assume this is not a good technique and really limits you. I would like to do it so I can define the color, glow size, etc... kind of like the glow effect in Flex.
I have a few routines that they loop forever if they are not interrupted.Selecting any of them sets the "seq" to True.This would leave them in the tight loop to do whatever they do.Its different patterns of LED flashing.I use another button to stop and that makes the "seq" go False.Interesting that I need to click the stop twice to take effect.I can click the stop now and the 2nd click could be after a long time but there is always the 2nd click on Stop that takes effect.
I use to remove wb1 at some point after work Is done
WebBrowser1.Dispose() and Dim WebBrowser1 As New WebBrowser Controls.Add(WebBrowser1) WebBrowser1.BringToFront()
[code]....
p.s the reason I'm doing it because even if you delete cookies, index.dat will have cookies saved for the current wb1 and won't be deleted only if you reopen the app.
I am try to control which tray to print to from a VB form. (VS2008)The target printer is HP laserjet 4200 with a 4 tray TowerTray added. The test is below just cycles through the 16 options, but they all go the botton tray on the printer. The default tray is the top tray on the printer.Imports Word = Microsoft.Office.Interop.WordImports System.Drawing.Printing
Public Class PrintTest1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click testprint() End Sub Private Sub testprint() Dim oWord As Word.Application Dim oDoc As Word.Document = Nothing
i am making a marriage bureau desktop application software and i have set 12 pictureboxes in a groupbox...i have set timer to change picturebox in groupbox but this does not feels impressive so now i am trying to give fade effect to these pictureboxes i tried a lot but not succeeded...
i came up with the following code to produce a "GROWL" like effect that you see on MAC's and some jquery websites. (example of something like this can be found HERE. The code i am using works great and displays the message(s) just fine. However, the problem i am having a hard time trying to get working is how to display the current message ABOVE each previous message thats still on screen and having a timer for EACH message that pops up. Currently it closes all the message boxes at the same time.
The code is this:
Public Class Growl Private _notifications As New Dictionary(Of Integer, msgWindow) Private _count As Integer = 0
[code].....
Right now it will display the newest post BELOW the old post. What do i need to change in order for it to display the newest one top and keep working its way down the list as other message boxes appear?
I would like to know if it possible to create an effect of magnifying glass for the picturebox, so I could see the other controls behind the picturebox which make them looks like a glass?
I'm attempting to insert rows into an SQLCE database, and it's returning that 1 row is affected, there's no exception, and no syntax error in the query as far as I can see - but it's having no effect, when I look in the table from the Database Explorer.
Here's the code, though it probably doesn't make a difference:
Using conn As New SqlCeConnection(My.Settings.DietSafetyCheckerReportsConnectionString) conn.Open() Using cmd As SqlCeCommand = conn.CreateCommand()
My ToolStripButtons look flat. They are highlighted when pressed, but they don't look like buttons do. I want them to look like they're not pressed in and then press in when click with the mouse. How can I get this effect?
I've made an Aero-style form header (see signature) and I wanted to speed it up, so I used LockBits, and it had a different effect. These two methods should do the same thing, right? Well, it doesn't. Image 1 is before LockBits, Image 2 is after. Using LockBits gives a streaking effect that I don't like.[code]
is there a way to have that aero glass effect using XP Pro when creating forms and please give me walk thru on this. I want to have that look on all my forms.
Can anyone explain why the effect of a LinearGradientBrush does not always seem symmetrical?To see what I mean with the following code where point1 is halfway down the left side of the form,point2 is halfway down the right hand side.Using the colors Blue and Green the transition appears mainly nearer 3 quarters of the way across the FORM for the BLUE changing to GREEN.
how to add glass effect to a win forms in vb.net or c# I looked a lot of examples like using e.graphics to make a square with the win form dimension and others are done really good without any e.graphics trick. But my problem is that I didn't look any example that uses windows controls like buttons, labels, dropdowns, etc on a glass effect win form.
I am trying to watermark an Image and works perfect and now I need to have my customers much more convinient so that I am planning to add a feasibility to the image watermarker.I want to have an adorner control or somethng like the rubberband effect which has 4 0r 6 corners so that they can enlarge the text with that.I have seen one of the articles in codeproject which is implemented with WPF as shown below.But I need to implement with my normal ASP.Net application.So how do I start with it?
the goofiest bloor function that exists in vb.net simillar to saying hello world!No blur hardness no sharp edges or any other settings everything should be default the easiest way to do it.
I am currently painting a light blue, partly transparent overlay over owner-drawn objects to indicate certain state. It's OK but I thought that it would be even nicer if I could at some sort of glass effect to further establish the idea that the particular object has "something" overlaid over the top of it.
I thought that some glass streaks, for example, in addition to the blue transparency would lend a nice effect.I've Googled around for GDI+ (and others) algorithms to do simple things painting like this but have come up empty. I prefer .NET but can figure out the painting from pseudo-code on up.
Sorry, shoul've also specified that I need to target WinXP and using .NET version 2.0 - So unable to use WPF or Vista/Win7 goodies.
I've been rattling my mind trying to find an answer to this all morning but finally decided to ask here. So, here's the problem, I'm trying to make a DLL which allows the user to fade in/out any form they want. Here's my current (Broken) code.[code]The error message i get is " 'Refresh' is not a member of 'ClassLibrary1.Fader' " and " 'Opacity' is not a member of 'ClassLibrary1.Fader' "
i have changed some of the properties of the form & it's controls but while runtime same is taking effect !
i am changing the form's default location....... "" ....... "".. controls ( Datagridview controls) some column properties but nothing is taking in to effect, but in design time every thing is normal
NOTE:- no code is acting upon this controls IN FORM load or any other event, so i can't suspect that thing
I am new to ado.net and I am trying to learn capabilities as much as get this particular task done.Let me set the stage for my question.My goal is to load up a dataset, write out an XML, transfer the file to another machine, read the XML back into a data set, load up the local tables, find missing records from the local database and add them.These tables are for employees. There is the 'Employee' master, "Employee Job" the employee job code, and "Employee Hours", the employee time punches.I thought I could treat a dataset as a database and do SQL queries against it.For example to find missing Employee , my thought was to do a outer join on employeeID and look for null in the second table.Something like:
based on the code that jmcilhinney made this show all images found in the My Pictures Folder..Now, can someone give code on how could this applied with fade effect when changing the images from one to another..
Public Class Form1 Private imageFiles As String() = IO.Directory.GetFiles(My.Computer.FileSystem.SpecialDirectories.MyPictures)