Visual Basic For Applications Editor Article
Sweatin' to the basics
To make sure you get the most from your workout, here is a list of basics that need to be checked off every time you hit the gym.
A GOAL
A workout without a goal is a waste of a good sweat. That's because unless you know what you're working toward, you're bound to squander precious time and energy doing exercises or workouts that won't help you over the long or short term.
Figure out what you want to accomplish before you step into the gym. Do you want to burn calories, build muscle, recover faster from the previous day's workout or improve flexibility? Once you know just what it is you want to achieve, you can plan a well-thought-out routine that accomplishes your goals effectively and efficiently.
A SENSE OF COMMITMENT
Never pull on your gym shoes without a commitment to getting the job done. more
SkyLines Farm offers summer workshop on sheep
Topics to be covered include how to tell when something's wrong, management practices for sheep health, basics of sheep nutrition, low-stress sheep handling, and simple sheep facilities.
Registration for the all-day workshop is limited to 10 persons, so preregistration is required. Visit www.skylinesfarm.com on the Internet for more information, or e-mail melissa@skylinesfarm.com.
. more
Help flood victims: We need the basics
Agencies and disaster relief organizations need the basics: paper towels, bleach, cleaning supplies, power bars, masks, gloves, coolers, ice, trash bags and meals ready to eat or MRE's are needed.
If you can donate some of these supplies, just drop them off at the Tri-State Food Bank on Michigan Street in Evansville.
. morevisual basic for applications editor
CAMBRIDGE, Mass. - (Business Wire) Pageflex, a division of Bitstream Inc. ( NASDAQ: BITS, www.bitstream.com ) and a leading developer of enterprise variable data publishing and web-to-print solutions, today announced the immediate availability of ...
Read morePageflex Releases VDP Plug-In for Adobe InDesign CS4 - Earthtimes
With the arrival of .NET 3.5, WPF and the RTM of Silverlight 2, .NET developers have more choices than ever for designing, developing and deploying compelling applications with rich user interfaces. However, there are other mainstream alternatives ...
Read moreFlexing Your .NET 3.5 Skillset - Soa Wolrd
Read moreResolved Question: I use Visual Basic Express Edision 2008 and I just made a program but i cant start it! HELP!!!!!!!?
I just made a simple program, and when i copy the whole project file to another computer and try to start it, it wont let me. it says The application failed to initialize properly (0xc0000135). Click on OK to terminate the application. Is there a way i can use my program on other computers? I tried open the release file and the debug file. all of them wont work. I debug ed it and i built it. but it wont let me do anything. Its a windows form. All it is, is a simple text editor. Is there a way that i can compile it into a exe file that will work? PLEASE HELP!!! moreResolved Question: visual basic 6 timer problem?
I have 2 timers running in my VB6 app, they both work fine in the VB editor, but when compiled the second timer just stops dead for no reason. the timer which keeps on working, I got it to print in a textbox the status of both the timers, which both come up as enabled. Though the first line in the timer control is to print "TIMER" in a text box, but it just does not do it. Though it does do it the first few seconds the app loads up... It sounds like some issue with the timer.. I even put a quick button to disable and renable it, had no effect. Also put a button to set the timer value to 1 second (1000) and still does nothing. Seems like some issue with the timer itself, all setup right, just craps out in a compiled program. I dont know why it started doing this as it had been working fine for months. Though with the timer being enabled and set to 1 second, it does not trigger any events at all. Also a odd thing is that my app does use a lot of CPU power when the timers are running (just how the app functions), but when the timers are disabled, nothing is actually running at all, and yet the CPU is still running high. seems like the timer control has crashed out and locks up the CPU, but only does it for 1 of the timers... anyone had anything like this happen on VB6 ?? are there any altarnative ways to do timers without locking up the application with the sleep function ? I just draw them on the form in the editor and set the tick count to 1000, then double click them and put my code there.. both timers are done the same way, just one stops dead and seems to partically crash the application. its pretty much just this for debugging.. Private Sub Timer2_Timer() Text1.Text = Text1.Text & " TIMER 2 " End sub Private Sub Timer4_Timer() Text1.Text = Text1.Text & " TIMER 4 " & Timer2.Enabled & " " End Sub timer2 just simple stops, but timer4 reports that timer2 is still enabled. but like I say, when this happens, the program hits a high CPU usage like a crash. and disabling the timers does not solve the CPU usesage. BUT if you let the program run a few seconds, then stop it, everything is fine. you can start the program running again and everything is fine. Leave it running until it "crashes" and you can't get anything to function and it just maxes out the cpu. I have DoEvents everywhere already... the form itself does not lock up... im sure i read something about issues with timers years ago though can't find much about it now. I think it is the timers trying to run lots of code all at once, I recoded a lot just to use a single timer and it ran a lot longer before it crashed.. in short, I used a webbrowser control which resets the timer back to zero.. each time the browser does something (while loading) it resest the timer. Then the timer just waits for a period of time and if the browser has not done anything then the timer count eventually triggers the code to run. Before I had the timer just looping constantly, but realize now I don't really need to do that. I am still having problems though can't really see where. I had a crash with msls31.dll so maybe its just some buggy dll versions. moreResolved Question: which is the best java editor?
hi i am beginner java learner. can you tell me which is the basic and advance java editor for gui applications. which works very similar to visual basic editor. means like drag and drop facility, initial code generator, wizards, etc. moreResolved Question: Road for new programmer?
I have all the need software and resources to begin writing and learning code in any language Id like to. My ultimate goal over time is to create an application that reads sensors and turns motors or other actuators to adjust "X" to the desired positions. i want closed loop circuits that correct themselves.. I need to design a graphical user interface for this along with position indicators and gauges on my computer screen. I guess you can do this in any language but what would you suggest. I have Java JDK6, Note Tab ( a xml editor), Visual Basic2008, Basic Stamp Editor, ooPIC compiler, Different C code compilers and debuggers... Also do Visual Basic language and Basic(STAMP) language read the same code? moreVoting Question: Where can I take a class on Access VBA to populate list boxes?
I want to take a classon Access 2003, to populate the list boxes. I need to learn the language like working with record sets, pogram exection etc. IS that needed so I can learn how to populate list boxes. I need a slow pased class. I also need it one on one directly with my database. Even a three day class is to short. Also, what books would yo recommend for me? Even a online class would be to hard for me to comprehend by myself without a instructor. * Getting Started o Introduction to Programming in Access o Why Program in Access? o Understanding the Development Environment o Using Visual Basic Help * Working with Procedures and Functions o Understanding and Creating Modules o Understanding Procedures o Creating a Sub Procedures o Calling Procedures o Using the Immediate Window to Call Procedures o Creating a Function Procedure o Naming Procedures o Working with the Code Editor * Understanding Objects o Understanding Classes and Objects o Navigating the Access Object Hierarchy o Understanding Collections o Using the Object Browser o Working with the Application Object o Understanding the Form Object o Working with Properties o Using the With Statement o Understanding the DoCmd Object o Working with Events o Understanding the Order of Events * Controlling Program Execution o Understanding Control-of-Flow Structures o Working with Boolean Expressions o Using the If...End If Decision Structures o Using the Select Case...End Select Structure o Using the Do...Loop Structure o Using the For...To...Next Structure o Using the For Each...Next Structure o Guidelines for use of Control-of-Flow Structures * Using Expressions, Variables, and Intrinsic Functions o Understanding Expressions and Statements o Declaring Variables o Understanding Data Types o Working with Variable Scope o Working with Variable Lifetime o Considering Variable Scope and Lifetime Together o Using Intrinsic Functions o Understanding Constants o Using Intrinsic Constants o Using Message Boxes o Using Input Boxes * Controlling Program Execution o Understanding Control-of-Flow Structures o Working with Boolean Expressions o Using the If...End If Decision Structures o Using the Select Case...End Select Structure o Using the Do...Loop Structure o Using the For...To...Next Structure o Using the Do...Loop Structure o Guidelines for use of Branching Structures * Working with Recordsets o Declaring and Creating Object Variables o Working with the ADODB Recordset Object o Specifying a Recordset Cursor Type o Locking Records for Updating o Specifying a Recordset Cursor Location - Optional o Using the CacheSize Property - Optional o Understanding Recordset Cursor Properties - Optional * Debugging Code o Understanding Errors o Using Debugging Tools o Setting Breakpoints o Setting Break Expressions o Using Break Mode during Run Mode o Stepping through Code o Determining the Value of Expressions * Handling Errors o Understanding Error Handling o Understanding VBA’s Error Trapping Options o Trapping Errors with the On Error Statement o Understanding the Err Object o Writing an Error-Handling Routine o Using the CacheSize Property - Optional o Working with Inline Error Handling Would a class like this be neccesarry yo know all these essentials to learn how to populate the list boxes. Like field one author name field two book name, only displays the books associated with those authors as a one to one relationship. End Sub Private Sub Combo14_AfterUpdate() Combo16.RowSource = "Select NamID, AuthorName " & _ "FROM tblAuthorName " & _ "WHERE AuthorType = '" & Combo16.Value & _ " ORDER BY NamID;" End Sub moreResolved Question: Visual Basic: Reverse engineer a file based database? ?
I purchased a PC program used for NFL handicapping. It came with historical data going way back to 2001. I am a techie at heart and would like to experiment with my own formulas and use the raw statistical data that came with the program but it appears to be in a proprietary or encrypted format. There is one file for each years' worth of statistics named with a ".nfl" extension. I tried opening the files with a binary editor but the data is completely unrecognizable. It is a VB application. Is anyone aware of a flat file based database used by Visual Basic that may be being utilized here? Any suggestion on how to reverse engineer the data files? Or is it possible the data is encrypted, in which case it would be virtually impossible to decrypt? Any guidance would be greatly appreciated. moreResolved Question: what scripts do you need to know to learn asp.net i heard, u need c /c/c# but then what do you learn for that
i read that for 'asp.net for dummies' u only need basic understanding of html. but for other beginner books you need to learn c# (which i don't know because i am a beginner). I then read on asp.net that you start off with visual web developer express. Do you use that for asp.net applications? can you do in that? is it a WYSIWYG editor? Is Asp.net a technology or a script? what should learn before learning c , c# etc?? thank you and please label the answers in stead of a long paragraph like me sorry moreResolved Question: Run VB program when start excel application.?
I've made a small program with the excel visual basic editor but to start it up i have to access it manually. What i want to know is how to start up the program as soon as i open the excel application. moreResolved Question: Java Sharing?
I'm currently learning Java but I'm also programming in Visual Basic at the same time. I prefer Java to write than VB simply because with Java you can run it on any OS or device without having to recompile your code while on the other hand VB can only be executed on Windows OS. The thing that has been going on my mind lately is HOW exactly am I supposed to share my applications written in Java to friends or other people? if I would ever try to share anything they would only be able to open the source code from the .java file... and the .class file can't be opened because that obviously only contains the bytecode for my program. I know this might be a little dumb of me because I'm used to writing in Visual which, obviously, when you compile your applications it's a .exe executable but with Java it's completely different. Lets say that I wanted to write a Java application purely from a text editor with an interface then compile it - that's where my problems start.. how do I share?... I already know how to compile using javac by the way... there's no problem with that. moreResolved Question: Excel and the visual basic macro thing?
Hi guys, Ive created a small app that uses data from teh excell sheet using the VB editor in the macros menu. Is there a way i can insert it into the document? I dont want to have to find my way through the macro menu , run vb editor, then run the application. moreResolved Question: Java Confusion?
Okay, Im a total newbie to Java as a programming language. I want to start learning it but, I dont understand what Java Beans and all that sort of stuff is? Basically, I want to learn java so I can make basic windows and web applications. Where would I start? Also, is Visual Studio's J# editor and compiler good enough or what developers tools does everyone recommend? Regards, Daniel moreResolved Question: Visual Basic questions on array and structure?
Could you please help me out with the practice questions. 1.The value stored in an array’s Length property is always ____ the highest subscript in the array. a.exactly the same asc.one number more than b.twiced.one number less than 2.You refer to a member variable in an array element using the syntax ____. a.arrayname(subscript).memberVariableName b.arrayname(subscript)->memberVariableName c.arrayname(subscript)[memberVariableName] d.arrayname(subscript)@memberVariableName 3.When referring to a member variable of a structure variable, you use the ____ member access operator to separate the structure variable’s name from the member variable’s name. a.indirectionc.asterisk b.arrowd.dot 4.In most applications, you enter the Structure statement in the form’s ____ section in the Code Editor window. a.MainFormc.Declarations b.Loadd.Definitions 5.The members of a structure can be variables, constants, or ____. a.structuresc.procedures b.classesd.control characters 6.You can create your own data types in Visual Basic using the ____ statement. a.DataTypec.UserDefinedType b.Structured.Define 7.When defining a structure, each member variable’s definition contains the keyword ____ followed by the name of the variable, the keyword As, and the variable’s datatype. a.Dimc.Private b.Memberd.Public moreResolved Question: Visual Basic questions on array and structure?
Could you please help me out with the practice questions. 1.The value stored in an array’s Length property is always ____ the highest subscript in the array. a.exactly the same asc.one number more than b.twiced.one number less than 2.You refer to a member variable in an array element using the syntax ____. a.arrayname(subscript).memberVariableName b.arrayname(subscript)->memberVariableName c.arrayname(subscript)[memberVariableName] d.arrayname(subscript)@memberVariableName 3.When referring to a member variable of a structure variable, you use the ____ member access operator to separate the structure variable’s name from the member variable’s name. a.indirectionc.asterisk b.arrowd.dot 4.In most applications, you enter the Structure statement in the form’s ____ section in the Code Editor window. a.MainFormc.Declarations b.Loadd.Definitions 5.The members of a structure can be variables, constants, or ____. a.structuresc.procedures b.classesd.control characters 6.You can create your own data types in Visual Basic using the ____ statement. a.DataTypec.UserDefinedType b.Structured.Define 7.When defining a structure, each member variable’s definition contains the keyword ____ followed by the name of the variable, the keyword As, and the variable’s datatype. a.Dimc.Private b.Memberd.Public moreResolved Question: Visual Basic Questions?
Could you please help me with the practice questions before the final exam. Thanks. 1.When defining a variable, the keyword ____ appears at the beginning of the statement. a.Assignc.Define b.Declared.Dim 2.When defining a variable to be used to hold textual information containing multiple characters, the declaration statement should have ____ at the end of the statement. a.As Charc.As String b.As Char Typed.As String Type 3.A variable that will be used to hold only True or False values should be declared as a(n) ____ data type. a.Booleanc.Integer b.Decimald.Single 4.A program whose interface will be a window on the screen of a computer running the Windows operating system, and which will allow the user to interact with the program by using this window, is created by selecting a ____ project in Visual Studio. a.Web applicationc.Windows application b.Console applicationd.Custom control 5.Properties can be displayed in the Properties window ____. a.grouped by category or by the order they appear on the screen b.grouped by category or sorted numerically c.sorted alphabetically by name or grouped by size d.sorted alphabetically by name or grouped by category 6.The ____ sign is used in an assignment statement. a.plus (+)c.ampersand (&) b.equal (=)d.percent (%) 7.Which of the following is the correct general format for assigning a value to a property? a.propertyvalue = propertyname.objectname b.propertyvalue = objectname.property c.propertyname.objectname = propertyvalue d.objectname.property = propertyvalue 8.The ____ feature displays all allowable entries you can make in a Visual Basic statement each time a dot, equal sign, or other special character required for the statement is typed. a.AutoCompletec.IntelliComplete b.AutoSensed.IntelliSense 9.When you type the word ____ followed by a period in the code editor, IntelliSense displays a list of all the entries, including all the objects that can be specified in the statement. a.Mec.MyForm b.Myd.VB 10.A(n) ____ is used for denoting a comment statement. a.semi-colon (;)c.apostrophe (‘) b.period (.)d.comma (,) 11.Comments are displayed (by default) with ____. a.a green squiggly linec.blue text b.green textd.a blue squiggly line 12.The ____ prefix is used for a Menu object. a.menuc.mst b.mnsd.mnu 13.The ____ character is used to indicate that a letter is a hot key on a menu item. a.ampersand (&)c.back slash (\) b.forward slash (/)d.underscore (_) 14.The hot key for a menu item can be activated with the keyboard by pressing the ____ key and the hot key at the same time. a.ALTc.CTRL b.SHIFTd.TAB 15.The ____ object provides a text box that asks the user for input and provides an input area. a.labelc.textbox b.menud.Radio button 16.Which line of code will add the value “East” to a ListBox object named lstDirections? a.lstDirections.Add(“East”)c.lstDirections.AddValue(“East”) b.lstDirections.Items.Add(“East”)d.lstDirections.Items.AddValue(“East”) 17.To remove all objects from a ListBox object, the ____ method is used. a.Clearc.Empty b.Items.Cleard.Items.Empty 18.The ____ property of a ListBox object identifies which item in the ListBox was selected. a.Itemc.Selected b.ItemSelectedd.SelectedItem 19.The compound operator ____ adds the value of the right operand to the value of the left operand and stores the result in the left operand’s variable. a.++c.=+ b.+=d.== 20.The compound operator ____ is used to add a string to an existing string. a.&=c.&& b.=&d.== 21.The ____ follows the keyword For in a For...Next loop. a.keyword Nextc.keyword To b.keyword Stepd.a control variable name 22.A For...Next loop with a beginning value of 1, an ending value of 25, and a step value of 3 will execute ____ times. a.3c.9 b.8d.25 23.How many times will the following loop execute? For intCount = 10 To 16 Step 2 ‘Body of Loop Next a.3c.6 b.4d.7 24.How many times will the following loop execute? For intCount = 10 To 1 Step -2 ‘Body of loop Next a.4c.9 b.5d.10 25.What will be the value of the variable intTotalCount when the following code is executed? For intOuterCount = 1 to 5 For intInnerCount = 1 to 4 intTotalCount +=1 Next Next a.4c.9 b.5d.20 moreResolved Question: Visual Basic Questions?
I am practicing some multiple choice questions before my final exam, could you please help me out. Thanks. When defining a variable, the keyword ____ appears at the beginning of the statement. a.Assignc.Define b.Declared.Dim 2.When defining a variable to be used to hold textual information containing multiple characters, the declaration statement should have ____ at the end of the statement. a.As Charc.As String b.As Char Typed.As String Type 3.A variable that will be used to hold only True or False values should be declared as a(n) ____ data type. a.Booleanc.Integer b.Decimald.Single 4.A program whose interface will be a window on the screen of a computer running the Windows operating system, and which will allow the user to interact with the program by using this window, is created by selecting a ____ project in Visual Studio. a.Web applicationc.Windows application b.Console applicationd.Custom control 5.Properties can be displayed in the Properties window ____. a.grouped by category or by the order they appear on the screen b.grouped by category or sorted numerically c.sorted alphabetically by name or grouped by size d.sorted alphabetically by name or grouped by category 6.The ____ sign is used in an assignment statement. a.plus (+)c.ampersand (&) b.equal (=)d.percent (%) 7.Which of the following is the correct general format for assigning a value to a property? a.propertyvalue = propertyname.objectname b.propertyvalue = objectname.property c.propertyname.objectname = propertyvalue d.objectname.property = propertyvalue 8.The ____ feature displays all allowable entries you can make in a Visual Basic statement each time a dot, equal sign, or other special character required for the statement is typed. a.AutoCompletec.IntelliComplete b.AutoSensed.IntelliSense 9.When you type the word ____ followed by a period in the code editor, IntelliSense displays a list of all the entries, including all the objects that can be specified in the statement. a.Mec.MyForm b.Myd.VB 10.A(n) ____ is used for denoting a comment statement. a.semi-colon (;)c.apostrophe (‘) b.period (.)d.comma (,) 11.Comments are displayed (by default) with ____. a.a green squiggly linec.blue text b.green textd.a blue squiggly line 12.The ____ prefix is used for a Menu object. a.menuc.mst b.mnsd.mnu 13.The ____ character is used to indicate that a letter is a hot key on a menu item. a.ampersand (&)c.back slash (\) b.forward slash (/)d.underscore (_) 14.The hot key for a menu item can be activated with the keyboard by pressing the ____ key and the hot key at the same time. a.ALTc.CTRL b.SHIFTd.TAB 15.The ____ object provides a text box that asks the user for input and provides an input area. a.labelc.textbox b.menud.Radio button 16.Which line of code will add the value “East” to a ListBox object named lstDirections? a.lstDirections.Add(“East”)c.lstDirections.AddValue(“East”) b.lstDirections.Items.Add(“East”)d.lstDirections.Items.AddValue(“East”) 17.To remove all objects from a ListBox object, the ____ method is used. a.Clearc.Empty b.Items.Cleard.Items.Empty 18.The ____ property of a ListBox object identifies which item in the ListBox was selected. a.Itemc.Selected b.ItemSelectedd.SelectedItem 19.The compound operator ____ adds the value of the right operand to the value of the left operand and stores the result in the left operand’s variable. a.++c.=+ b.+=d.== 20.The compound operator ____ is used to add a string to an existing string. a.&=c.&& b.=&d.== 21.The ____ follows the keyword For in a For...Next loop. a.keyword Nextc.keyword To b.keyword Stepd.a control variable name 22.A For...Next loop with a beginning value of 1, an ending value of 25, and a step value of 3 will execute ____ times. a.3c.9 b.8d.25 23.How many times will the following loop execute? For intCount = 10 To 16 Step 2 ‘Body of Loop Next a.3c.6 b.4d.7 24.How many times will the following loop execute? For intCount = 10 To 1 Step -2 ‘Body of loop Next a.4c.9 b.5d.10 25.What will be the value of the variable intTotalCount when the following code is executed? For intOuterCount = 1 to 5 For intInnerCount = 1 to 4 intTotalCount +=1 Next Next a.4c.9 b.5d.20 moreResolved Question: Need help w/ Visual Basic program where 3 integers must be added, multiplied, find average, smallest, largest?
Here's what I have so far It's a Windows Application Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose() End If End If MyBase.Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Friend WithEvents TextBox1 As System.Windows.Forms.TextBox Friend WithEvents TextBox2 As System.Windows.Forms.TextBox Friend WithEvents TextBox3 As System.Windows.Forms.TextBox Friend WithEvents Button1 As System.Windows.Forms.Button Friend WithEvents Button2 As System.Windows.Forms.Button Friend WithEvents Button3 As System.Windows.Forms.Button Friend WithEvents Results As System.Windows.Forms.ListBox Friend WithEvents Label1 As System.Windows.Forms.Label <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() Me.TextBox1 = New System.Windows.Forms.TextBox Me.TextBox2 = New System.Windows.Forms.TextBox Me.TextBox3 = New System.Windows.Forms.TextBox Me.Button1 = New System.Windows.Forms.Button Me.Button2 = New System.Windows.Forms.Button Me.Button3 = New System.Windows.Forms.Button Me.Results = New System.Windows.Forms.ListBox Me.Label1 = New System.Windows.Forms.Label Me.SuspendLayout() ' 'TextBox1 ' Me.TextBox1.Location = New System.Drawing.Point(144, 112) Me.TextBox1.Name = "TextBox1" Me.TextBox1.Size = New System.Drawing.Size(136, 20) Me.TextBox1.TabIndex = 0 Me.TextBox1.Text = "0" ' 'TextBox2 ' Me.TextBox2.Location = New System.Drawing.Point(144, 152) Me.TextBox2.Name = "TextBox2" Me.TextBox2.Size = New System.Drawing.Size(136, 20) Me.TextBox2.TabIndex = 1 Me.TextBox2.Text = "0" ' 'TextBox3 ' Me.TextBox3.Location = New System.Drawing.Point(144, 192) Me.TextBox3.Name = "TextBox3" Me.TextBox3.Size = New System.Drawing.Size(136, 20) Me.TextBox3.TabIndex = 2 Me.TextBox3.Text = "0" ' 'Button1 ' Me.Button1.Location = New System.Drawing.Point(16, 104) Me.Button1.Name = "Button1" Me.Button1.Size = New System.Drawing.Size(96, 32) Me.Button1.TabIndex = 3 Me.Button1.Text = "Enter First Integer" ' 'Button2 ' Me.Button2.Location = New System.Drawing.Point(16, 144) Me.Button2.Name = "Button2" Me.Button2.Size = New System.Drawing.Size(96, 32) Me.Button2.TabIndex = 4 Me.Button2.Text = "Enter Second Integer" ' 'Button3 ' Me.Button3.Location = New System.Drawing.Point(16, 184) Me.Button3.Name = "Button3" Me.Button3.Size = New System.Drawing.Size(96, 32) Me.Button3.TabIndex = 5 Me.Button3.Text = "Enter Third Integer" ' 'Results ' Me.Results.Location = New System.Drawing.Point(24, 240) Me.Results.Name = "Results" Me.Results.Size = New System.Drawing.Size(248, 212) Me.Results.TabIndex = 6 ' 'Label1 ' Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label1.Location = New System.Drawing.Point(8, 16) Me.Label1.Name = "Label1" Me.Label1.Size = New System.Drawing.Size(272, 72) Me.Label1.TabIndex = 7 Me.Label1.Text = "Input Three Integers To Find The Sum, Average, Product, Smallest, and Largest" Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter ' 'Form1 ' Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) Me.ClientSize = New System.Drawing.Size(292, 470) Me.Controls.Add(Me.Label1) Me.Controls.Add(Me.Results) Me.Controls.Add(Me.Button3) Me.Controls.Add(Me.Button2) Me.Controls.Add(Me.Button1) Me.Controls.Add(Me.TextBox3) Me.Controls.Add(Me.TextBox2) Me.Controls.Add(Me.TextBox1) Me.Name = "Form1" Me.Text = "Form1" Me.ResumeLayout(False) End Sub #End Region Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim number1, number2, number3 As Integer ' Declares number1, number2, number3 Dim sum, average, product As Integer ' Declares sum, average, product Dim smallest, largest As Integer ' Declares largest, smallest End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End Sub End Class moreResolved Question: sending keystrokes to other apps in excel or word?
hopefully someone with a big juicy brain can help me out. what i'm wanting to do is use a macro (visual basic editor) in excel or word to send a keypress to another application at a set interval without having to know the exact window title. for example, it should be able to run in the *background*, find notepad from "otep" (for arguments sake) and send a keystroke every 10 minutes - with the aim of stopping a program from logging out due to inactivity. part of the problem i had was that macros don't work unless excel or word is still in focus which means the user can't go about their work and have this run in the background automatically. had i been able to use windows scripting host it would probably not be an issue but this has been disabled, hence the need for it to run within excel or word. i've been playing around and trying different code i found from google but i'm out of my depth on this occasion. can anyone provide me with the precise code to do this please? pee kay moreWarning: file(http://beta.search.msn.com/results.aspx?q=visual+basic+for+applications+editor&format=rss&FORM=R0RE) [function.file]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /home/angelwin/public_html/visual-basic/boetie/serp2.php on line 4
Warning: implode() [function.implode]: Invalid arguments passed in /home/angelwin/public_html/visual-basic/boetie/serp2.php on line 4