Jump to content
Tuts 4 You

How to make command button in VISUAL BASIC 06


X-ProgRammeR

Recommended Posts

X-ProgRammeR

How to make command button in VISUAL BASIC 06 which can :-


 


1) Open a file  >code plzz  


2) Open up a website >code plzz 


3) Also how to make a patcher in VB6 (not anything else 


 


And also if anybody can help me in making VB6 programs. I have little knowledge of VB6. I dont now C++ , Delphi ...etc.  


 


I can make :- 


 


1) Generate key button 


2) Exit button  


 


Please give me the code for different functions for VB6.


Edited by Teddy Rogers
Edited post to make it reasonably understandable. Also deleted the stupid amount of emoticons. Next time I will trash the topic...
Link to comment

And what you can make on the


1) Generate key button


2)or the exit button


If you can make only the buttons then you need to read some tut's on the www.


your said : And also if anybody can help me in making VB6 programs. I have little knowledge of VB6!!


What i say two lines above your need to read or whatch tut's on the www or buy some books about vb.


As i can remember vb is are object based langue !!


First try google for your self: vb openfiledialog


Edited by accede
Link to comment
The Trooper

Try this:

General:

Private Declare Function WinExec Lib "kernel32" (ByVal _
lpCmdLine As String, ByVal nCmdShow As Long) As Long
Const sw_hide = 0
Const sw_shownormal = 1
Const sw_normal = 1
Const sw_showminimized = 2
Const sw_showmaximized = 3
Const sw_maximize = 3
Const sw_shownoactivate = 4
Const SW_SHOW = 5
Const sw_minimize = 6
Const sw_showinnoactivate = 7
Const sw_showna = 8
Const sw_restore = 9
Const sw_showdefault = 10
Const sw_max = 10

 

Command button:

Call WinExec(file, sw_showmaximized or minimized or...see table above)

*You need to set the variable file as string(filelistbox, textbox.....)

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...