Question about Microsoft Windows XP Professional

1 Answer

How to do Undo and Redo in Visaul Basic Project ? I wanna do in my application(Project). Suggest me Code for it .

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Mayor:

    An expert whose answer got voted for 2 times.

  • Contributor
  • 4 Answers

Undo command: if you want an undo command, the best way to do it is to 'send' key strokes to the textbox that you want to use. You will need to send Ctrl+Z. You can do this with this code:
'=========================
'General Declarations
Private Declare Function MapVirtualKey Lib "user32" Alias "MapVirtualKeyA" (ByVal wCode As Long, ByVal wMapType As Long) As Long Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Const KEYEVENTF_KEYUP = &H2
Private Sub Command1_Click() 'The procedure that will run the undo command
Text1.SetFocus 'The textbox that you want to 'undo'
'Send Ctrl+Z
keybd_event 17, 0, 0, 0
keybd_event 90, 0, 0, 0
'Release Ctrl+Z
keybd_event 90, 0, KEYEVENTF_KEYUP, 0
keybd_event 17, 0, KEYEVENTF_KEYUP, 0
End Sub
'===================================

Another way to do this is to use the SendKeys statement. However, the API function gives you more control.
'===================================
Private Sub Command1_Click() 'The procedure that will run the undo command
Text1.SetFocus 'The textbox that you want to 'undo'
'Send Ctrl+Z
SendKeys "^Z"
End Sub
'====================================

Posted on Apr 22, 2009

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Codes of c++


Microsoft Visual C++ 6.0 is an integrated development environment, or IDE, released by Microsoft in 1998. An IDE allows the user to create a computer application by using pre-designed functions, tools and other resources. Microsoft Visual C++ 6.0 features a source code editor, a compiler, a debugger and graphical user interface.

Install Microsoft Visual C++ 6.0 on your computer. The installation process is fairly simple. Just follow the prompts. Run the program. A window will appear asking you to create a new application. On the "Project" tab, choose "Win32 Console Application." This means that you will create an application with an EXE file extension that can work with 32-bit Windows operating systems after compiling the project. Also, specify the project's name and the location where it will be saved. Click "OK." Click"OK" in the dialog box that will appear next. You will choose to start an open project. Double-click on the form in the center of the screen. Type: #include <iostream.h> int main() { cout <<"This is my first project!!! Hello everybody! \n" return 0; } Press "F5." This will build and run the project. Microsoft Visual C++ 6.0 will compile your project into an EXE file. Then it will open this file. You will see a new window open in which you'll see your greeting, " This is my first project!!! Hello everybody!" Press any key to exit the application. http://elvis.rowan.edu/~kay/cpp/vc6_tutorial/ http://msdn.microsoft.com/en-us/visualc/ee340952.aspx

Feb 03, 2013 | Microsoft Visual Basic 6.0 for PC

1 Answer

How to run vb


How to Run a Visual Basic Program on a PC By an eHow Contributor

Like C++, C Sharp and Java, Visual Basic (VB) is an object oriented programming language. Recently it was integrated to the Microsoft .NET Framework. The .NET Framework is a software infrastructure that speeds up program development. It is supported by the Microsoft Visual Studio Integrated Development Environment (IDE), Microsoft's chief programming environment, and that of SharpDevelop.
Difficulty: Easy Instructions Things You'll Need:

  • Visual Microsoft Studio and .NET Framework
  1. Launch your Microsoft Visual Studio. It is a "heavy" application so depending on how much RAM you have it may take a few minutes to load.
  2. Click the Project tab on the first screen. Notice two buttons at the bottom of the screen named "New Project" and "Open Project." Since the tutorial assumes that this is your first VB program, click the "New Project" button. If you worked on a project before, its name will appear in an area labeled "Open an Existing Project" with a hyperlink that opens the project.
  3. Select "Windows Application" in the "Visual Basic Projects" folder if you intend to run your end program on a computer running a Microsoft Windows operating system. Focus in the "Name" text box near the bottom. Change the name from the default to something more descriptive such as "MyFirstVBProgram." Leave the Location to the default value to save your project to the "My Documents" folder. Press OK.
  4. Concentrate on the grey square area with the arrays of dots. This is the "form." The pinboard shows where components like buttons and text boxes will be installed to make a complete graphic user interface (GUI). The purpose of the grid is to align the components.
  5. Run your program. Click "Debug" from the menu bar. Click "Start" from the drop down menu. Alternatively, you can press F5 on your keyboard.
  6. Enjoy your first Visual Basic program in its simplest form. It is identical to the form in Step 4 except that the dots are gone. What you are looking at is a stand alone program that exists as an ".exe" file having the same name as your project. You can find it under the MyFirstVBProgram folder by default.
  7. Understand the difference between the two distinct environments of the IDE, the Design Environment and the Debug Environment. You saw the Design Environment in Step 4 of this tutorial. That was the environment where you could design a GUI on the form using your mouse. The Debug Environment takes over during the compilation interval in Step 5. That is where you can insert break points in your source code so that you test the correctness of the program.


Read more: How to Run a Visual Basic Program on a PC ' eHow.com http://www.ehow.com/how_2072757_run-visual-basic-program-pc.html#ixzz17b5EMirN

Dec 09, 2010 | Computers & Internet

1 Answer

Suggest a Vb Project Topics


Hi,

You can visit the below sites to get the complete code

1. codeproject.com
2. programmersheaven.com

Jul 07, 2010 | Microsoft Visual Basic 6.0 (361-00686) for...

1 Answer

I want project using vb as front end and oracle as a back end


U can download any project of ur need from

http://www.planet-source-code.com/

After opening the website, select Visual Basic as language in right hand side box and just down to that box search for your project

After searching select the project from a list of project and open it and download it

Jan 11, 2010 | Microsoft Visual Basic 6.0 for PC

1 Answer

Visaul basic coding for changing colour of buttons


Just click on button and change the property of backcolor or picture

Ok...........
My Name is Maulik Chauhan

And Your Self

My Orkut id is maulik.chauhan99@gmail.com

Jul 10, 2009 | Microsoft Visual Basic Enterprise Edition...

1 Answer

Need help in running a software made in visual basic 6


if that program has an executable file then install it or click the exe file to run the program. If it has no exe file then install a visaul basic 6.0 to open it and makeit run using F5 button.

Jun 09, 2009 | Computers & Internet

1 Answer

I have a runtime error 9 subscript out of range, when i try to open a program


  1. Start the Visual Basic Editor (press ALT+F11).
  2. If Project Explorer is not visible, press CTRL+R to activate Project Explorer.
  3. Click to select the Visual Basic project that contains the module sheet that you want to copy.
  4. On the Tools menu, click References. Click to select the Microsoft Visual Basic for Applications Extensibility 5.3 check box, and then click OK.
  5. Click Module on the Insert menu.
  6. Type the following code into the module sheet: Sub CopyModule() Dim CodeLines As String Dim ModuleToCopy As VBComponent Dim NewModule As VBComponent ' Set a variable to the module to copy. ' Note: This assumes that the name of the module to copy is ' "module2". Replace "Module2" with the name of the module to copy. Set ModuleToCopy = _ Application.VBE.ActiveVBProject.VBComponents("module2") ' Get the Visual Basic code from the module. CodeLines = ModuleToCopy.CodeModule.Lines _ (1, ModuleToCopy.CodeModule.CountOfLines) ' Create a module sheet in another workbook. ' Note: You must refer to the name of the Visual Basic project. By ' default, the name of all new projects is "VBAProject". You may want ' to rename the project to which you are copying the contents of the ' module sheet. Set NewModule = Application.VBE.VBProjects("VBAProject") _ .VBComponents.Add(vbext_ct_StdModule) ' Add the Visual Basic code to the new module. NewModule.CodeModule.AddFromString CodeLines ' Rename the new module to the name of the previous module. NewModule.Name = ModuleToCopy.Name End Sub
  7. Run the CopyModule procedure.

Regards

Samson Ved

Dec 05, 2008 | Computers & Internet

1 Answer

I need a diagram of a refrigeratior for my sceince project. anyone wanna get me one or send me a link for one?


http://www.fridgedoctor.com/fridge-doctor-book/standard-frost-free.html

there's one link on basic refrigerator systems.

i hope this can be of any help.

Apr 21, 2008 | Refrigerators

Not finding what you are looking for?
Microsoft Windows XP Professional Logo

Related Topics:

101 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2716 Answers

Piyal Perera
Piyal Perera

Level 3 Expert

528 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18390 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...