Click here to Skip to main content
15,901,001 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe:Stewart Pin
momer27-Oct-04 21:51
momer27-Oct-04 21:51 
AnswerRe: the offset is calculated by byte or by double bytes? Pin
Heath Stewart27-Oct-04 21:56
protectorHeath Stewart27-Oct-04 21:56 
GeneralXML Elements with escape characters in their names Pin
Guillermo Jimenez27-Oct-04 16:53
Guillermo Jimenez27-Oct-04 16:53 
GeneralRe: XML Elements with escape characters in their names Pin
Nick Parker27-Oct-04 17:50
protectorNick Parker27-Oct-04 17:50 
GeneralRe: XML Elements with escape characters in their names Pin
Guillermo Jimenez27-Oct-04 18:11
Guillermo Jimenez27-Oct-04 18:11 
GeneralRe: XML Elements with escape characters in their names Pin
Heath Stewart27-Oct-04 20:57
protectorHeath Stewart27-Oct-04 20:57 
GeneralColor shading like the Windows Media Player v10 Pin
Tony D. Abel27-Oct-04 15:57
Tony D. Abel27-Oct-04 15:57 
GeneralRe: Color shading like the Windows Media Player v10 Pin
Nick Parker27-Oct-04 17:53
protectorNick Parker27-Oct-04 17:53 
GeneralDataSet designer Pin
Corneliu Tusnea27-Oct-04 13:51
Corneliu Tusnea27-Oct-04 13:51 
GeneralRe: DataSet designer Pin
sreejith ss nair27-Oct-04 18:35
sreejith ss nair27-Oct-04 18:35 

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.