VB2008 Much Slower Than VB6 - Drawing A Small Diagram On The Screen
May 17, 2010
I'm upgrading to VB2008 from VB6 and have noticed that when drawing a small diagram on the screen it is much slower. In VB6 is is drawn 'instantly' in VB2008, 34 lines, 5 arcs and 15 text items are taking 112000,000 ticks to draw- I can see it being drawn line by line. The codes contains the code to draw the diagram and some minor calculations to determine what to draw. If I just draw 4 lines directly it takes 80,000 ticks which looks 'instant'. It looks as if the calculations are slowing it down. Is there some reason for this, is there a box I have not ticked that makes it slow?
View 7 Replies
ADVERTISEMENT
May 13, 2012
I'm trying to draw some kind of circle diagram. Input data are only two integers: "a" (even or odd) and "b" (even). Here is the
HTML Imports System.Drawing.Drawing2D
Public Class Form1
Dim P As New Pen(Brushes.Red, 1)
Dim a As Integer = 24
Dim b As Integer = 2
Dim Angle As Single = b / a * Math.PI
[Code]...
View 2 Replies
May 5, 2011
VB2010: All, I am using a picturebox to show the constellation of GPS satellites, that starts out OK. I have to redraw every now and then, because if a dialog box gets drawn on top of it, the data doesn't refresh after the dialog box is closed. Same with moving the Frame around the screen, I have to redraw the picturebox. (not sure why, but I can live with that) When I first start the program and received data from the receivers and plot the Constellation the refresh/redraw is very quick, (just a flicker) then after about 30 mins or so the refresh seems to redraw the picturebox slower and slower. I can see the individual satellites (fillellipse) redraw.
Also, I have moved the picturebox into a TAB-frame. Even when I switch from on Tab to another, the picturebox will not refresh automatically. I have to do a clear and then replot the information.
View 10 Replies
Nov 11, 2011
if I put controls on form1 like button,textbox....etcwhy called this control fields not object in the class diagram ?
View 7 Replies
Sep 15, 2011
I want to make a small app that has three buttons on screen that when clicked, they act as keyboard input. For example, I have an application that uses a drop down list to choose a letter, number or shape. You can select using the mouse or just type in what you want. However, I cannot type in the shapes that I need, I must use the mouse to scroll through a long list in order to select the shape I need.
My initial solution was to just use alt codes..but they are long and I can't figure out a way to customize them the way I want. So I just figured why not just make a small VB app and click the button of the shape I need which would send the alt code information like I typed in using the keyboard.
So if my app has a star button, when I click it, it will be interpreted as I just entered the alt code for that star but I really just clicked a button.
Unless there is another way to allow me to create custom alt codes or modify the ones windows has for these shapes. I'm certainly open to any ideas or advice and would be grateful for help. Thank you!
View 1 Replies
Apr 17, 2012
i use with this code:
Declare Function GetDesktopWindow Lib "user32" Alias "GetDesktopWindow" () As IntPtr
Dim g As System.Drawing.Graphics
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
[code].....
View 4 Replies
May 15, 2009
I'm trying to draw on screen using the mousepath, as I understand I should use the GetDC function and ReleaseDC function, what I want to do is when the mouse left button is down I want to draw anywhere on the screen the path the mouse did (like painter but on the screen), The main problem is that when I draw I have to clean it up later (After the left mouse is up). How can I use the Mousepath to draw on screen?
View 2 Replies
Apr 9, 2011
I 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?
View 22 Replies
Apr 18, 2009
I want to screen capture but only the size of my form2.i have form1 and from2 a button on form1 to get to form2, my info i want to screen capture is on form2 buttons for screen capture have to meet exact size of form2 and buttons for it have to be in button to show form2
View 2 Replies
May 11, 2011
how to Draw text directly to the screen - effectively overlapping anything underneath it - but have it out side a form area! I would really like to have no user interface at all if possible I know what I wanted after recently using FRAPs.
View 8 Replies
Oct 17, 2011
I'm putting together a small program in Visual Basic Express 2010, and part of it is to take a delayed screen shot.
I've got the main code working, I've got Visual Basic delaying taking the screen shot with System.Threading.Thread.CurrentThread.Sleep(5000), but what I'm looking for is a way to draw directly to the screen the number of seconds remaining.
You know how in Windows, in the Display Properties under Settings, when you click on Identify you get a huge number displayed on each monitor?
I'm trying to recreate that, with the number counting down until the screen shot is taken, giving the user plenty of notification to get their required applications in focus for the screen shot.
Is it possible to do this? Or is it something that will take a heck of a lot of coding?
View 1 Replies
Nov 15, 2009
i want capture and save captcha from this url :
[URL]
after capture i want save it in my local computer.
View 13 Replies
Feb 22, 2011
Pressing a Hotkey, I want to click the button of another application (a game table), knowing it x and y coordinates, without to move on the screen then mouse pointer, because this generate an annoyng fluttering.atm I use mouse_event, that works fine, but with the fluttering..In you opinion is this job is possible with a direct Api? I tried to hide the mouse with ShowCursor(False), but it works only over my forms, not over the screen...
View 2 Replies
Dec 21, 2009
I had to "Enhance" the small tool tip, as when you press ctrl or alt it fades, so the screen shot only showed it lightly.
I Should mention it works, some of the time. I am Passing strings in this format:
CODE:
View 7 Replies
Aug 27, 2010
I need to make a small programm for ticketing on a parking for a small hotel.So i have 2 Printers pariking In (for delivery of the tickets) and 2 Readers PArking Out.Both Printers and REaders are working Serial.So i need to poll the serial ports of the printers and readers every second.The data is stored on a SQL database so i need to read and write in the database.Can i do this with 1 PC and 1 programm or 1 PC and 4 programms that are runnning at the same time ?
View 2 Replies
Feb 1, 2010
On form 1 , i have a number of buttons that open up different websites.What i want to do is when i click a button on form 1 , i want forum 2 to show ( Form2.show() ) , Form 2 will have a list (Buttons) of internet browsers.
View 4 Replies
Mar 31, 2012
My c++ app (which has both managed and unmanaged dlls) loads very slow ( > 70 sec) during first time startup. After that it takes 20 sec only during startup. Why? How to make it faster always?
I tried with /Delayloading, rebase etc. It did not give much improvement. In fact after rebase it took more time. note that my app has more than 150 dlls
View 3 Replies
Dec 30, 2010
Are anonymous types slower than declarative types?
For example, does
Dim score as Double = CalculateScore()
run slower than
Dim score = CalculateScore()
Why use explicit typing if it's no slower?
View 5 Replies
Feb 29, 2012
I have spent years writing VBA code that has got increasingly complicated. For the first time, I came across the error in VBA "Out Of String Space" when dealing with a 200MB CSV file.To overcome this I copied and pasted all the code over to VB.NET, compiled changed a few errors and ran the new code. The VB.Net takes 15mins, when VBA took 3 mins.For instance,Previously, to read the contents of the CSV file in VBA I used the code,Dim whole_str As String
Open file_path for Input As #1
whole_str = Input$(LOF(1),1)
Close #1
[code].....
View 1 Replies
Aug 3, 2009
I converted some code from vb6 to vb2005 that opens a recordset and populates a listbox
with about 8,000 names. It uses classic ado. The vb6 code does it in about 0.75 of a second, the first vb2005 code does it in about 5.5 seconds while the second vb2005 code does it in about 4.5 seconds. Is there any way to improve the vb2005 performance a fair bit more?
[Code]...
View 2 Replies
Jan 28, 2009
I have built a class diagram for a proram i am building in vb, and i need some help to enhance it.The program description:"Modeling Car Parking System Modeling Car Parking System (MCPS) is the software that manages a parking for cars. The dedicated employees in that parking will use this system to control the parking. This software will facilitate the work in the parking and covers most activities performed, such as booking, cashing, and organizing. In the following, we will provide a comprehensive description of the parking (the scope of the system) followed by a description of the system with the functions that will be performed.
The Parking (The scope of the system)The parking consists of two floors, with a capacity of three hundred car places, and opens 24 hours all the week�s days. It has two main control stations; one is located at the entrance gate, and managed by an employee whose main functions are entering data to the system, then providing a receipt to the driver, and the other is located at the exit gate (cashier station), managed by an employee whose main functions are checking the receipt, entering data to the system, cashing, and providing an invoice.
The parking has three barriers, two main barriers are placed at the entrance and exit gates, and the third one is located at the second floor�s gate. They are controlled by using a remote control.When a driver wants to park his car, he has to drive it to the entrance where an employee (receptionist) will enter the car plate number to the system, then prints out a receipt to the driver. This receipt will contain information such as, the car plate number and the entry time. After that, the receptionist will open the barrier to allow the car enters the parking.
Inside the parking, the second floor will be kept empty (closed by the barrier) until the first floor will be full. When the first floor becomes full, the employee will open the barrier to allow the cars to park in the second floor. A driver can park his car in any vacant place in the available floor.When a driver wants to leave the parking, he drives his car to the exit gate and presents the receipt to the employee in the cashier station, who in turn, will check if the number recorded in this receipt (at the entrance) is similar to the real plate number of the car. After that, the employee will enter that number to the system, take the money, provide an invoice to the driver, and finally, open the barrier to allow the car leaves the parking.The list price in the parking, declares that parking a car for an hour costs 3850 LBP, and each extra parking hour will cost 3000 LBP.
Description of the System :The system will operate 24 hours, and will perform the tasks related to the work in the parking. The following scenario will explain what we mean by �will perform the tasks� in the parking.
At the entrance gate, the employee will enter the car plate number to the system as a (driver ID), and select the available floor which is in service from a menu. The system, in its turn, will store these data and additional data such as the time entered, and then issues a receipt including information such as driver ID, entry time, date, and the available floor reference.
At the exit gate, the employee will enter the car plate number (driver ID) to the system which will generate the data related to it, and prints out an invoice including the current time, date, total parking time, and the total amount of money (parking fee); since the parking fee and the duration will automatically be calculated and displayed by the system.
In addition to the tasks which the system will achieve at the entrance and exit gates, it also will provide statistical information such as the total count of cars that exist in the parking at any time, and the number of the vacant or busy parking lots (car places) in each available floor. Also, the simulation which will be part of the system will play a role in managing the parking since it will show an up to date comprehensive scheme of the parking.
The graphical simulation of the car movement flow When a car will enter the parking, and after an employee has implemented all the tasks associated by the entrance such as entering the car plate number, and selecting the available floor, the system will issue a receipt and automatically will lead the user (employee) to the simulation part. The simulation part is a form that contains cars and parking lots as graphical components, when a user click such a button �Drive-in a car� a car will move to occupy an available empty parking lot.
When a car will exit the parking, and after an employee has implemented all the tasks associated by the exit gate such as entering the car plate number, the system will issue a receipt and automatically will lead the user (an employee) again to the simulation part. When a user clicks such a button �Drive-out a car�, the car will leave to parking lot was occupied.
View 1 Replies
Mar 1, 2011
Imports System.Drawing.Drawing2D Imports System.Math
[Code]...
View 2 Replies
Jan 7, 2010
I am busy creating documentation for my application and want to implement xml comments in my class diagram. Is it possible to show xml comments of a class in the class designer/diagram?
View 1 Replies
Jun 29, 2011
BTW this issue occurs in any MS office program when the VB.Net (or even VBA) is processing information.Example: In Excel, a worksheet is displayed on the screen. I start either, a VB.Net or VBA procedure and within 30 seconds the Excel worksheet (previously displayed) blanks out. In both VB.Net and VBA,ScreenUpdating = False. My expectation is that the previously displayed screen would stay static as if I left my desk to get a cup of coffee; came back and the same ole Excel worksheet was still there?Of course, setting VBA Screen Updating = False accomplishes two goals: 1) speeds up processing and 2) saves the user from seeing unnecessary "garbage-processing" steps.Why does VBA or VB.Net ScreenUpdating = False not freeze the screen at the time of its invoking?
View 11 Replies
Apr 14, 2010
I am beginner in programming and developed an application of mine. Although, I am finished with the coding part, but I have to present my software architecture diagram. I am not a software engineer and so familiar with basics of software engineering, layering etc.I have used 1) .NET GDI Graphics in my application, 2) Text to Speech, 3) RichTextBox which retireives pictures etc. How do I proceed with the architecture diagram now?
View 1 Replies
Jan 8, 2009
I want to draw a software Function Diagram which show the calling relationships between functions in my VB.Net project. Like which function calls which function and what the called function does... I have look through VISIO couple times and can't know find anything I like. What type of diagram should I use? Which template should I use in VISIO?
View 2 Replies
Dec 12, 2009
I need to make a class diagram for a scrabble game. I know the classes are game, player, board, tile, square , tile bank?
View 4 Replies
Apr 26, 2012
this is more of a organizational question rather than a technical one. As your project grows and has more and more forms, objects and classes, how does one keep an overview?
Is there an application available which allows you to graphically organize the relationships between forms in a diagram? An "organigram" for your project?
View 2 Replies
Jan 30, 2012
I am trying to write a program that allows user input information and plot a bifurcation diagram that looks like this:I haven't program in 2 years so I am all rusty and such. Here is what I have got so far and more information about what I am doing.
Bifurcation:
f(x) = kx(1-x)
and k = xL + i * (xR-xL) / 500
[code].....
View 4 Replies
Jun 3, 2012
draw individual pixels, without resorting to drawing a line and setting it's length to 1. Is there an actual ability to draw a pixel that is just 1 pixel big?
View 2 Replies