Performance Check - Using Tabs Instead Of Multiple Forms
this is what i'm trying 2 do. i have a SSTab control on my form (frmMain) and have like 10 tabs on them. Each tab has multiple controls in it. The first tab is order details where in a user can enter details of a new order. The second has customer info. The third employee details. So on and so forth. frmMain is the main page and loads when the ap starts. I would like to know if all the tabs (and controls in each) are loaded at this time and does that consume a lot of resource. Can this slow down the system and also make the ap run slower? If this happens is it better to have each 'tab' as a separate form for better performance? awaiting 4 ur replies
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Hiding Multiple Mdi Forms.. Will This Affect Performance?
I have a very large project that I am working on, and I was wondering if it's a good idea to always have 4 or 5 MDI forms hidden until they are called upon to become visible by the user. Each MDI form is rather large and has many objects and lines of code. Apart from these MDI forms, I have over a dozen regular forms, and a bunch of modules, class modules and a couple user controls. However, these other forms will almost always be unloaded unless they are being used, and only one or two will ever be used at the same time.
I'm worried about performance when multiple MDI forms are hidden in such a large program. Should I be worried?
Edited by - Marce22 on 5/29/2005 12:15:16 PM
Data Grids, Multiple Forms And Multiple Repeat Forms
Hi,
We are in the early phases of development and have come across an interesting situation that we could use some assistance. I will try to explain as brief as possible and provide more information as needed.
We are trying to create data grids that has one primary parent form. The parent form has multiple "sub-forms" (best way to desribe, not MDI's) requesting data input from the user and certain "sub-forms" can be repeated multiple times. The issue is how do we queue the data up and be able to store the information in multiple tables?
This particular routine is for a data input wizard that we have created for the user - in other words all entry for this application is handled through this wizard; whereas the rest of the application is there to search, view, edit, print the complexity of data from the entry process.
While "how do we do this?" is one question, we are open to new ideas to re-think what we have done. If anyone has suggestions as to where else to post this question we would be willing to go in different directions too. Please feel free to answer directly to this group and my email address.
Thank you for your feedback.
How To Check Performance And Memory Usage?
I've written a little program that sits in the system tray - all it does is keep a list of reminders for me, I like to have it in the system tray so it's always running, and just a click away. But I'd like to know how much of an impact this program might be having on overall performance, cpu %, memory used. The task manager says that the program is using 5, 088k or ram, but I don't know if it's actually downgrading the performance of the computer. My computer is always pretty slow since I'm usually running a whole bunch of things. Would a program using roughly 5 meg of ram have any noticable effect on ... well anything? I'm sure it matters how much ram I have and everything else - I have a Pentium 3, 500 mghs, 128 megs of ram. Is there any kind of program I could use to test my program's effect on the computer's performance? Thanks
Questions About Script To Check Performance.
Hi,
I need to make a script to check the processor percentage, process, process id, page file size and working set size and at the end i need it to output the results into a text file.
I´ve already started to make the script :
VB Code:
strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\" & strComputer & "
ootcimv2") Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process") For Each objProcess in colProcessList 'Wscript.Echo "Time: " & Now Wscript.Echo "Process: " & objProcess.Name 'Wscript.Echo "Process ID: " & objProcess.ProcessID 'Wscript.Echo "Page File Size: " & objProcess.PageFileUsage 'Wscript.Echo "Working Set Size: " & objProcess.WorkingSetSize Set PerfProcess = objWMIService.Get("Win32_PerfFormattedData_PerfProc_Process.Name='taskmgr'") PerfProcess.Refresh_ Wscript.Echo PerfProcess.PercentProcessorTime Next
But i´m not getting the values of the cpu % of the process.
Can anyone help me solving this question?
Regards,
Questions About Script To Check Performance.
Hi,
I need to make a script to check the processor percentage, process, process id, page file size and working set size and at the end i need it to output the results into a text file.
I´ve already started to make the script :
strComputer = "."
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\" & strComputer & "
ootcimv2")
Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process")
For Each objProcess in colProcessList
'Wscript.Echo "Time: " & Now
Wscript.Echo "Process: " & objProcess.Name
'Wscript.Echo "Process ID: " & objProcess.ProcessID
'Wscript.Echo "Page File Size: " & objProcess.PageFileUsage
'Wscript.Echo "Working Set Size: " & objProcess.WorkingSetSize
Set PerfProcess = objWMIService.Get("Win32_PerfFormattedData_PerfProc_Process.Name='taskmgr'")
PerfProcess.Refresh_
Wscript.Echo PerfProcess.PercentProcessorTime
Next
But i´m not getting the values of the cpu % of the process.
Can anyone help me solving this question?
Regards,
Ricardo
Tabs In Forms
Can anyone recommend a tutorial on using tabs in forms and getting them to relate back to a recordset to display information. In a sense, the tab should allow me to display info in one form rather than in 4 different forms; but the info will be selected from 1 recordset.
Thanks
Add Tabs To Forms?
I have used an app that had tabs on the bottom of the display to change forms i believe...How can you do this?
Mdi Forms To Tabs
i have a mdi applications, is there any way i could force all of the mdi windows into tabs on the mdiform?
Forms In Tabs
Is this possible in VB? If so, how? Is it bad design?
I would like my app to have a few multitab dialog screens(about 6 tabs per each dlg).
But I would prefer to use the seperate standalone forms I've created and 'paste' them into each tab. The reason I'd like to do this is because I may also have need to just pop open a single form without the need to pull it up with all the other tabs it is grouped with.
The whole idea about putting tabs together is to keep related info together. But there will be some instances when the user may need screens open from 2 different dialog tab collections. I'd like to do this without having to open the whole tab collection.
thanks in advance for any help
Using The Tabstrip With Multiple Tabs
Hello again,
How would I go about using the tabstrip, what I want is to have 6 tabs on the tabstrip and then when each tab is pressed have a frame become visible in the tab?
thanks for the help I can't find anything for the common controls
Making Forms With Tabs
how do i make the tabs like the ones you see in options screens and propertys menus of windows?
VBA Excel Problem - Multiple Tabs
I have a spreadsheep in excel that I am attempting to write a macro for - here's a basic description.
I have one tab that has 150 rows of data in 4 columns. I need to paste each of these seperate 150 rows into the same cell (Q6) in 150 seperate tabs in this spreadsheet. All the tabs have been set up, but I don't know how to write a macro to do this task without going through and copying and pasting the rows myself. Any suggestions on how to have the macro complete the rest of the copying/pasting?
here's what I have so far:
Sheets("DATA").Select
ActiveCell.Offset(-40, -2).Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("Sheet88").Select
ActiveCell.Select
ActiveSheet.Paste
Sheets("DATA").Select
ActiveCell.Offset(1, 0).Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet89").Select
ActiveCell.Select
ActiveSheet.Paste
Macro For Multiple Tabs On XLS From Access
I've setup a macro that runs in a VB application but that exists in an Access mdb. I'd like to be able to export several access tables into one xls workbook but on separate tabs using one Macro or several macros but I cannot resolve how to send these to the separate tabs.
Beginner Needs Help Modifying Vb App With Multiple Tabs
I have an app where the interface has 4 or 5 tabs. I want to add a button to just one tab, but I don't even know how to access the different tabs. on another app i worked with, clicking on the tabs in the form view thing worked like it would in the real interface, but this one is set up differently and it doesn't do that.
hope this makes sense. thanks.
Trouble Importing .csv Files Into Multiple Tabs
I need a macro that will combine multiple .csv files into a single workbook, copying each one to its own tab. The data I am given can consist of a varying amount (10 to 100+) of .csv files in a single folder. The data from each of those files needs to be imported into a single workbook on its own tab, and that tab needs to be given the same name as the .csv filename. My macro experience is limited to simple recorded macros. I have read through a couple self-help books, but haven't found any information on how to import various files in a folder. If you can provide VB code, it would be greatly appreciated! Thank you.
Excel Macro To Print First Page Of Multiple Tabs
Hi
I'm trying to create a macro that will print the first page of each tab in an Excel workbook at once. Does anyone have any ideas?
Is there anyway to create a generic macro that can be used in any workbook?
How Can I Consolidate Selected Tabs From Multiple Workbooks Into A Single Workbook?
There are about 10-12 workbooks in various network drives which get updated at a given point in time on Mondays. I would like to:
1) Selectively import values only versions of tabs into a single "master" workbook.
2) Have the system be portable enough so that when a new tab is added or deleted, I do not have to touch the actual code.
Is there an easy way to do this? Help is greatly apprecicated.
Loop Through Absolutely All Open Forms /Subforms /Tabs / Controls
Hi, I know I am posting a lot of questions, feel free to ignore them if they become irritating. Here is one more problem. In a previous post, I posted a code that I had worked out which allowed me to reset the Recordsource of certain combo boxes based on their names in all forms and subforms that were open. At least that's what I thought it would do. In fact it only goes one level deep, so that if your subform has a subform (or the dreaded tab collection) then it won't touch those. Once again VBA has thrown me for a loop, quite literally. I am sure it is an easy task but I can't figure it out. How would I loop through absolutely all open forms/subforms/sub sub forms/ tabs in subforms etc. ? I need to go n+ levels down. I post my original code so you can see my thinking.
Code:
Dim frm As Form, intI As Integer
Dim intJ As Integer
Dim intK As Integer
Dim intControls As Integer, intForms As Integer
Dim intsubControls As Integer
Dim subfrm As Form
intForms = Forms.Count ' Number of open forms.
If intForms > 0 Then
For intI = 0 To intForms - 1
Set frm = Forms(intI)
Debug.Print frm.Name
intControls = frm.Count
If intControls > 0 Then
For intJ = 0 To intControls - 1
If (frm(intJ).Name = "region_id") Then
frm(intJ).RowSource = "SELECT region_name, region_id FROM region ORDER BY region_name;"
End If
If (TypeOf frm(intJ) Is SubForm) Then
intsubControls = frm(intJ).Form.Count
Set subfrm = frm(intJ).Form
For intK = 0 To intsubControls - 1
If (subfrm(intK).Name = "region_id") Then
subfrm(intK).RowSource = "SELECT region_name, region_id FROM region ORDER BY region_name;"
End If
Debug.Print subfrm.Controls(intK).Name
Next intK
Debug.Print intsubControls
End If
Debug.Print frm(intJ).Name
Next intJ
End If
Next intI
Else
MsgBox "No open forms.", vbExclamation, "Form Controls"
End If
Multiple Forms And Multiple Winsocks Question...
I'm trying to write a client that uses multiple forms. In effect, it is a hybrid client/server that allows for interapplication communication without the use of a central server.
However, I'm having trouble getting to grips with how I should approach this, and what sort of design pattern one could use, or if there's any examples.
This is what I want to do:
1) Have a server socket that listens.
2) Have a command parsing socket that receives a connection from the server socket
3) Depending on the command analysis of the parsing socket this socket should open one of three different kinds of forms.
4) The parsing socket should establish itself as the data transfer socket for the opened form.
This is a .Net aircode snippet that I've written to sort of understand the problem, but I'm writing this app in VB 6 because I must use Winsock and because the one I'm writing it form doesn't want to install the .Net framework.
Code:
Public Sub Listener_ConnectionRequest()
If Listener.State = SocketStates.sckCOnnected then
dim temp as integer = socketArray(socketArray.GetUpperBound(0)+1)
ReDim socketArray(temp)
Socket(temp).Accept(requestID)
End If
End Sub
Public Sub Socket_DataArrival()
Dim strDat as String
If Socket.State = SocketStates.SckConnected then
Socket.Getdata(strDat,vbString)
ParseData(strDat)
End If
End Sub
Private Sub ParseData(strDat as Sting)
Dim cmd as String
cmd = Microsoft.Visualbasic.Left(strDat,4)
Select case cmd
Case "chat"
chat = new frmChat
chat.Socket = Socket
chat.Show()
Case "file"
fil = new frmFiles
fil.Socket = Socket
fil.Show()
Case mesg"
End Select
End Sub
VB6 just won't let me assign the socket as I do in the above code. And of course, it reports an error already in the IDE when I try to Set it.
Anyone with any ideas?
I'd appreciate it.
Cheers,
Microman
Multiple Timers And Multiple Forms
Hi, all,
Please help me with this issue.
I have three forms f1, f2, f3. On each form there is one timer, t1, t2, t3, respectively. All forms have been loaded. When f1 is shown and f2, f3 are hidden, are t2 on f2 and t3 on f3 still working? Assume t2 and t3 are not disabled explicitly within code.
Thanks a lot!
xihu24
Multiple Forms/modal Forms
Is it possible, say, to have two forms show up at one time (one on top of the other), then after completing the top form, dismiss it and bring up another form on top of the bottom one?
Also, is it possible to change the modality of the forms?
Using VBA in Excel 97.
Thanks,
David
Link Tabs To Command Boxes Simultaneously Update Each Tabs Info
I have about 3 tabs with labels and corresponding text boxes for each tab. On the main part of the form, which is the part that doesn't change when i click on different tabs i have an import, modify, update button.
The import button imports information from Excel into each textbox for one tab but how do i get it to import to the other tabs at the same time?
the information that i need to import is in one file in one column but it needs to span through to 3 tabs. ( i don't want to put all the information from the 3 tabs into one tab.)
I've used a control array and a for next loop to import the info to tab 1 but how do i simultaneously update the other 2 tabs with the rest of the info from the file?
Multiple Check
Hi
cananyone suggest a method of checking the value of multiple cells in the same row on the same worksheet? I d like to be able to doa multiple condition eg
col A B C D E F K
row1 40 40 40 52 52 52 !
row2 140 #N/A #N/A #N/A 140 #N/A OK
I need to check that either each cell is the same value or where some cells have #NA each fourth row are the same . If they're the same they get an ok, if there are ay changes they need to be flagged. I know in advane which the four weekly rows should have values.
Thank you
Multiple File Check
with Kill "c:windows
ecent*.*" the files in the recent folder would get deleted , but if there are no files in the recent folder how would i check this and get a msg box saying something like "nottin to kill" in other words , how do i check for multiple files with different extensions in a specific folder ??
thanks in advance
Multiple Check Box Event!!!!
Hi all,
I have a large number of check boxes on a form. When i uncheck any of these boxes i want a message box to display. rather than having an onclick event behind each check box is there anyway i can have catch all event that will display the message box when any of the check boxes are changed
Regards
Padraig
Check Multiple Possibilities
im trying to a conditional statement to check multiple possibilities without typing them all in. lets say you have an array, bowl(1 to 50). is there a way to check them all at onceinstead of typing each one out. like, if bowl(1) = 15 then blah if bowl(2) = 15 then blah. but then is there a way you can do it both ways, so you can check through an entire list of answers. just let me kno if im not explaining enough, i'll try to explain it better
Multiple Areas Check...
Does not work
Set rngUnion = Range(Array("G11:G279", "J11:J279", "M11:M279", "P11:P279", "S11:S279", "V11:V279", "Y11:Y279", "G285:G303", "G309:H327"))
Does not work
Set rngUnion = Range("G11:G279", "J11:J279", "M11:M279", "P11:P279", "S11:S279", "V11:V279", "Y11:Y279", "G285:G303", "G309:H327")
Works but I need it to include all of the above
Set rngUnion = Range("G11:G279", "J11:J279")
Can this be done???
Multiple CD W/drive Check
Ok let me see, the easiest way to explain this would be: I have created a family tree program, when you click on the persons name it pops up a form that has info on that person. What I want to do is add a (view photos) button that the individual using the program clicks and when they do the program accesses the cd rom and opens the album program for the individual they are reading about. The problem I have is all the pictures wont fit on one disk there are 3. I need to when you push the view photos button it looks for the cd drive(just in case the cd isnt d) then looks for the right album and if it doesnt find it to give a message box to put the right cd in (like "Please Place CD 3 in the CD Drive") and then check again when they push OK in the message box and open the album!!!! That is it any help would be GREATLY appreciated!!!!
Multiple Check Box Within Form
I've got the following sample db. I want to create a form so that I can choose multiple Interests for a person and store those values back into the tblPeopleInterests.
I've spend many hours on it already and have had no luck. Any thoughts?
Thanks!! ~Leonie
-----
tblPeople
PersonID 'PK autonumber
FirstName
LastName
...
tblInterests
InterestID 'PK autonumber
InterestDescription
..
tblPeopleInterests
PeopleInterestID 'PK autonumber
PersonID 'FK to tblPeople
InterestID 'FK to tblInterests
Multiple Check Boxes
I am trying to writing a report writing program using VB.Net. I have no experience with Visual Basic, in the sense that I have not written a program with VB or VB.Net. I plan to make the program a MDI application.
I found a Wizard .Net Component from Actipro Software to create what I am calling a "Report Wizard". The "Report Wizard" form is a MDI Child form. On the programs menu I have a Report Wizard menu item. When it is clicked the "Report Wizard" starts and displays a form that collects the initial report information (Date, Time, Report Number, Name of Person Writing Report, etc.). At the bottom of this form I want to have 4 check boxes (Example: Check all that apply: Informant, Victim, Witness, Suspect). The next forms to be displayed will be dependant on what check boxes are checked (Be it all 4 or any combination of the four).
If, for example, the check box Informant, Victim and Suspect are checked, then the next form to be displayed is the informant form. When that form is complete, then the next form will be the Victim form, etc.
My question, finally, is how do I keep track of what check boxes were checked as I go through the "Report Wizard"? I need the program to know that after the Informant form is finished the next form in the "Report Wizard" is the Victim form and then the Suspect form.
As of right now I have no code to show, because I do not know where to start.
Any and all help would be greatly appreciated to point me in the right direction.
Check It Out: Non-rectangular Forms!
In responce to this thread: http://www.xtremevbtalk.com/t89754.html
I did some searching and created a sample program for creating non-rectangular forms, that is, forms of any shape. You can have a doughnut hole right in the middle of your form if you want, and you could see what's under the form through it. The proper terminology for this is (I believe) transparency, however some people I notice confuse transparency with translucency (which is really a variable form of transparency, AKA Alpha Blending)
Anyway, here's the project:
Oh yeah, and anyone who laughs at my hand-drawn graphics will be shot.
Check Box Tool In Forms
please see attachment.
I created a small database to help explain my issue.
When I click on the check box in box 1(train), the text box turns blue...great...and even better the other records stay clear when I scroll down, which is what I want to happen.
But when I scroll back up, from dog to train, the blue in the train box has gone- not what I want!
I would like the blue to stay in every box that I click on. Any ideas?
Thanks,
J
Check For Open Forms
Hi!
When i quit my program I want to do a check if there is any open forms. If there is a msgbox will notify the user.
So how do I Check if there is any open forms in my app.
/Tyronne
Multiple Forms
Hey,
I am struggling to find a way to create copies of an existing form that i can keep track of during run time.
This is the code i have to make copies of the form:
Code:
Dim NewForm As Form
Set NewForm = New frmChat
NewForm.Visible = True
Unfortunately all the forms have exactly the same name, which means i cant control specific forms.
Anyone got any ideas?
Thanks in advance.
Multiple Forms
hi,
in my game, i created 1 form and then added a new form
form1 and form2
how do i make it so that form2 "knows" all the objects on form1?
when i write a line of coding in form2 that uses objects on form1, it says in the error message that an object is required.
thx
DX, And Multiple Forms
I started coding DirectX in VB about 3 hours ago, so I hope this is an easy question to answer:
I have a form, (frmMain), which is the startup form. In this form, I am setting the screen res, initializing dirextX, and setting the cooperation mode.
<pre> Set DirectDraw = DirectX.DirectDrawCreate("")
Call DirectDraw.SetCooperativeLevel(Me.hWnd, DDSCL_FULLSCREEN Or DDSCL_EXCLUSIVE Or DDSCL_ALLOWREBOOT)
Call DirectDraw.SetDisplayMode(800, 600, 32, 0, DDSDM_DEFAULT) </pre>
When I then try to call another form:
frmMessageBox.Show
the MessageBox form is being loaded and displayed, yet its being hidden by the main form.
I assume this is to do with how im setting the cooperation mode, (I have also tried frmMessageBox.SetFocus after showing it, which had no effect).
I believe the problem lies in the DDSCL_EXCLUSIVE flag, but I'm just not sure, what to change it to.
Any help would be appreciated, thanks.
Multiple Forms
I'm writing a game, just a simple basic one.
When the user presses the "cmdRoll" button, It initiates a Private Sub called RollDice
however, when its the players turn, it then needs to load another form, which asks the question - and closes when it is answered. after it is answered I need it to go back to the RollDice sub, or another Sub in that forum.
What I need to know is, how do I start a sub that is in one form, from another form.
Multiple Forms
If i have multiple forms, e.g Form1, Form2
and i declare a adodb.connection variable in form1,
do i have to declare it again in form2 to use it in form2?
i open form2 by doing
Code:
dim forma as new form2
forma.Show vbModal, Me
Multiple Forms
Im, writing a chat program. I just made the instantmessenger boxes, I can't get the instantmessenger boxes into an array, so I can have multiple of them open. Does anybody know how to do this?
Or have it creat a new one?
Thanks....
Thorn
More Multiple Forms
its me again
I have 2 problems
1) I have 2 forms. one form, you set the pizza up, the other form prints a "summary" for the ordered pizza. The 2 forms work at the same time, and you can switch between them
now. I made so when I click "add pizza" in one form, it sets the focus on the other (the other form has the code to add the pizza under the activation function) then sets the focus back. the problem with this is that if you switch to the other form without meaning to add a pizza (ie, clicking on it) it will try to print a new pizza. so to fix this, I created an activation variable, so, when I click "add pizza" i make "a = 1" and in the frmsummary, I said if a=1 then print the pizza, if not, then do nothing. Its a great idea, but I cant get it to work, its like the computer doesnt recognice wether a is 1 or 0. I "a" in a module as integer
2) I cant transfer strings, i mean. I could transfer single strings and values (such as prices and customer names) but i couldnt make a "multiple" string to transfer between forms. I mean by multiple strings, something like, putting 2 strings together and printing that result. In my example, i need to transfer "PIZZADONE", which is a string composed by Pizza and top_name. I declared PIZZADONE in a module as public, and told it to print
in other words, here is my program. take a look at frmSettings and frmSummary. Look for the "red dots" and give it a try.
Please if you can help me out
Thanks in advance
Multiple Forms Help
hi
im making a program with multiple forms
I type in customer information and when click continue i store them in variables, then switch forms.
I want to print the stored variables in the new loaded form. So I put print the variables in picture boxes under the frm_load routine, but the variables dont print.
I tested making a command button called "RETREIVE iNFORMATION" and it basically has the same code as in the frm_load, just under the cmd_click, and it works perfectly.
so, the varialbes are stored properly in the previous form, but it seems that the new form is not executing the frm_load routine.
any help on this?
thanks a lot
Multiple Forms
When I'm dragging from one form to another, is there anyway that I can activate a form when my mouse gets over it? What I'd like to do is drag from Form1 to Form2 but I when I try, Form2 isn't active so I can't tell where to drop the item? Any ideas? Thanks, Jeremy
Multiple Forms In VB
I am creating a project with mulitple forms. I would like the person to enter a week ending date in the first form. Then by clicking the command button go it will search the database and change to the next form which will fill in a box for the week ending date and populate a list box with available information for that weekending date.
I have my date saved under the general declarations of the first and second forms. I am saving it fine in the first form but i can not get it to transfer to the second form.
Any help would be great!
Thanks,
Sunshine
Multiple Forms --> How To Get Them
hello
im am trying to make a note app with vb6.
now i have a note form, wich stays topmost.
this form will be duplicated like this:
on newbutton_click
Dim n As New notiz
n.Show
SetWindowPos n.hwnd, HWND_TOPMOST, 0, 0, 0, 0, TOPMOST_FLAGS
FORMCOUNTER = FORMCOUNTER + 1
end sub
now, this all works..i can make several notes, and they stay all on top.
but, how can i acces them from the main form, for save it or anything?
in fact, how can i create a index changing array, wich holds all the instances?
it is not an MDI app...and it never will be one
btw. i tried to make the form topmost or not by a button. but it will change
on EVERY instance or on the false one or otherwise ... --> it works up to three instances but not more...is there any fix to this problem?
thanx
|