X-ProgRammeR Posted May 21, 2013 Posted May 21, 2013 (edited) 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 May 21, 2013 by Teddy Rogers Edited post to make it reasonably understandable. Also deleted the stupid amount of emoticons. Next time I will trash the topic...
Accede Posted May 21, 2013 Posted May 21, 2013 (edited) And what you can make on the1) Generate key button2)or the exit buttonIf 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 May 21, 2013 by accede
Dreamer Posted May 21, 2013 Posted May 21, 2013 here are some good tuts on Visual Basic http://thenewboston.org/list.php?cat=39 2
The Trooper Posted May 21, 2013 Posted May 21, 2013 Try this:General:Private Declare Function WinExec Lib "kernel32" (ByVal _lpCmdLine As String, ByVal nCmdShow As Long) As LongConst sw_hide = 0Const sw_shownormal = 1Const sw_normal = 1Const sw_showminimized = 2Const sw_showmaximized = 3Const sw_maximize = 3Const sw_shownoactivate = 4Const SW_SHOW = 5Const sw_minimize = 6Const sw_showinnoactivate = 7Const sw_showna = 8Const sw_restore = 9Const sw_showdefault = 10Const 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.....) 1
X-ProgRammeR Posted May 22, 2013 Author Posted May 22, 2013 Thanks Dreamer and The Trooper. My problem is now solved........
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now