Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to make command button in VISUAL BASIC 06

Featured Replies

Posted

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...

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

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.....)

  • Author

Thanks Dreamer and The Trooper.


 


My problem is now solved........


Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.