|
hi,
how to show tooltip on toolstrip button
thanks
|
|
|
|
|
Hope this will give and Idea.
internal ToolStripButton imageButton;
private void InitializeImageButtonWithToolTip()
{
// Construct the button and set the image-related properties.
imageButton = new ToolStripButton();
imageButton.Image = new Bitmap(typeof(Timer), "Timer.bmp");
imageButton.ImageScaling = ToolStripItemImageScaling.SizeToFit;
// Set the background color of the image to be transparent.
imageButton.ImageTransparentColor = Color.FromArgb(0, 255, 0);
// Show ToolTip text, set custom ToolTip text, and turn
// off the automatic ToolTips.
toolStrip1.ShowItemToolTips = true;
imageButton.ToolTipText = "Click for the current time";
imageButton.AutoToolTip = false;
// Add the button to the ToolStrip.
toolStrip1.Items.Add(imageButton);
}
Regards,
Satips.
|
|
|
|
|
Hai Everybody,
I wish you all a nice and colorful day.
I am creating a windows service application in which I want to get the server address and then i want to create a messagequeue in the server and another service has to manipulate the messages in the message queue.
Can anyone tell me how to get the server's message queue location.
I did this with the public queue in the local machine. it is working fine.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Do you mean how to get a list of the queues on that remote machine?
Or do you mean how do you access a queue on a remote machine?
To get a list you can use:
System.Messaging.MessageQueue.GetPrivateQueuesByMachine
System.Messaging.MessageQueue.GetPublicQueuesByMachine
To access it its just the same as the local queues except you use a machinename instead of '.'
|
|
|
|
|
Thank you very much.
I want to know how can i get the machine name, because the service can run on any server so that i cannot hardcode the machine name.
how can i get the local machine name or the server to which it has connected.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
As far as I know you need to supply the machine name.
I dont think there is anything that will search the network for you so, you could retrive the machine name of every machine on the network and then cycle through and query each one on what6 queues it has.
|
|
|
|
|
Hi All,
I want to display the tables in my database by using a HTML web page. This should be created when the user clicks the next button in a C#.NET form.
|
|
|
|
|
There are many data bound controls, from the Repeater ( which gives you full control ) to the GridView ( which does all sorts of stuff for you, if you ask it to ). Just make your table the data source of a data bound control, and call it's DataBind method.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Is there any way to kill a process and to close only a handle of a process(not complete process).
|
|
|
|
|
A handle is representative of an object, how would you close a handle, but not the object it represents ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
your are right, but the Process Explorer(Sys Internal) supports to close the handle too, i wonder how did the Process Explorer team achieve that task.
I am sorry if have done some english grammatical mistakes.
Regards,
Mushq
|
|
|
|
|
Hello,
Killing a process is possible over the System.Diagnostics.Process class. (method kill)
To get the process you could use GetProcessByName method.
Mushq wrote: and to close only a handle of a process
I think you have to specify a little more what you whant to do.
All the best,
Martin
|
|
|
|
|
Thanx, I have got the answer of my first part of question that how to kill a process, and about handle, for that i am taking particular example of Explorer.exe process, I have created Test folder in C dervice, and Test Folder in D Derive, and i have opened both of them simultaneously, Explorer.exe process has got handle of both these opened folder, when i search C:\Test in process explorer(Sys Internals), then it shows me that explorer.exe has loaded the handle C:\Test Folder.
I am sorry if have done some english grammatical or spelling mistakes.
Regards,
Mushq
|
|
|
|
|
Hello,
I'm just curious, so please don't think I'm rude.
But have you voted me down couse I haven't answered you second question?
If yes!
I didn't take time, cause I have work to do and I thought the answere from
Vasudevan Deepak Kumar [^] should help you enough!
If not, sorry for asking!
All the best,
Martin
|
|
|
|
|
I hadn't rated your answer down, i have given 5/5, you can check that there are two votes have been given to your message, i have given 5/5, and there is some one else who has rated that down, even i have replied that message with thanks.
I hope it is clear now
sorry for my english if it is not correct!
Best Regards,
Mushq
|
|
|
|
|
Mushq wrote: I hadn't rated your answer down, i have given 5/5, you can check that there are two votes have been given to your message, i have given 5/5, and there is some one else who has rated that down, even i have replied that message with thanks.
I was assuming this!
Again, I'm really sorry for asking but I'm allways a little confused when I get downvoted with no explination!
Thanks for your time
All the best,
Martin
|
|
|
|
|
|
hi, can anybody give me an idea as to what is the sequence of events carried out to build and execute .dtsx packages in SSIS. Coz i want to be able to call the same methods in the same sequence from my C#.NET ETL application.Please help
|
|
|
|
|
Dear I am Using This Code Please Help Me if U Know ?
private void CycleBGColor(Object stateInfo)
{
bool flag = true;
while (flag)
{
dataCell.Style.BackColor = Color.Red;
Thread.Sleep(500);
dataCell.Style.BackColor = Color.Pink;
Thread.Sleep(500);
}
}
private void dataGridView1_CellValueChanged_1(object sender, DataGridViewCellEventArgs e)
{
try
{
row = dataGridView1.Rows[e.RowIndex];
dataCell = row.Cells[e.ColumnIndex];
ThreadPool.QueueUserWorkItem(new WaitCallback(CycleBGColor));
}
catch (Exception er)
{
return;
}
}
Girish Sharma
|
|
|
|
|
I tried to create a SetColor command and a ColorPicker which uses it.
There is one effect I cannot reproduce, it is tracking the CommandSource and wether it's valid.
By that I mean if I create a MenuItem like that:
<MenuItem
Header="Blue"
Command="{x:Static local:MyCommands.SetColor}"
CommandParameter="{x:Static Colors.Blue}" />
It enables/disables depending on wether the currently focused element respond to the SetColor command.
But my ColorPicker never get any CanExecute or whatever event call, therefore I cannot update it appropriately (i.e. enable/disable) when the focused element change.
I implemented ICommandSource, used a RoutedEvent, I never get any relevant info....
Any idea what I could have missed?!?
|
|
|
|
|
found it!
it's quite tricky, I remember read about it in a blog 6 month ago but it's nowhere in the documentation!!!
(Thanks Reflector)
RoutedCommand.CanExecuteChanged strore the event handlers as WeakReference.
Therefore you have to hold a reference to the handlers your self if you want your event handler to be called....
|
|
|
|
|
i want to show "welcome " as red in the textbox ServerTB & change it's font size to 14
ServerTB.Text += "Welcome " ;
can anyone help;
thanks so much
|
|
|
|
|
Have you heard about CSS?
Regards,
Satips.
|
|
|
|
|
|
CSS[^]
Regards,
Satips.
|
|
|
|