My app has a nice menu strip, with two tool strips, one containing file options, and other contanining options options (oO)
The bad part is... the options toolstip has two subitems that should be excluse. Like: I click one, other gets unclicked and become not functional. I've tried it, but with no sucess.
A little help, maybe? =)
Thanks a lot! Here is a screen of what I'm saying:
hi.. u should check or unchecked the sub items. if u disable another on clicking the other then how will u enable the disable one..(because u cant click disabled item)
here use something like this:
Private Sub Sub1ToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Sub1ToolStripMenuItem1.Click Sub2ToolStripMenuItem.Checked = False Sub1ToolStripMenuItem1.Checked = True End Sub Private Sub Sub2ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Sub2ToolStripMenuItem.Click Sub2ToolStripMenuItem.Checked = True Sub1ToolStripMenuItem1.Checked = False End Sub
I was trying to do with Ifs and I would NEVER think on this. Tomorrow I'll try it, now I have to sleep (its 2:30Am here.)
Thanks in advance!
It worked perfectly (:
I was being so dumb... hahaha!
i am using vb asp.net
error: there is already an open DataReader associated with this Command which must be closed first.
working on this issue for couple weeks now and ...
import tkinter root = tkinter.Tk() root.geometry("200x200") buttons=[i for i in range(10)] def getNext(): #If specific button is pressed, output "YES" for num in buttons: btn=tkinter.Button(root, text=num,command=getNext) btn.pack(side=tkinter.TOP)