Click here to Skip to main content
15,920,217 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Call MDI form procedure in Toolbar Pin
Charlie Williams30-Mar-04 5:25
Charlie Williams30-Mar-04 5:25 
GeneralRe: Call MDI form procedure in Toolbar Pin
Anonymous31-Mar-04 2:25
Anonymous31-Mar-04 2:25 
GeneralRe: Call MDI form procedure in Toolbar Pin
Anonymous31-Mar-04 5:16
Anonymous31-Mar-04 5:16 
GeneralInvoking a VBA macro from a VB app Pin
LeprosyLM30-Mar-04 2:37
LeprosyLM30-Mar-04 2:37 
Generalediting state Pin
ibok2329-Mar-04 15:58
ibok2329-Mar-04 15:58 
GeneralRe: editing state Pin
Dave Kreskowiak29-Mar-04 17:14
mveDave Kreskowiak29-Mar-04 17:14 
GeneralRe: editing state Pin
ibok2330-Mar-04 3:12
ibok2330-Mar-04 3:12 
GeneralRe: editing state Pin
Dave Kreskowiak30-Mar-04 3:54
mveDave Kreskowiak30-Mar-04 3:54 
Usually not. It all depends on what your doing and your design. You usually don't enable or disable menu items unless some kind of mode has changed in your program, like when Visual Studio goes from editing code to debugging.

For instance, if you have two buttons on a form, Start and Stop, you would normally start the app with the Start button enabled and the Stop button disabled. When you click Start:
Private Sub btnStart_Click(...)
    btnStart.Enabled = False
    btnStop.Enabled = True
    ... start some process ...
End Sub

and in the click event of the Stop button:
Private Sub btnStop_Click(...)
    btnStop.Enabled = False
    btnStart.Enabled = True
    ... stop whatever process you started...
End Sub


But, you usually NEVER change the enabled status of controls based on the enabled status of another.


RageInTheMachine9532
GeneralRe: editing state Pin
ibok2330-Mar-04 4:10
ibok2330-Mar-04 4:10 
GeneralRe: editing state Pin
Dave Kreskowiak30-Mar-04 9:20
mveDave Kreskowiak30-Mar-04 9:20 
Generalunique, independent instance of Word Pin
MRafferty29-Mar-04 14:59
MRafferty29-Mar-04 14:59 
Generalfollowed this example but mine doesnt work Pin
KamWaf29-Mar-04 13:55
KamWaf29-Mar-04 13:55 
GeneralRe: followed this example but mine doesnt work Pin
eramgarden29-Mar-04 16:53
eramgarden29-Mar-04 16:53 
GeneralPocket PC Pin
Tvalsia29-Mar-04 10:45
Tvalsia29-Mar-04 10:45 
GeneralRe: Pocket PC Pin
Sarvesvara (BVKS) Dasa29-Mar-04 17:51
Sarvesvara (BVKS) Dasa29-Mar-04 17:51 
GeneralRe: Pocket PC Pin
jimpar30-Mar-04 8:47
jimpar30-Mar-04 8:47 
QuestionInsert error??? Pin
hounetdev29-Mar-04 9:13
hounetdev29-Mar-04 9:13 
AnswerRe: Insert error??? Pin
KamWaf29-Mar-04 14:36
KamWaf29-Mar-04 14:36 
AnswerRe: Insert error??? Pin
Member 36080530-Mar-04 11:50
Member 36080530-Mar-04 11:50 
GeneralBinding objects - Error Pin
ibok2329-Mar-04 8:55
ibok2329-Mar-04 8:55 
GeneralRe: Binding objects - Error Pin
ibok2329-Mar-04 14:08
ibok2329-Mar-04 14:08 
Generalselecting a data in flexgrid Pin
GaryKoh29-Mar-04 5:43
GaryKoh29-Mar-04 5:43 
GeneralRe: selecting a data in flexgrid Pin
superwinsock29-Mar-04 23:49
superwinsock29-Mar-04 23:49 
GeneralRe: selecting a data in flexgrid Pin
GaryKoh30-Mar-04 0:44
GaryKoh30-Mar-04 0:44 
GeneralRe: selecting a data in flexgrid Pin
superwinsock30-Mar-04 1:15
superwinsock30-Mar-04 1:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.