Click here to Skip to main content
15,914,820 members
Home / Discussions / C#
   

C#

 
QuestionHow to change the Title Bar Color Pin
Zapss27-Oct-04 22:28
Zapss27-Oct-04 22:28 
Generaltimer function Pin
ppp00127-Oct-04 21:48
ppp00127-Oct-04 21:48 
GeneralRe: timer function Pin
Stefan Troschuetz27-Oct-04 23:00
Stefan Troschuetz27-Oct-04 23:00 
GeneralRe: timer function Pin
ppp00127-Oct-04 23:04
ppp00127-Oct-04 23:04 
GeneralRe: timer function Pin
Stefan Troschuetz27-Oct-04 23:11
Stefan Troschuetz27-Oct-04 23:11 
GeneralRe: timer function Pin
Salil Khedkar27-Oct-04 23:08
Salil Khedkar27-Oct-04 23:08 
GeneralRe: timer function Pin
Dave Kreskowiak28-Oct-04 3:28
mveDave Kreskowiak28-Oct-04 3:28 
GeneralRe: the offset is calculated by byte or by double bytes? Pin
momer27-Oct-04 20:48
momer27-Oct-04 20:48 
GeneralHelp Prob: not recognised as MDIContainer Pin
dazzler227-Oct-04 20:34
dazzler227-Oct-04 20:34 
GeneralRe: Help Prob: not recognised as MDIContainer Pin
Heath Stewart27-Oct-04 21:31
protectorHeath Stewart27-Oct-04 21:31 
QuestionKnow any articles on pasting files from Explorer? Pin
Anonymous27-Oct-04 19:44
Anonymous27-Oct-04 19:44 
AnswerRe: Know any articles on pasting files from Explorer? Pin
Heath Stewart27-Oct-04 21:22
protectorHeath Stewart27-Oct-04 21:22 
GeneralRandom thing Pin
Yulianto.27-Oct-04 18:50
Yulianto.27-Oct-04 18:50 
GeneralRe: Random thing Pin
Stanciu Vlad27-Oct-04 19:52
Stanciu Vlad27-Oct-04 19:52 
GeneralRe: Random thing Pin
Corinna John27-Oct-04 20:19
Corinna John27-Oct-04 20:19 
GeneralRe: Random thing Pin
J4amieC27-Oct-04 23:12
J4amieC27-Oct-04 23:12 
GeneralEnabling/Disabling toolbars dynamically Pin
amil021427-Oct-04 18:10
amil021427-Oct-04 18:10 
GeneralRe: Enabling/Disabling toolbars dynamically Pin
sreejith ss nair27-Oct-04 18:31
sreejith ss nair27-Oct-04 18:31 
This is a matter of logic. See here i have a tool bar with few toolbar buttons.I will nable or disable toolbar buttons based on users selection.
Eg:

private void PBToolBar_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
			{
				try
				{
					switch(PBToolBar.Buttons.IndexOf(e.Button))
					{
						case 0:
						{
							formA PBAUS = new formA();
							PBAUS.Show();
						}break;

						case 1:
						{
							toolBarButton10.Enabled=false;
							LoadPlan();
						}break;

						case 2:
						{
							MessageBox.Show(e.Button.ToolTipText.ToString());
						}break;

						case 3:
						{
							save();
							toolBarButton10.Enabled=true;
							menuItem11.Enabled=true;
							//					if(split_undo_flag==0)
							//					{
							//						toolBarButton10.Enabled=true;
							//					}
						}break;
continue.......................



Here what i am doing is , i am getting the index of toolbar button that user clicked.And based on this values i will enable or disable toolbar buttons.
See the logic above and try to figurout your self to achive your goals.Big Grin | :-D

Sreejith Nair
[ My Articles ]
Questionthe offset is calculated by byte or by double bytes? Pin
momer27-Oct-04 16:58
momer27-Oct-04 16:58 
AnswerRe: the offset is calculated by byte or by double bytes? Pin
sreejith ss nair27-Oct-04 18:32
sreejith ss nair27-Oct-04 18:32 
GeneralRe: the offset is calculated by byte or by double bytes? Pin
momer27-Oct-04 20:48
momer27-Oct-04 20:48 
GeneralRe: the offset is calculated by byte or by double bytes? Pin
Heath Stewart27-Oct-04 20:58
protectorHeath Stewart27-Oct-04 20:58 
GeneralRe: the offset is calculated by byte or by double bytes? Pin
momer27-Oct-04 21:30
momer27-Oct-04 21:30 
GeneralRe: the offset is calculated by byte or by double bytes? Pin
Heath Stewart27-Oct-04 21:41
protectorHeath Stewart27-Oct-04 21:41 
GeneralRe: the offset is calculated by byte or by double bytes? Pin
momer27-Oct-04 21:51
momer27-Oct-04 21:51 

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.