|
At first, I apologize for my english.
I have a problem, which now I don't have any kinds of solution of it.
My program is minimizing into the tray and becomes invisible in the Windows taskbar. It happends this way:
this.WindowState = FormWindowState.Minimized;
this.ShowInTaskbar = false;
And after this actions I cannot shutdown the computers or restart the system until I unload (close)my program by hand.
Could you give me an advise what to do to solve my trouble.
Thanks in advance.
|
|
|
|
|
I take it you're handing the form's Closing event and cancelling the Close so you can, instead, minimize the form? This is where your problem is. Since your cancelling the Close, your app never closes and it causes Windows to abort the Logoff/Shutdown.
You might want to read this[^] little tidbit under "System Notification Tray".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 12:05 Monday 23rd January, 2006
|
|
|
|
|
Thank you for your wish to help!
It's very interesting link you pointed.
But unfortunately I have not found the answer on my question in this article.
|
|
|
|
|
The point of that article was that there is no startup form! Your app creates the NotifyIcon and continues from there.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is C# a pure object oriented language?
Vikas Amin
Embin Technology
Bombay
|
|
|
|
|
|
I would say "yes", but, as with any other language, someone will find a way to prove me wrong
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Yes.
C# is developed as an object oriented language from start, not as C++ or Delphi, that are originally procedure oriented languages (C and Pascal) with object orientation added to the syntax.
---
b { font-weight: normal; }
|
|
|
|
|
i have a number of Richtext boxes which i have arranged
in a tabular manner and i want to print the contents of
these richtextboxes with the formatted text in them.
i have tried the selecting each character one by one and
passing the character, it's font and color to
the Graphics.Drawstring() method.
The problem that i am facing is the font and color applied
to the whole text is that of the first character in the richtextbox
Please if anyone can help me to print the words with
it's own font and color.
Thanks
Pramod
|
|
|
|
|
Look up the EM_FORMATRANGE , EM_DISPLAYBAND and EM_SETTARGETDEVICE messages. See here for details.
Steve
|
|
|
|
|
I have seen the EM_FORMATRANGE but i have already used it
for the main Richtextbox i.e the editor that i have created.
now when i use the same method for the richtextbox of the table
the text in the last cell of the Table is printed on the main page
and the table cells are displayed blank
any other idea or code will be very useful for me
Thanks
Pramod
|
|
|
|
|
Take a look here[^] for an extended RichTextBox that can perform printing.
Regards,
mav
|
|
|
|
|
Hi Mav
i have already used a Richtextbox to create the editor and then i place these
richtextboxes to form the table
so i have used this printing method for the editor and now i also want
to print the table and its contents with the formatted text.
Thanks
Pramod
|
|
|
|
|
hi guys, i have a parent datalist in which i add child datalist and in child datalist i have some contols like label and image. can any 1 tell me how can i catch the child datalist event like parent datalist event i caught by writing it on initialize components like
initialize components
this.parentdatalist.ItemDataBound += new System.Web.UI.WebControls.DataListItemEventHandler(this.parent_ItemDataBound);
private void parent_ItemDataBound(object sender, System.Web.UI.WebControls.DataListItemEventArgs e)
{}
but i have no idea where should i write my child datalist event like parent datalist child event written in initialize component...
|
|
|
|
|
Anyone know why this repeats Horizontal twice and LargeGrid three times? Was the same enumeration values declared more than once?
foreach(HatchStyle a in Enum.GetValues(typeof(HatchStyle)))
{
MessageBox.Show(a.ToString());
}
|
|
|
|
|
Hi all,
I am trying to deploy my application.
So users can install and use the app. on their systems.
I tried following the below article but get stuck because my visual studio express edition seems not to have deployment features. (or maybe im doing something wrong i have the lasted version of express edition visual studio c#)
http://www.c-sharpcorner.com/Code/2002/July/BuildnDeployUsingVSNet.asp[^]
In particular i dont get the option to choose "Setup and deployment projects" when creating a new project. So i cant follow the artical.
Someone please help or send me in the right direction
Thanks in advance
|
|
|
|
|
You could
a) Write your own installer-program
b) use a free installer (Nullsoft et al) or
c) use a free msi-compiler and write the setup-scripts by hand.
I suggest you use option b).
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Thanks for the info but where can i find Nullsoft et al free installer?
I tried googleing but nothing pertaining to an free installer...
You have a tutorial or article on any of the 3 steps you listed above.
Would be helpful...
Thanks.
So i take it i cant build and deploy using visual studio express edition?
Paul
|
|
|
|
|
I have a table with a column containing prices in which the format is currency. When reading from this table into a listview by way of a Dataset > DataView.
The code is:
DataRow drow = purchDV.Tables.Rows[0];
ListViewItem lvi = new ListViewItem(drow["Price"].ToString());
When the list is displayed it shows the Price column as numbers and not currency values. eg. 15000 instead of $15,000. I believe it is when it is converted to a string.
How do I change the format for the column so that the values display correctly???
|
|
|
|
|
string.Format[^] is what you need.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Sorry for being such a newb but how do I include that in the code i have?
|
|
|
|
|
ListViewItem lvi = new ListViewItem(String.Format("{0:C}", drow["Price"].ToString()));
I believe.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hmm... Doesn't appear to be working. Still doesn't show the $ sign.
I appreciate your help
|
|
|
|
|
|
Comes up with "no overload for method 'ToString' takes '1' arguments"
|
|
|
|