|
I define AcceptButton of the Form.
When i saw it is not helping - i try to use the Focus method on the Form button that i want to Fucos - But its also does not help.
|
|
|
|
|
|
Hi,
From the main form of a Windows application I am creating a modal dialog (using ShowDialog ).
Is there any way I can detect when the user clicks outside the child form? It flashes a bit so I think it should have some sort of event behind. I have intercepted Deactivate but it seems that it's not the one.
"la dolce ossessione degli ultimi suoi giorni tristi,
Venezia, la vende ai turisti" rechi
|
|
|
|
|
AFAIK, you can't. This is the way modal dialogs works. Why do you want this ?
|
|
|
|
|
N a v a n e e t h wrote: Why do you want this ?
I want to destroy the child. I have tried by calling the Show method but it fails when a modal child creates a modeless child and the user clicks on the main form
"la dolce ossessione degli ultimi suoi giorni tristi,
Venezia, la vende ai turisti" rechi
|
|
|
|
|
Bogdan Rechi wrote: I want to destroy the child
Child ? Do you mean the modal window ? and you want the control back to Parent window ? Why don't you have a close button for your child ?
|
|
|
|
|
N a v a n e e t h wrote: Do you mean the modal window ?
No, the configuration is: main form -> modal child -> modeless child, and I am clicking outside the modeless, outside the modal, and inside the main form. I would like to intercept the click and make the modeless disappear.
It's a kind of tooltip
"la dolce ossessione degli ultimi suoi giorni tristi,
Venezia, la vende ai turisti" rechi
|
|
|
|
|
hi all,
can anybody tell me how to read html file in a string?
Thanks in advance
Gaurav Malhotra
Gaurav
|
|
|
|
|
You can use streamreader class to open the html file as a text file and read it in a string but it will contain all the tags. If you don't need them, you'll need to parse the string.
|
|
|
|
|
just simple as text file !!!
|
|
|
|
|
Dear friends,
i have developed my project in .net 2005(c# with asp.net2.0). After that i have uploaded to our server. when i try to access that page it wil show some error msg like below,
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized configuration section 'connectionStrings'
Source Error:
Line 10: <configuration>
Line 11: <appsettings>
Line 12: <connectionstrings>
Line 13: <system.web>
Line 14:
|
|
|
|
|
Hi,
while creating a Windows Control library how can i add Tooltip for that property? means while i select the property it will give the description on tooltip.
means while select MyControl.Property, a tooltip descripton will show.
Please help.
Thanks in advance...
|
|
|
|
|
Abhijit Jana wrote: means while i select the property it will give the description on tooltip.
I am not clear with your question ? Where do you want the description to appear ? Down to the property bar ? or as a tool tip when mouse points ?
|
|
|
|
|
Thanks ... for reply
N a v a n e e t h wrote: as a tool tip when mouse points ?
I want in this situation . While i am going to select any property descripton will come as Tooltip like all other proerty.
|
|
|
|
|
Abhijit Jana wrote: While i am going to select any property descripton will come as Tooltip like all other proerty.
Still not clear. Ok see the following samples
[Description("This is a tooltip")]
public void ToolTip
{
get{}
set{}
} Description is an attribute used to show the property description on the VS property bar for your control. If you want to show the description when mouse points over the property in code window, you need to enable XML documentation.
public void ToolTip
{
} Now take the control library property pages and set XML documentation file. This will generate a XML documentation file when you compile the library. When adding reference to the library, copy this XML file too ( I think in VS2005, this will copied automatically). Now VS editor will show tool tip when you move mouse over to the property.
Let me know if it works.
|
|
|
|
|
N a v a n e e t h wrote: Now take the control library property pages and set XML documentation file. This will generate a XML documentation file when you compile the library.
Can you exaplain this section in details...
Thanks for your help... please help me to do this ...
|
|
|
|
|
In C#, all the XML documentation for Methods/Properties will be stored in a XML file. When you are deploying your control, you need to deploy this XML file also to get method documentation visible on the client machine. So visual studio editor automatically identifies this XML file and fetch the documentation from here and displays it when we move mouse over or when we see description of a Method/Property.
Hope it helps
|
|
|
|
|
|
Hi, I am now trying this.... I will definately let u know....
Thansk for your support....
I will definately inform you...
Thanks man....
|
|
|
|
|
I am not able to get the section from where i will generate the XML Documentation.
Please help
|
|
|
|
|
In VS 2003, it's from Property Pages -> Configuration properties. But it is changed in VS2005. Look in the Property pages
|
|
|
|
|
Thanks man....
I have done it......
Thanks ....a lot.....
I have followed all the steps you have mention.....
I should vote for your Help !!!!!
Great!!!!!
|
|
|
|
|
Welcome, That is one of the cool feature in .NET. It allows to create XML documentation easily by the commented code. Using XSLT to this, you can prepare an interactive documentation.
|
|
|
|
|
Tell me one more thing, if i want to share the dll file that i have made, then i haev to give the XML file also or not ??
|
|
|
|
|
Abhijit Jana wrote: i haev to give the XML file also or not ??
Yes you have to supply that too
|
|
|
|