Incredibly Depressing Form Lag?

Mar 26, 2011

I'm currently attempting to make on ORPG using Visual Basic 2008. It's a big project, I know. I've currently made a working map editor and the basics of a game client(movement with physics, etc.). Unfortunately, when the form's size is larger(in the actual game client), the form becomes REALLY slow. The larger the form is, the slower it runs. The smaller it is, the faster it runs... And I also have horrible lag in my map editor. So horrible it's impossible to be productive. It has nothing to do with the form's size this time.

View 20 Replies


ADVERTISEMENT

Deal With Incredibly Long (large) Numbers In .net?

Nov 27, 2010

How is it possible to deal with incredibly long (large) numbers in vb.net?I am working on Problem 25 in Project Euler, and my program cannot handle these computations.Is there a data type that can handle thousands of digits?

View 3 Replies

Conversion Of Date Into Hour/minute/second Incredibly Slow

Apr 29, 2011

I need a date cyclically convert into its components (hour, minute, second). The following code does this quite well.

Dim time_hour As Integer
Dim time_minute As Integer
Dim time_second As Integer

[Code]....

However, I have found this a performance problem. I have examined the source code with a profiler, and the conversion of Now into its components seems to be incredibly slow. Is there a quick way to the current time to disassemble into its component parts?

View 1 Replies

VS 2008 Parse A Incredibly Small XML File With Xpath

Mar 17, 2012

I have spent the last 20 plus hours trying to parse a incredibly small XML file with Xpath. I understand that it is a ready only, extremely fast way to pull values out of an xml file. Here is the string I am working with. I have a 3rd party function that returns results, based on these xml results i would like to retrieve certain vaules.

[Code]...

View 14 Replies

Get Form Click Or Form Control Mouse Events To Fire DURING Form LOADing

Aug 26, 2011

Im Using VB 2008. I have MsgBox() statements in all Mouse & Form Click events to TEST & NOTHING FIRES during Form Load when I click on Form or Button Controls !!! The Form Load event contains code for Displaying the Label.Text control many times with changes in the Text to simmulate annimation.

[Code]...

View 7 Replies

Form In A Form - Manipulate The App's Properties Place Inside Child Form?

Dec 23, 2008

The following code does create a form within a form and does place NotePad inside the child form. You have to manually start NotePad prior to execution (I work on that later) but the code does workŠ My problem is now I want to manipulate the properties of notepad i.e. focus, size, location, etc. but I cannot figure out how to reference notepad and its properties.

[Code]...

View 8 Replies

Get A Button On Form A To Open Form B And Then Close (not Hide) Form A When Clicked?

Jun 12, 2009

get a button on form A to open form B and then close (not hide) form A when clicked?Background: I am coding a VSTO application for Excel in VB2008.

Private Sub FormAButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles FormAButton.Click
Dim FormB As New FormB

[code]....

View 1 Replies

Inter-form Communication - Form Being Called Form Several Forms Using ShowDialog()

Mar 28, 2011

I have a form being called form several forms using ShowDialog().

1. Is there a way for called form to know which form called it by receiving a code or key from the calling form?

2. The calling form has a gridview. How can the called form pick up a column's value from the currently highlighted row in gridview in the calling form?

View 4 Replies

Mdi Child Form Order - Move The New Form Behind The Main Form While It Loads

Aug 5, 2010

i have my main child form open. then i show the new form:

[Code]...

but when the form opens it flickers a lot. so i want move the new form behind the main form while it loads so the user does not see the flicker. once it is done loading i will set the form to topmost. how do i move the new form behind the main form?

View 12 Replies

TopMost Form - Messages Form Would Be Hidden By The Main Form

Nov 20, 2009

I have a tool window that I want to stay above the main application form, but not stay on top of all windows forms. Similar to the floating properties window for visual studio - it always stays on top of the main VS window, but if I select another program, like internet explorer, the floating properties window will be behind internet explorer.

What I have is an application that has several forms that may be displayed at the same time. I have a Messages form that displays messages generated by the code in the form, that gives the status of the application. Obviously, the user would not normally be working on this form, but they may want it to be visible to see the status messages from the program (File saved confirmations, etc). So, my two options right now are I can set the form to be on top of all other windows forms or, when the user clicks on the main application form, the messages form would be hidden by the main form.

View 6 Replies

Form Result To Another Form - Class Contains A Form That Have Buttons

Apr 9, 2010

I designed a class contains a form that have buttons. When i click any button this function runs

Public Sub BtnClick(ByVal sender As Object, ByVal e As EventArgs)
result = CType(sender, Button).Text

[CODE]...

In another project I imported this class. I called the method that shows the form in my class. I need to store the 'result' variable in another variable in the new project. How can It be done.

View 1 Replies

Forms :: Pass Value From One Form To Another Form In .net Windows Form?

Jan 22, 2011

how to pass value from one form into another form...? for example if i have 1 mdiform and 2 form (form1, and form2) for load form1 i'm using system.reflection.assembly here is the code for load form1 :

Imports System.Reflection
Private Asm As Assembly
Private FrmNama As Form
Public Function GetForm(ByVal FormName As String) As Form

[code]....

after form1 load i call form2 from form1 and from form2 i want pass value, here is the code from form2 to pass value into form1 :

form1.textbox1.text = textform2.text

why value from form2 can't fill into textbox1 in form1?

View 15 Replies

Mdi Form And Show Form - Error "Form That Is Already Visible Cannot Be Displayed As A Modal Dialog Box"

Jan 26, 2010

I'm new in .Net and I have an application with windows form "LOGIN" When users enter the user and password and click "ok", then if user passes validation then I have the code Show(MDIMainMenu) (I'm trying to open an mdi form), but I receive the following error: "Form that is already visible cannot be displayed as a modal dialog box. Set the form's visible property to false before calling Show. Error Number 5"

[Code]...

View 2 Replies

Move A Form Without The Form Control Box Or Form Name?

Apr 24, 2009

i want to be able to click anywhere there isn't a control on the form and be able to move the form to anywhere on the desktop...

the control box is off and the form text is blank, so there is nowhere on top of the form to click and move the form..

View 10 Replies

Unable To Place A Label Box In The MDI Parent Form And Then Open A Child Form The Label Box Highlighted In Child Form?

Dec 15, 2011

I have an issue when I place a label box in the MDI Parent form and then open a child form the label box highlighted in child form?

View 6 Replies

Make Form Visible For The First Time From Another Form (form.visible = True)

Aug 18, 2009

Below is the exception code info. when I try to make form visible for the first time from another form then I get an exception code. something like 'a required variable not set'

Quote:

CODE:

View 7 Replies

Irregular Shaped Form With No Borders Moving Across The Screen Until From Within The Loop The Form Closes?

May 26, 2012

I tried it every way I can think off, but nothing can stop it .

View 7 Replies

Crop Form Screenshot - Screen Capture Of Twindows Form And Display Only A Certain Specified Area

Aug 2, 2010

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.PictureBox1.Load(bm2)

[CODE]...

So I'm trying to take a screen capture of the windows form and display only a certain specified area of that screen capture in a picturebox on a different form. Kind of like this. First, take the screen capture of the form: Then get a specified area of that form through x,y coordinates or something and display it on a picturebox on a separate form.

View 1 Replies

DataGridView On A Form That Is Being Populated From A SQL Table Dataset By Giving Criteria From A Previous Form?

Apr 8, 2009

I have a DataGridView on a form that is being populated from a SQL table dataset by giving criteria from a previous form. I have 6 columns in the dataset, of which the last column should be combo box column containing items "Done" and "Pending". How do I make this bound column to a combo box column and display the value as well as the alternate item too in the combo box?

View 6 Replies

Detail Bound Form Updates Main List Form, But Does Not Update Data

Jan 29, 2010

I have a main form with datagridview containing a list of contacts:

VB
Public Class Form1
Private Db As New DataClasses1DataContext
Private Sub Form1_Load

[Code]....

After saving, I get the correct message ("Saved"), and the DataGridView in the first form gets updated in real time.

But... when I take look at the data (or close and reopen the forms) the data in the database (SQL server) have not changed! What happens!

View 4 Replies

Load The Main Form Of A WPF So That A Separate Thread Goes And Gets Data From The Database While The Form Is In An Apartmentstate?

May 15, 2012

How do i load the Main form of a WPF so that a seperate thread goes and gets data from the database while the form is in an apartmentstate? (drag-able / movable) I Know this is possible with opening a new window from your main form like this :

Private Sub openOrderWindow()
Dim OrderWindow As Orders = New Orders
OrderWindow.ShowDialog()
End Sub

[code]....

I've tried putting MyBase.ShowDialog() and .Show() and .9000+ other things The only benefit I've got out of using a seperate thread to load from the databse is i can see the screen right away (as oppose to it being a transparent box until it loads) but i cannot move it around or minimize it?is there any way to make it Movable while it loads?

View 1 Replies

Mdi Application - Open The Form But Focus Remain On Tree View Until Click On The The Form

Jun 11, 2009

I have mdi application, on main form which is mdi container and has a tree view. i open the child form on afterselect even of treeview. the issue i'm facing that i open the form but focus remain on tree view until i click on the the form. my question is how i can give focus to form rather it stays on treeview. i tried frm.focus also activatemdichild(frm) no sucess.

View 21 Replies

Progress Bar In Status Bar To Move When Load Any Child Form Inside The MDIParent Form

Sep 16, 2009

i am asking about using the progress bar into the status bar to move when i load any child form inside the MDIParent form.

View 1 Replies

VB 2005 - Register Form - Store The Added Username And Pasword To The Login Form?

Mar 11, 2010

i have a main menu on my program which has the option of registering. I have enter name and password ..and a button Confirm

i want to be able to store the added username and pasword to the login form so that it will work...

what must i do? also where would this data be stored...

View 4 Replies

VS 2010 Detect Shift + Arrow Key In Form Keydown Event In BLANK Form

Mar 27, 2011

I need to detect shift + arrow key in blank form. But it's not working. I also tried overriding IsInputKey method but it only detects single key press (like arrow key) but when multiple key are pressed it simply doesn't work.

View 5 Replies

2003 Control On Child Form To Create Event On Parent Form?

Oct 28, 2010

Here is the pertinent part of my code:

Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 3 Replies

Basic Windows Form With One Crystal Reports Form Veiwer Control?

Mar 12, 2009

I have a basic Windows form with one Crystal Reports form veiwer control on it. When ran on the development machine it displays the report fine.After build and publish the application is now installed on a user PC. I am getting an error that the Crystal Decisions. Windows. Form version 12.0.2000.0 can not be found. All the Crystal dll's are in the install directory but none of them are being installed in the install machines GAC.Am I setting my publish output up wrong, may references wrong, or is the local GAC files the problem. The message is so criptic, it doesnt really point me in the right direction.

View 1 Replies

Change Startup Position And Move A Docked Form With Parent Form?

Mar 23, 2011

well i successfully docked a perpixel alpha form with the main form(form1). but the perpixel alpha form always appears at the top left corner of the screen and when i move the main form the form(perpixel alpha form) inside it dosen't move it stays at the top left corner. ALWAYS. to dock the perpixel alpha form i used

Me.toplevel = false
Me.parent = form1

View 6 Replies

DB/Reporting :: SQL Select Query In Form - Form With A Datagridview That Displays All Of The Values

Mar 26, 2008

I am using VB2008 Express and a MSSQL Server 2005 db by the way! I have a comprehensive SQL statement, which should fill my Grid:

DECLARE @Sum NUMERIC(9,2)
SELECT @Sum = SUM(I_LS.lmenge)
FROM dbo.lfs AS I_L

[CODE]...

Now here is my problem! I want to have a form with a datagridview that displays all of the values I am querying. This shouldn't be a problem I guess. However, I have no idea how I can integrate two textboxes that can be used to enter the selection criteria (WHERE I_L.lfsnr LIKE '%1253') AND (l.sped_journal = '11-08')[/SIZE]. I have googled and read many threads so far but didn't stumble upon anything that would suit my needs and answer my question. Maybe it's just too elementary!? By the way, it is very important that the input of textbox1 ((WHERE I_L.lfsnr LIKE '%1253')) is linked to 3 positions in my SQL query to define the search criteria!

The worst thing is that I don't want to have a bindingnav displayed! I do not need any delete, update or add functions just the select option, however!

View 1 Replies

Form Height Limit, Make The Form Larger Than The Screen And Allow For Scrolling Down?

Nov 17, 2011

I have read that VB .NET in earlier versions limited the FORM size to that of the development machine screen resolution.I am hoping that there is a way in the current VB 2010 to get around that.However in my attempts to make the form larger, it always resets itself to the screen height on my develoment machine.Is there a way to get around this and have the person be able to use a scroll bar to move down?The data I wish to show actually has two screens worth of information but the stuff in the scroll down section would be used on a limitied basis so scrolling will be useful rather than having to recreat the screen to show less data at one time.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved