|
I would add a new voice at the windows menu that appear if someone right click on whichever inputbox or textbox of whichever application running.
how?
|
|
|
|
|
I already answered your question on the previous page. Look into Windows Shell integration.
Tech, life, family, faith: Give me a visit.
Judah Himango
|
|
|
|
|
Yes but i've founded nothing about.
Can you show me some tutorial?
Furthermore i know it is possible add a new voice to the Windows context menu by RegKey. But i don't know where is the key value about rightclick context menu of Windows InputTextbox.
Thanks
|
|
|
|
|
|
yes but there is not explained how create a new key for right-click OF TEXTBOX.
It is not deducible by alone, i need some indication.
Sorry
|
|
|
|
|
Ah, my mistake, I misunderstood before as your English is not your first language.
For creating a context menu item that integrate into all TextBox controls in Windows, I cannot help you. It is possible, and will include Windows Shell integration, but I don't have any articles to point you to. Sorry.
Tech, life, family, faith: Give me a visit.
Judah Himango
|
|
|
|
|
Ok, thank you, but are there someone know that?
|
|
|
|
|
Yes. I suggest you post this topic in the forum again tomorrow.
If you do post again, use a different subject for your post. "how add new voices to the windows menu" is difficult for English speakers to understand. Instead, try something similar to "how to add a new option to Windows textbox context menu"
Tech, life, family, faith: Give me a visit.
Judah Himango
|
|
|
|
|
thanks friend!
|
|
|
|
|
I am not able to handle the shutdown event in my Windows Form Application. I tried writing an event handler for the shutdown event using session ending event handler provided in .NET. The code snippet for this is as follows. When such an event is fired this function doesn't get called.
private void ShutDown(Object sender, SessionEndingEventArgs e)
{
if (e.Reason == SessionEndReasons.Logoff || e.Reason == SessionEndReasons.SystemShutdown)
{
if (File.Exists(timeSheetFile))
{
if(DialogResult.Yes == MessageBox.Show("My application", "Do you want to do complete some task.", MessageBoxButtons.YesNo))
e.Cancel = true;
else
e.Cancel = false;
}
}
}
Instead a message box appears which displays "The application failed to initialize because the window station is shutting down".
Sachin Gera
|
|
|
|
|
The MSDN topic[^] of the SystemEvents.SessionEnding event (I assume you mean this one with shutdown event) states:
"If you are using SessionEnding in a Windows form to detect a system logoff or reboot, there is no deterministic way to decide whether the System.Windows.Forms.Form.Closing event will fire before this event.
If you want to perform some special tasks before System.Windows.Forms.Form.Closing is fired, you need to ensure that SessionEnding fires before System.Windows.Forms.Form.Closing. To do this, you need to trap the WM_QUERYENDSESSION in the form by overriding the WndProc function."
The example, which demonstrates how to do this in a deterministic way, is written in VB.NET but I guess you'll be able to understand and convert to C#.
www.troschuetz.de
|
|
|
|
|
i have created a client server application. after installing the deployed client application, it cannot connect to the server. but it could connect when ran using the solution. do i need to add anything to the deployment project to make it work? what could be the problem?
|
|
|
|
|
I want to write a program that monitor all key press on my computer, even when users are currently working with other program.
I've tried IMessageFilter interface but it didn't work, it do only when my applicantion got focus.
Anyone help me?
Thank you very much.
|
|
|
|
|
|
thank you stefan. I'm able to do it now.;)
|
|
|
|
|
Hello
i am getting muliple instances warning on the following line:
DirectoryEntry W3SVC = new DirectoryEntry("IIS://" + ServerName + "/w3svc");
how can I getrid of this?
-adnan
|
|
|
|
|
I have a problem with this code. I am reading a value from a SQL Server and try to check it.
<br />
while(rdr.Read())<br />
{<br />
if(rdr.GetSqlValue(4)==1)<br />
{<br />
ArrayMandant.Add(rdr.GetString(0) + "#" + rdr.GetString(1) + "#" +<br />
rdr.GetString(2) + "#" + rdr.GetString(3) + "#" +<br />
rdr.GetValue(4).ToString() + "#" + rdr.GetString(5));<br />
}<br />
}<br />
I get a build error. Operator "==" cannot be used on objects and int. How I am able to check this value ?
|
|
|
|
|
You could either use a method of the SqlDataReader class that already returns an integer:
if (rdr.GetInt32(4) == 1)
or cast the return value of GetSqlValue .
if (((int) rdr.GetSqlValue(4)) == 1)
www.troschuetz.de
|
|
|
|
|
Hi,
You are getting that error because GetSqlValue is returning an object and you are trying to compare it with an int. Trying using GetSqlInt32 to get the column value instead of GetSqlValue.
Thanks
SGS
|
|
|
|
|
Hello c# professionals,
I would like to customize my data grid like a SQL Server database table.This means when I press the ENTER key the cursor must move to the next cell.And when the cursor at the last column of the row and by pressing the ENTER key the cursor must move to the next line and first column..
Can anyone help?
|
|
|
|
|
I would to add to the default Windows context menu (copy/cut/delete/cancel) (that appear when the user right-click inside a textbox) a new voice during my software' installation.
If that voice is pusshed it calls my software passing a "pointer" to that textmenu, so i can set its text with what i want.
How can i do? I know to use Windows Shell integration, but where can i found these insformation? Iìve serched in google, msdn and in codeproject but i've founded nothing?
Please answer me becouse it is important.
Thanks
|
|
|
|
|
Hi guys !
would be very thankful if somebody suggested what is happening here and how i can resolve
this issue. the problem is that iam encrypting and sending messages over the LAN with
tcpclient stream class. on the receiving end i am trying to decrypt the message but a get a
whole set of different characters
no where near the source message
iam using
client.GetStream().EndRead(ar);
followed by
Encoding.ASCII.GetString(readBuffer, 0, BytesRead - 1);
thanks in advance
manishjadhav
|
|
|
|
|
|
hi colin thanks very much for the quick response.
i am using ASCII encoding right now on the server side but i have tried unicode as well but the characters still get tampered. please guide
thanks
|
|
|
|
|
Hi
When i open a .tif file in picture box, i should be able to see or open all the pages. A .tif file can have any number of pages. I should be able to display all the pages in the picture box one by one. How can i do this?
I also need to zoom in and zoom out the image. Also scrolling of the image.
Can anyone help me? If possible please send me the code to open multiples pages of .tif files, zoom in and zoom out of image and scrolling of image.
|
|
|
|