|
i have five tables , i want to populate the database using the arrays.
|
|
|
|
|
That's fine ..but 3 dimensions should be ok for your requirement!!
James
|
|
|
|
|
hi all,
What is the namespace to be used in C# for creating a Word Object (eg : Word.Window wnd = ThisApplication.ActiveWindow.NewWindow();)
also can anyone help me hoew to write two namespaces under one class
shani
|
|
|
|
|
Probably this one: Microsoft.Office.Tools.Word
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
|
Hello friends,
I have developed one application,
in that if user clicks on close button the application is minimize to system tray
if user want to close the application than user will right click on system tray
icon and click on close buton.
Now problem is when my application is in system tray
and if i am going to shutdown/restart/logoff my ocmputer than all processes
is going close but after that nothing is happening.
if i want to shutdown the computer than i have to close my application first
can anyone having idea regarding this??
please help me as soon as possible
any kind of help is appreciable
thanks in advance
Irfan Kothari
|
|
|
|
|
Add the following code to your form. It filters the session end message and sets a flag that can be tested in the Closing event handler.
protected override void WndProc(ref Message m)
{
if (m.Msg == 0x0011)
this.allowClosing = true;
base.WndProc(ref m);
}
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hello stefan,
i have found very simple solutuion to this problem.
before your posting
but than also thanks.
whenever we click on shutdown it will call form closing event in the application
and i have written following code in my form closing event.
this.WindowState = FormWindowState.Minimized;
this.Opacity = 1;
this.ShowInTaskbar = false;
if (this.FrmCloseFlg == false)
{
e.Cancel = true;
}
thats y my application is not going to exit instead it will be in minimize
position.
so i have used one boolean variable and use condition as follows
if(!InSystemTray)
{
this.WindowState = FormWindowState.Minimized;
this.Opacity = 1;
this.ShowInTaskbar = false;
if (this.FrmCloseFlg == false)
{
e.Cancel = true;
}
//UserCanceled = true;
UserInfo.InSystemTray = true;
}
else
{
Application.Exit();
}
The InSystemTray will set to false again whenever we manually clik on open context menu or double click tray icon ,whatever it is.
is it simple na!!!!!
So we dont have a right to call any person an idiot ok buddy,be cool
Regards,
Irfan Kothari
|
|
|
|
|
Hi,
He didn't called you an idiot. Its his signature
Like you got yours:
"Regards,
Irfan Kothari"
|
|
|
|
|
Sorry Guys,
I have misunderstood it.
ok anyways sorry once again
Regards,
Irfan Kothari
"Take Care Not Chances"
|
|
|
|
|
hi,
can any body tell me how to know when the user press the ctrl+A combination keys inside a textbox.
i used the keypressed event but i need to know if those keys are pressed to do some action
best regards
Jamil Abou Khalil
|
|
|
|
|
hi
On that keycode of keys you can able to write the code..........
Shiv
|
|
|
|
|
ur kidding right???
I know where i can write it and i told u that before if you can read.
i want to know what is the line of code that do that action.
Try not to be stupid in you answers
Jamil Abou Khalil
|
|
|
|
|
Hey,
try this:
private void textBox1_KeyDown(object sender, KeyEventArgs e)<br />
{<br />
<pre> if (e.KeyData == ((Keys.Control) | (Keys.A)))<br />
MessageBox.Show("Gotchya!");</pre><br />
}
I'm using the KeyDown event.
Hope that helps,
Ashish
|
|
|
|
|
It didn't work cz there is nothing called e.KeyData and if i use e.KeyChar it gives me an error cz i can't compare an object of type char to an object of type key.
if you have any other solution please tell me. thanks.
Jamil abou khalil
|
|
|
|
|
You said 'Try not to be stupid in you answers' to someone. My response would be, try not to be stupid.
You're obvioulsy overriding the KeyChar event, when you were just told to override the KeyDown event.
I'm not sure if the code you were given will work, but this will:
if (ea.Control && ea.KeyCode == Keys.A)
in the KEYDOWN event, NOT the KeyChar event.
Christian Graus - C++ MVP
|
|
|
|
|
I didn't know that you are a lawyer for others.
Anyway thanks for ur explanation.
Jamil abou khalil
|
|
|
|
|
You have to register to either KeyDown or KeyUp event.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
If you want to use the Keys enumeration you must use the KeyCode Property of the KeyEventArgs.
The Object Browser documentation for the property is as follows:
public System.Windows.Forms.Keys KeyCode [get]
<br />
protected override void OnKeyUp(KeyEventArgs e)<br />
{<br />
if(e.Control&&e.KeyCode==Keys.A)<br />
MessageBox.Show("Hello World");<br />
base.OnKeyDown (e);<br />
}<br />
In order to use this code you must first enable KeyPreview in the Form's property window. This code uses the e.Control property in the KeyEventArgs and the e.KeyCode property to determine the two keys that were pressed. You cannot get two keys out of the e.KeyCode method (at least that is what I am thinking right now).
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
hi all , im working with VS.net 2005, i want to use Shockwave flash object ,but when it cause the following error : Faild to import the ActiveX control . Please ensure it is Properly registered.
|
|
|
|
|
Hi all,
i have created a application, which has a notify icon in the system tray.
I have also created a installer for this app.
Now when i install and execute the application, the icon is displayed in the system tray.
Now i keep the app running and UnInstall the app from the Add/Remove Programs.
The uninstall process displays a message to close the form. i close the form and continue the uninstall process.
The application is successfully uninstalled, but the icon from the system tray does not goes , and also the exe exists in the task manager.
Now if i click on the icon the form is displayed and the app runs perfectly,
even the app is uninstalled.
My question is how do i remove the exe from the taskmanager and also the icon from the system tray during the uninstall process.
I tried a solution, by creating a small console app which searches the app's exe from the process and kills the process.
I added this project in the Custom Actions Uninstall folder, but this is not working.
Any help in this regard will be appreciated.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Is there a way to monitor what comes over the web to your computer?
A capture type pgm that can be written in C#?
Thanks
Bob
|
|
|
|
|
Hi, I have A container and i want to disable the scroll that appears when the windows inside goes farther than the set dimensions. So i want to disable the scrolls so the windows inside can not go father that the dimensions set. Somebody told me to try to set the dock property but a container does not have that property.
La Light
|
|
|
|
|
you can set scrollbar property through properties of container where you can disable scroll bars.
|
|
|
|
|
The problem is that i dont find a property that can disable the the scroll bars. i was looking thoughout all the properties. but you can tell me a little more.
Thank you,
La Light
|
|
|
|